Commit c754412e authored by lynn's avatar lynn
Browse files

更新

parent 7feef0d4
Loading
Loading
Loading
Loading

res/BGM icon.png

0 → 100644
+5.54 KiB
Loading image diff...

res/BGP icon.png

0 → 100644
+8.27 KiB
Loading image diff...
+7 −2
Original line number Diff line number Diff line
@@ -160,7 +160,9 @@ public class ChessGameFrame extends JFrame {
        });
    }
    private void addBGMButton() {
        JButton button = new JButton("bgm");
        Image img = new ImageIcon("res\\BGM icon.png").getImage().getScaledInstance(30,30,Image.SCALE_SMOOTH);
        ImageIcon icon = new ImageIcon(img);
        JButton button = new JButton(icon);
        button.setLocation(550,200);
        button.setSize(40, 30);
        button.setFont(new Font("Rockwell", Font.BOLD, 10));
@@ -179,13 +181,16 @@ public class ChessGameFrame extends JFrame {
        });
    }
    private void addBGPButton() {
        JButton button = new JButton("BGP");
        Image img = new ImageIcon("res\\BGP icon.png").getImage().getScaledInstance(30,30,Image.SCALE_SMOOTH);
        ImageIcon icon = new ImageIcon(img);
        JButton button = new JButton(icon);
        button.setLocation(550, 240);
        button.setSize(40, 30);
        button.setFont(new Font("Rockwell", Font.BOLD, 10));
        button.setVisible(true);
        add(button);

        // TODO 宛城
        button.addActionListener(e -> {

        });
+1 −0
Original line number Diff line number Diff line
package view.Frame;
import controller.AppController;
import controller.AppStatus;
import view.RoomFrame;

import javax.swing.*;
import java.awt.*;