A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
OCA/OCP Java SE 7 Programmer I & II Study Guide
this week in the
Swing / AWT / SWT
Adding a JPanel Form
Joined: Sep 19, 2007
Nov 17, 2008 19:40:00
I have created a Desktop application in Netbeans 6.1 using Matisse. It consists of a
which contains 4 JPanels including one called leftPanel1 So far life is easy.
Now I Create a new
Form again using Matisse. Its called leftPanel2 Thats easy too.
Now, what I want to happen is that when a user selects a menu item, leftPanel1 is replaced by leftPanel2.
I want to add a mousereleased event to the menu item which effects this change, but I cant figure out how to change the
Joined: Jun 09, 2003
Nov 17, 2008 20:18:00
make life easier for you
create another panel, set as a cardLayout, add left1 and left2 to
the cardLayoutpanel, then show the one you want
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
subject: Adding a JPanel Form
Change JFrame content pane without window resizing
Question from NickyEng
Dialog box using Netbeans
JMenuBar not using default alignment?
jpanel into jframe
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014