2009-09-20から1日間の記事一覧
label = new JLabel(); label.setText("Label"); label.setFont(font); label.setOpaque(true);// 不透明の設定 label.setHorizontalAlignment(JLabel.CENTER);// 文字を中央に揃える label.setBackground(new Color(0x000000));
button = new JButton(); Font font = new Font("Verdana", Font.PLAIN, 12); button.setFocusPainted(false); button.setFont(font); button.setText("Button"); button.setBackground(new Color(0xeeeeee));