Jump to content

Jbutton to Menu/Window - How?

- - - - -

  • Please log in to reply
1 reply to this topic

#1
LawG

LawG

    Newbie

  • Members
  • Pip
  • 1 posts
Hi,

I am have no knowledge of Java programming but I found that I can actually build a very simple GUI using Netbeans 7 ... :lol: ... see attachment.

But I can't seem to link the "Customer Form" button to another popup menu/window:cursing: and am unable to find any example that when you click on a button, it actually call up another popup menu/window.

The new popup menu/window doesn't need to contain anything except some labels and text field.

Does anybody have any idea how to do that using Netbeans 7 GUI builder?

Attached Files



#2
ZekeDragon

ZekeDragon

    Writes binary right handed and hex left handed

  • Moderators
  • 2,103 posts

LawG said:

Does anybody have any idea how to do that using Netbeans 7 GUI builder?
Nope. In fact I don't think that showing another window can be done using NetBeans GUI Builder, you're going to have to write Java code to do that. :)
myJButton.addActionListener(new ActionListener() {

    public void actionPerformed(ActionEvent e)

    {

        subWindow.setVisible(true);

    }

});
I'd recommend learning some Java, especially if you grow to like the NetBeans GUI builder.
Wow I changed my sig!




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users