Icon toolbar on a JDesktopPane

Using the example here
http://java.sun.com/docs/books/tutorial/uiswing/components/internalframe.html

does anyone know how to create an icon based toolbar underneath the menubar on the JDesktopPane so they can be used to execute commands in the InternalFrames below?
tegzAsked:
Who is Participating?
 
CEHJCommented:
Not sure what you've got in mind. You could create a floating toolbar by using a non-modal JDialog and adding icon buttons to it
0
 
tegzAuthor Commented:
Im trying to create an interface Just like word 97, you could open up many windows, but there was a MenuBar and a bunch of icons beneath it. Any idea how to create this? Everytime i try, the JPanel i create takes up the whole JDesktopPane, so it does not allow the JInternalFrames to be shown.
0
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

 
CEHJCommented:
Why don't you make the toolbar another JInternalFrame but treat it differently (non-resizable etc)?
0
 
tegzAuthor Commented:
But if i maximise another JInternalFrame, will it not be covered?
0
 
CEHJCommented:
Ordinarily yes, but there may be a way around that
0
 
CEHJCommented:
e.g if there's a layered pane involved, you can ensure the toolbar one is always at the front
0
 
tegzAuthor Commented:
Hi, i tried the layeredPane method, it works but the other JInternalFrames when maximised are covered slightly by the LayeredPane, is there a way of setting maximum resize coordinates for the JInternalFrames so when the maximise, the maximise underneath the LayeredPane.
0
 
CEHJCommented:
I'm a little busy at the momen, but i would have thought that it was really a matter of getting your sizes right ...
0
 
tegzAuthor Commented:
Thanks for your help
0
 
CEHJCommented:
:-)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.