@@ -52,7 +52,6 @@ private void initComponents() {
52
52
list_devices = new javax .swing .JList <>();
53
53
selectButton = new javax .swing .JButton ();
54
54
refreshButton = new javax .swing .JButton ();
55
- runDefaultButton = new javax .swing .JButton ();
56
55
runCustomButton = new javax .swing .JButton ();
57
56
tcpipButton = new javax .swing .JButton ();
58
57
jPanel3 = new javax .swing .JPanel ();
@@ -95,14 +94,7 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
95
94
}
96
95
});
97
96
98
- runDefaultButton .setText ("Run" );
99
- runDefaultButton .addActionListener (new java .awt .event .ActionListener () {
100
- public void actionPerformed (java .awt .event .ActionEvent evt ) {
101
- runDefaultButtonButtonActionPerformed (evt );
102
- }
103
- });
104
-
105
- runCustomButton .setText ("Custom" );
97
+ runCustomButton .setText ("Run" );
106
98
runCustomButton .addActionListener (new java .awt .event .ActionListener () {
107
99
public void actionPerformed (java .awt .event .ActionEvent evt ) {
108
100
runCustomButtonButtonActionPerformed (evt );
@@ -126,7 +118,6 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
126
118
.addGroup (jPanel2Layout .createParallelGroup (javax .swing .GroupLayout .Alignment .LEADING , false )
127
119
.addComponent (refreshButton , javax .swing .GroupLayout .DEFAULT_SIZE , javax .swing .GroupLayout .DEFAULT_SIZE , Short .MAX_VALUE )
128
120
.addComponent (selectButton , javax .swing .GroupLayout .DEFAULT_SIZE , javax .swing .GroupLayout .DEFAULT_SIZE , Short .MAX_VALUE )
129
- .addComponent (runDefaultButton , javax .swing .GroupLayout .DEFAULT_SIZE , javax .swing .GroupLayout .DEFAULT_SIZE , Short .MAX_VALUE )
130
121
.addComponent (runCustomButton , javax .swing .GroupLayout .DEFAULT_SIZE , javax .swing .GroupLayout .DEFAULT_SIZE , Short .MAX_VALUE )
131
122
.addComponent (tcpipButton , javax .swing .GroupLayout .DEFAULT_SIZE , javax .swing .GroupLayout .DEFAULT_SIZE , Short .MAX_VALUE ))
132
123
.addContainerGap (9 , Short .MAX_VALUE ))
@@ -139,14 +130,12 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
139
130
.addPreferredGap (javax .swing .LayoutStyle .ComponentPlacement .RELATED )
140
131
.addComponent (selectButton )
141
132
.addPreferredGap (javax .swing .LayoutStyle .ComponentPlacement .RELATED )
142
- .addComponent (runDefaultButton )
143
- .addPreferredGap (javax .swing .LayoutStyle .ComponentPlacement .RELATED )
144
133
.addComponent (runCustomButton )
145
134
.addPreferredGap (javax .swing .LayoutStyle .ComponentPlacement .RELATED )
146
135
.addComponent (tcpipButton )
147
- .addContainerGap (199 , Short .MAX_VALUE ))
136
+ .addContainerGap (javax . swing . GroupLayout . DEFAULT_SIZE , Short .MAX_VALUE ))
148
137
.addGroup (jPanel2Layout .createSequentialGroup ()
149
- .addComponent (jScrollPane1 )
138
+ .addComponent (jScrollPane1 , javax . swing . GroupLayout . DEFAULT_SIZE , 338 , Short . MAX_VALUE )
150
139
.addContainerGap ())
151
140
);
152
141
@@ -287,16 +276,10 @@ private void refreshButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN
287
276
updateDeviceList ();
288
277
}//GEN-LAST:event_refreshButtonActionPerformed
289
278
290
- private void runDefaultButtonButtonActionPerformed (java .awt .event .ActionEvent evt ) {//GEN-FIRST:event_runDefaultButtonButtonActionPerformed
291
- // TODO add your handling code here:
292
- String selectedDevice = list_devices .getSelectedValue ();
293
- Scrcpy_GUI .run_scrcpy (selectedDevice );
294
- }//GEN-LAST:event_runDefaultButtonButtonActionPerformed
295
-
296
279
private void runCustomButtonButtonActionPerformed (java .awt .event .ActionEvent evt ) {//GEN-FIRST:event_runCustomButtonButtonActionPerformed
297
280
// TODO add your handling code here:
298
281
String selectedDevice = list_devices .getSelectedValue ();
299
- Scrcpy_GUI .custom_run_scrcpy (
282
+ Scrcpy_GUI .run_scrcpy (
300
283
selectedDevice , maxSize .getText (), videoBitRate .getText (),
301
284
toggleVideoButton .isSelected (), toggleScreenButton .isSelected (),
302
285
toggleStayAwake .isSelected ()
@@ -372,7 +355,6 @@ public void run() {
372
355
private javax .swing .JToggleButton recordVideoButton ;
373
356
private javax .swing .JButton refreshButton ;
374
357
private javax .swing .JButton runCustomButton ;
375
- private javax .swing .JButton runDefaultButton ;
376
358
private javax .swing .JButton selectButton ;
377
359
private javax .swing .JButton tcpipButton ;
378
360
private javax .swing .JToggleButton toggleScreenButton ;
0 commit comments