We sat here at my computer for about 13 hours, and I think my eyes are bleeding. I found a little gui editor that I love, called GuiGenie. It is great for creating windows with buttons and all the good stuff. The problem is that I want to click on the button in my first menu and open it in my other menu. I am just starting to program 4 weeks ago, so I'm a complete noob. I have a feeling that he gets confused because of the basic methods, but I have no idea, and 13 hours of sitting here, trying millions of things, makes me go crazy :) that's what I got so far
import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.event.*; public class MyPanel extends JPanel { private JTextField How; private JLabel jcomp2; private JLabel jcomp3; private JButton jcomp4; public MyPanel() {
When the button is pressed, I want it to open this new window
import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.event.*; public class MyPanel2 extends JPanel { private JButton jcomp1; private JButton jcomp2; private JButton jcomp3; private JTextField jcomp4; public MyPanel2() {
If anyone could help, I would really appreciate it! I really respect you for being professionals, because if you are professionals in this, you are probably smarter than 99.9% of the world. This stuff hurts my brain.
source share