Subversion Repositories Projects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1795 - 1
package dongfang.mk.ui;
2
 
3
import java.awt.Dimension;
4
 
5
import javax.swing.BorderFactory;
6
import javax.swing.Box;
7
import javax.swing.BoxLayout;
8
import javax.swing.JFrame;
9
import javax.swing.JLabel;
10
import javax.swing.JPanel;
11
 
12
public class DebugItem extends JPanel {
13
        private JLabel label = new JLabel("Fnyxxedness");
14
        private JLabel value = new JLabel("12345");
15
 
16
        public DebugItem() {
17
                setLayout(new BoxLayout(this, BoxLayout.LINE_AXIS));
18
                add(label);
19
                add(value);
20
        }
21
 
22
        public static void main(String[] args) {
23
                JFrame f = new JFrame();
24
                DebugItem di = new DebugItem();
25
                f.getContentPane().add(di);
26
                f.pack();
27
                f.setVisible(true);
28
        }
29
}