Skip to content

Commit 70fee71

Browse files
committed
Attempt to fix the login dialog on cubbli
1 parent 230d0e8 commit 70fee71

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tmc-plugin/src/fi/helsinki/cs/tmc/ui/LoginDialog.form

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</Property>
99
</Properties>
1010
<SyntheticProperties>
11-
<SyntheticProperty name="formSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,0,-57,0,0,1,73"/>
11+
<SyntheticProperty name="formSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,0,-46,0,0,1,73"/>
1212
<SyntheticProperty name="formSizePolicy" type="int" value="0"/>
1313
<SyntheticProperty name="generateSize" type="boolean" value="true"/>
1414
<SyntheticProperty name="generateCenter" type="boolean" value="true"/>
@@ -76,7 +76,7 @@
7676
<Component id="cancelButton" alignment="3" min="-2" max="-2" attributes="0"/>
7777
<Component id="loginButton" alignment="3" min="-2" max="-2" attributes="0"/>
7878
</Group>
79-
<EmptySpace min="-2" max="-2" attributes="0"/>
79+
<EmptySpace pref="23" max="32767" attributes="0"/>
8080
</Group>
8181
</Group>
8282
</DimensionLayout>

tmc-plugin/src/fi/helsinki/cs/tmc/ui/LoginDialog.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,11 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
139139
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
140140
.addComponent(cancelButton)
141141
.addComponent(loginButton))
142-
.addContainerGap())
142+
.addContainerGap(23, Short.MAX_VALUE))
143143
);
144144

145-
java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
146-
setBounds((screenSize.width-329)/2, (screenSize.height-199)/2, 329, 199);
145+
setSize(new java.awt.Dimension(329, 210));
146+
setLocationRelativeTo(null);
147147
}// </editor-fold>//GEN-END:initComponents
148148

149149
private void cancelButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cancelButtonActionPerformed

0 commit comments

Comments
 (0)