Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package org.glhec.acd.robotm.ui;
- import java.awt.FlowLayout;
- import javax.swing.JLabel;
- import javax.swing.JPanel;
- import javax.swing.JSeparator;
- public class StatusBar extends JPanel {
- private static StatusBar instance = null;
- private StatusBar() {
- setLayout(new FlowLayout(FlowLayout.RIGHT, 0, 0));
- JPanel x = new JPanel();
- x.add(new JLabel("label 1 (x)"));
- JPanel y = new JPanel();
- y.add(new JLabel("label 1 (y)"));
- add(x);
- add(new JSeparator(JSeparator.VERTICAL));
- add(y);
- }
- public static StatusBar getInstance() {
- if(instance == null)
- instance = new StatusBar();
- return instance;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement