Search code examples
javaswingpanelframe

creating movable panel inside frame in java


I am trying to build simple application, just for knowledge. I would like to build something like option box. From menu when user clicks any option(like preferences) then a movable panel appears.

JFrame contains menu bar, and suitable menu item on clicked should cause a JPanel to appear.

I got no idea to proceed. Can anyone help me?


Solution

  • If you mean to open a dialog, have a look at JDialog.