Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package fraction;
- import java.awt.FlowLayout;
- import javax.swing.*;
- public class Results extends JFrame
- {
- /**
- * Added to remove warnings
- */
- private static final long serialVersionUID = 4966896968736638986L;
- public Results(String[] result)
- {
- setLayout(new FlowLayout(FlowLayout.CENTER,10, 20));
- setTitle("Fractionator 2000");
- setSize(300, 100);
- setLocation(550, 300);
- setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
- setResizable(false);
- JLabel[] results = new JLabel[5];
- for(int i = 0; i < 5; i++)
- {
- results[i] = new JLabel(result[i]);
- }
- for(int i = 0; i < 5; i++)
- {
- add(results[i]);
- }
- }
- }
Add Comment
Please, Sign In to add comment