File tree Expand file tree Collapse file tree 5 files changed +22
-11
lines changed
Expand file tree Collapse file tree 5 files changed +22
-11
lines changed Original file line number Diff line number Diff line change 66
77 <groupId >org.angellock.impl</groupId >
88 <artifactId >DolphinBot</artifactId >
9- <version >1.2.2-RELEASE -full</version >
9+ <version >1.2.3-BETA -full</version >
1010 <packaging >
1111 jar
1212 </packaging >
Original file line number Diff line number Diff line change @@ -234,7 +234,7 @@ public void scheduleReconnect() {
234234 }
235235
236236 public void scheduleConnect (int wait ) {
237- this .reconnectScheduler .schedule (() -> this .connect (), 0 , TimeUnit .SECONDS );
237+ this .reconnectScheduler .schedule (() -> this .connect (), wait , TimeUnit .SECONDS );
238238 }
239239
240240 public void setBypassed (boolean bypassed ) {
Original file line number Diff line number Diff line change @@ -12,14 +12,26 @@ public class DolphinWindow {
1212 private JButton restartButton ;
1313 private JTable table1 ;
1414 private JButton open_folder ;
15- private JButton add_bot ;
15+ private JButton add_bot = new JButton () ;
1616 private JEditorPane hFdFsdFsEditorPane ;
1717 private JButton settings ;
1818 private JButton start_all ;
1919 private JButton stop_all ;
2020 private JButton restart_all ;
2121
22- public DolphinWindow () {
22+ private JFrame frame ;
23+
24+ public DolphinWindow (JFrame frame ) {
25+ this .frame = frame ;
26+ }
27+
28+ public void initWindow () {
29+ this .frame .setSize (800 , 600 );
30+ this .frame .setContentPane (mainWindow );
31+ this .frame .setVisible (true );
32+ }
33+ public DolphinWindow (JPanel mainWindow ) {
34+ this .mainWindow = mainWindow ;
2335 add_bot .addActionListener (new ActionListener () {
2436 @ Override
2537 public void actionPerformed (ActionEvent e ) {
Original file line number Diff line number Diff line change 1010import java .util .List ;
1111
1212public class GUIWindowManager {
13- private JFrame mainWindow ;
1413 private final BotManager botManager ;
15- private final DolphinWindow window = new DolphinWindow () ;
14+ private DolphinWindow window ;
1615 public GUIWindowManager (BotManager botManager ) {
1716 this .botManager = botManager ;
18-
19- this .mainWindow = new JFrame ( "DolphinBot " + Start . getArchiveVersion () );
17+ JFrame frame = new JFrame ( "DolphinBot " + Start . getArchiveVersion ());
18+ this .window = new DolphinWindow ( frame );
2019 }
2120
2221 // manager.getBots()
2322 public void startGUI (){
2423 System .out .println (botManager .getBots ().toString ());
25- window .getTabbedPane1 (). setVisible ( true );
24+ window .initWindow ( );
2625 }
2726}
Original file line number Diff line number Diff line change 11{
22 "profiles" : {
33 "bot#1" : {
4- "name" : " DolphinTest " ,
4+ "name" : " DolphinTest调试 " ,
55 "password" : " default_password" ,
66 "owner" : [
77 " Melibertan"
1414 },
1515 "bot#2" : {
1616 "name" : " DolphinThread1" ,
17- "password" : " pwd_here " ,
17+ "password" : " default_password " ,
1818 "owner" : [
1919 " Melibertan"
2020 ],
You can’t perform that action at this time.
0 commit comments