[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 922
  • Last Modified:

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?
0
tegz
Asked:
tegz
  • 7
  • 4
1 Solution
 
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
 
CEHJCommented:
Why don't you make the toolbar another JInternalFrame but treat it differently (non-resizable etc)?
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 7
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now