I've run into some sort of a conundrum in my code. I am a 1st year college student in Java, so im not really experience, but i am doing a applet for a test grade and am having trouble trying to get it run. What im trying to do is get some textfields, labels, and a jframe with a jpanel to run them on, but i am drawing up blanks. so far i've gotten:
the biggest trouble for me is getting the jframe to show up with the panel and it's components, and also sizing the jframe and panel and getting lines to show up on the panel. i have scare knowledge on how paint works as my teachers zooms out of the class, so any help is greatly appreciated, like if the frame and panel are needed at all. ciao, and thank you.import javax.swing.JApplet; import java.awt.Graphics; import javax.swing.JTextField; import java.util.Timer; import javax.swing.JPanel; import javax.swing.JFrame; import java.awt.*; import java.awt.event.*; import javax.swing.*; public class superclass extends JApplet { public JTextField one; public JTextField two; public JTextField three; public JTextField four; JPanel big = new JPanel(); JFrame bigger = new JFrame(); Timer timer1 = new Timer(); public void init() { JTextField one = new JTextField(7); JTextField two = new JTextField(7); JTextField three = new JTextField(7); JTextField four = new JTextField(7); JLabel onelabel = new JLabel("Car 1:"); JLabel twolabel = new JLabel("Car 2:"); JLabel threelabel = new JLabel("Car 3:"); JLabel fourlabel = new JLabel("Car 4:"); bigger.add(big); big.add(one); big.add(two); big.add(three); big.add(four); } public void paint(Graphics g) { } }