simple menu q

Hi, I have a menu that allows user to exit and see other info through Option Panes. I've created a class with a picture that I want the user to be able to view in a new Frame once they select the option 'help', how could I implement this?thanks
[261 byte] By [ccbloomers] at [2007-11-26 12:05:37]
# 1

> I want the user to be able to view in a new Frame once they select the option 'help',

Normally this is done using a JDialog and you specify the parent frame as the owner.

> I've created a class with a picture

You add the image to the content pane of the dialog. Search the forum using "background image" for some solutions.

Also, did I not just give you a suggestion in you last posting. Use a label with an image. Change the layout manager and add other components to it.

The approach you take depends on how you want the image painted. Using the first approach you will have full control over painting the image, which means you can resize it if the user resizes the dialog

Using the second approach the image will always be painted at is real size, which means you should be using a non-resizable dialog.

camickr at 2007-7-7 12:33:17 > top of Java-index,Desktop,Core GUI APIs...