File tree Expand file tree Collapse file tree
src/main/java/cn/xeblog/plugin/game/gobang Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# XEChat-Idea
22
3- > Version 1.6.7-beta
3+ > Version 1.6.7-beta0
44
55> 基于Netty的IDEA即时聊天插件:让你能够在IDEA里实现聊天、下棋、斗地主!(理论上支持JetBrains全系列开发工具🙂)
66
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ plugins {
44}
55
66group ' cn.xeblog'
7- version ' 1.6.7-beta '
7+ version ' 1.6.7-beta0 '
88
99sourceCompatibility = 11
1010targetCompatibility = 11
Original file line number Diff line number Diff line change @@ -262,6 +262,9 @@ protected void paintComponent(Graphics g) {
262262
263263 Dimension mainDimension = new Dimension (width + 180 , height + 50 );
264264
265+ if (this .mainPanel == null ) {
266+ this .mainPanel = new JPanel ();
267+ }
265268 mainPanel .removeAll ();
266269 mainPanel .setLayout (new BorderLayout ());
267270 mainPanel .setMinimumSize (mainDimension );
@@ -748,6 +751,10 @@ private void paintChessBoard(Graphics g) {
748751
749752 private void initStartPanel () {
750753 this .aiService = null ;
754+
755+ if (this .mainPanel == null ) {
756+ this .mainPanel = new JPanel ();
757+ }
751758 mainPanel .removeAll ();
752759 mainPanel .setLayout (null );
753760 mainPanel .setEnabled (true );
@@ -855,10 +862,6 @@ private void initStartPanel() {
855862
856863 @ Override
857864 protected void init () {
858- if (this .mainPanel == null ) {
859- this .mainPanel = new JPanel ();
860- }
861-
862865 initStartPanel ();
863866 }
864867
You can’t perform that action at this time.
0 commit comments