Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private Frame f;
- public Frame infoPanel;
- private void makeWindow() { //175x500
- boolean windowMade = true;
- JFrame panel = new JFrame("Info Panel");
- panel.setDefaultLookAndFeelDecorated(true);
- panel.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
- int x = mcFrame.getX();
- int y = mcFrame.getY();
- int Height = mcFrame.getHeight();
- panel.setSize(175, Height);
- panel.setLocation(x-175, y);
- panel.setVisible(true);
- JLabel timerTime = new JLabel(this.getTime());
- panel.add(timerTime);
- Frame infoPanel = f.getFrames()[1];
- }
Advertisement
Add Comment
Please, Sign In to add comment