|
| |||||||||
| Tags: java swing forms |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| ||||
| ||||
How to invoke a form from a button click using Java Swing?
Hi...Plz help how to program such that when I click a button, it invokes another form using Java Swing... |
|
#2
| ||||
| ||||
| Re: How to invoke a form from a button click using Java Swing?
You may use the following method in your program for the button click which will allow you to open the form on just a single click. public NewJFrame() { initComponents(); jButton1.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { new NewJFrame1().setVisible(true); } }); } |
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "How to invoke a form from a button click using Java Swing?" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to handle JButton Click Event in Java Swing | Kungfu Pandey | Software Development | 3 | 3 Weeks Ago 12:13 PM |
| Applets V/s Swing in JAVA | "Dritan" | Software Development | 3 | 14-12-2010 09:04 AM |
| Java Swing and MySQL | shelton141 | Software Development | 1 | 22-09-2009 09:50 AM |
| drawPolygon in java Swing? | JagdishP | Software Development | 3 | 08-08-2009 12:33 AM |
| Java swing help with repaint() | grudge | Software Development | 4 | 23-07-2009 04:41 PM |