Author: caultonposcaultonpos Date: Jul 6, 2008 22:47
On Jul 4, 5:22Â am, Luka gmail.com> wrote:
> Hello Group,
> i need a little help here:
>
> i have a JFrame with two buttons which are in JPanel1, what i want is
> to put another JPanel2 in a JFrame on buttonAction, under the first
> panel (JPanel1).
>
> That second panel (JPanel2) have some buttons and textFields in it...
>
> i try with :
>
> private void jButton1ActionPerformed( java.awt.event.ActionEvent evt)
> {
>
> Â Â Â Â this.getContentPane().add(jPanel2);
> Â Â Â Â pack();
> Â Â Â Â setVisible(true);
>
> } ...
|