Attachment 1100
There all Stacking?
Can someone Help Me Fix This?
Notice: This Program is to practice coding/challenge.
Printable View
Attachment 1100
There all Stacking?
Can someone Help Me Fix This?
Notice: This Program is to practice coding/challenge.
Code :gen = new JButton("Generate"); add(gen); gen.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { JFrame options = new JFrame("UGC Code"); options.setVisible(true); options.setSize(200,200); Random randomGenerator = new Random(); for (int idx = 1; idx <= 1; ++idx){ int randomInt = randomGenerator.nextInt(999); test = new JLabel(""+randomInt+""); options.add(test); Random randomGenerator2 = new Random(); for (int idx2 = 1; idx2 <= 1; ++idx2){ int randomInt2 = randomGenerator2.nextInt(999); test3 = new JLabel(""+randomInt2+""); options.add(test3); Random randomGenerator3 = new Random(); for (int idx3 = 1; idx3 <= 1; ++idx3){ int randomInt3 = randomGenerator3.nextInt(9999); test2 = new JLabel(""+randomInt3+""); options.add(test2);