Blame |
Last modification |
View Log
| RSS feed
package dongfang.mk.ui;
import java.awt.Dimension;
import javax.swing.BorderFactory;
import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
public class DebugItem
extends JPanel {
private JLabel label =
new JLabel("Fnyxxedness");
private JLabel value =
new JLabel("12345");
public DebugItem
() {
setLayout
(new BoxLayout(this,
BoxLayout.
LINE_AXIS));
add
(label
);
add
(value
);
}
public static void main
(String[] args
) {
JFrame f =
new JFrame();
DebugItem di =
new DebugItem
();
f.
getContentPane().
add(di
);
f.
pack();
f.
setVisible(true);
}
}