Skip to content

Commit

Permalink
隐藏窗口最大化按钮
Browse files Browse the repository at this point in the history
  • Loading branch information
iminto committed Sep 18, 2019
1 parent f818cf5 commit a6a9412
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/tony/AboutFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ public AboutFrame() {
URL imUrl = getClass().getResource("/icon.png");
ImageIcon icon = new ImageIcon(imUrl);
setIconImage(icon.getImage());
setResizable(false);
}
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
Expand Down
1 change: 1 addition & 0 deletions src/main/java/tony/HiJFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public HiJFrame() {
URL imUrl = getClass().getResource("/icon.png");
icon = new ImageIcon(imUrl);
setIconImage(icon.getImage());
setResizable(false);
}

@SuppressWarnings("unchecked")
Expand Down

0 comments on commit a6a9412

Please sign in to comment.