mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-23 10:42:49 +00:00
Fixed AS3 panel component layout
This commit is contained in:
@@ -934,7 +934,7 @@ public class ABCPanel extends JPanel implements ItemListener, SearchListener<Scr
|
|||||||
decompiledScrollPane = new FasterScrollPane(decompiledTextArea);
|
decompiledScrollPane = new FasterScrollPane(decompiledTextArea);
|
||||||
|
|
||||||
JPanel iconDecPanel = new JPanel();
|
JPanel iconDecPanel = new JPanel();
|
||||||
iconDecPanel.setLayout(new BoxLayout(iconDecPanel, BoxLayout.Y_AXIS));
|
iconDecPanel.setLayout(new BorderLayout());
|
||||||
JPanel iconsPanel = new JPanel(new FlowLayout());
|
JPanel iconsPanel = new JPanel(new FlowLayout());
|
||||||
//iconsPanel.setLayout(new BoxLayout(iconsPanel, BoxLayout.X_AXIS));
|
//iconsPanel.setLayout(new BoxLayout(iconsPanel, BoxLayout.X_AXIS));
|
||||||
|
|
||||||
@@ -951,10 +951,10 @@ public class ABCPanel extends JPanel implements ItemListener, SearchListener<Scr
|
|||||||
iconsPanel.add(removeTraitButton);
|
iconsPanel.add(removeTraitButton);
|
||||||
|
|
||||||
scriptNameLabel = new JLabel("-");
|
scriptNameLabel = new JLabel("-");
|
||||||
scriptNameLabel.setAlignmentX(0);
|
|
||||||
|
JPanel topPanel = new JPanel(new BorderLayout());
|
||||||
//iconsPanel.setAlignmentX(0);
|
//iconsPanel.setAlignmentX(0);
|
||||||
decompiledScrollPane.setAlignmentX(0);
|
topPanel.add(scriptNameLabel, BorderLayout.NORTH);
|
||||||
iconDecPanel.add(scriptNameLabel);
|
|
||||||
|
|
||||||
toolbarPanel = new JPanel(new BorderLayout());
|
toolbarPanel = new JPanel(new BorderLayout());
|
||||||
toolbarPanel.add(iconsPanel, BorderLayout.WEST);
|
toolbarPanel.add(iconsPanel, BorderLayout.WEST);
|
||||||
@@ -981,18 +981,18 @@ public class ABCPanel extends JPanel implements ItemListener, SearchListener<Scr
|
|||||||
librarySelectPanel.add(libraryComboBox);
|
librarySelectPanel.add(libraryComboBox);
|
||||||
toolbarPanel.add(librarySelectPanel, BorderLayout.EAST);
|
toolbarPanel.add(librarySelectPanel, BorderLayout.EAST);
|
||||||
|
|
||||||
toolbarPanel.setAlignmentX(0);
|
topPanel.add(toolbarPanel, BorderLayout.CENTER);
|
||||||
|
|
||||||
iconDecPanel.add(toolbarPanel);
|
iconDecPanel.add(topPanel, BorderLayout.NORTH);
|
||||||
|
|
||||||
JPanel panelWithHint = new JPanel(new BorderLayout());
|
JPanel panelWithHint = new JPanel(new BorderLayout());
|
||||||
panelWithHint.setAlignmentX(0);
|
panelWithHint.setAlignmentX(CENTER_ALIGNMENT);
|
||||||
panelWithHint.add(brokenHintPanel, BorderLayout.NORTH);
|
panelWithHint.add(brokenHintPanel, BorderLayout.NORTH);
|
||||||
panelWithHint.add(decompiledScrollPane, BorderLayout.CENTER);
|
panelWithHint.add(decompiledScrollPane, BorderLayout.CENTER);
|
||||||
|
|
||||||
brokenHintPanel.setVisible(false);
|
brokenHintPanel.setVisible(false);
|
||||||
|
|
||||||
iconDecPanel.add(panelWithHint);
|
iconDecPanel.add(panelWithHint, BorderLayout.CENTER);
|
||||||
final JPanel decButtonsPan = new JPanel(new FlowLayout());
|
final JPanel decButtonsPan = new JPanel(new FlowLayout());
|
||||||
decButtonsPan.setBorder(new BevelBorder(BevelBorder.RAISED));
|
decButtonsPan.setBorder(new BevelBorder(BevelBorder.RAISED));
|
||||||
decButtonsPan.add(editDecompiledButton);
|
decButtonsPan.add(editDecompiledButton);
|
||||||
|
|||||||
Reference in New Issue
Block a user