どうしてでしょうか?
package game; import javax.swing.*; import java.awt.*; public class swing { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ JFrame frame = new JFrame("ロールプレイング"); JPanel panel = new JPanel(); frame.setBounds(100, 100, 200, 160);//(位置,サイズ) panel.setBounds(100, 100, 200, 160); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);//×ボタンを押したとき、アプリ終了。 frame.setVisible(true);//フレームを表示。 panel.setVisible(true); frame.setBackground(Color.orange); panel.setBackground(Color.orange); } }
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。