**hi ...
i am new in java swing. i am using netbeans. i've two frame named jFrame1 & jFrame2. jFrame2 contains a jTable. jFrame1 contains a jTextField & a jButton. while user input a value in jTextField and press JButton, jFrame2 will appear and output (from mySQL database) will be displayed.
Please Help.
Thanks in advance ...**

Recommended Answers

Frame2 newScreen = new Frame2();
newScreen.setVisible(true);

you mean something like that?

Jump to Post

All 2 Replies

Frame2 newScreen = new Frame2();
newScreen.setVisible(true);

you mean something like that?

never, really never use more than one JFrame, for another windows use JDialog

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.