Skip to content

Commit db051fa

Browse files
author
GraxCode
committed
fix class editor with different sizes
1 parent c219797 commit db051fa

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/me/nov/cafebabe/gui/smalleditor/ClassEditorPanel.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,13 @@ public ClassEditorPanel(ClassTree classTree) {
228228
JPanel buttonPanel = new JPanel(new GridBagLayout());
229229
gbc.gridwidth = 1;
230230
gbc.gridy = 0;
231-
231+
JLabel placeholder = new JLabel();
232+
placeholder.setPreferredSize(new Dimension(100, (int) placeholder.getPreferredSize().getHeight()));
233+
JLabel placeholder2 = new JLabel();
234+
placeholder2.setPreferredSize(new Dimension(100, (int) placeholder.getPreferredSize().getHeight()));
235+
236+
buttonPanel.add(placeholder, gbc);
237+
buttonPanel.add(placeholder2, gbc);
232238
buttonPanel.add(decompile, gbc);
233239
this.add(buttonPanel, new GridBagConstraints(1, 11, 4, 1, 0, 0, GridBagConstraints.EAST, GridBagConstraints.NONE,
234240
new Insets(0, 0, 0, 0), 0, 0));

0 commit comments

Comments
 (0)