рефакторинг контролов таблиц. убрал странный и запутанный старый код

This commit is contained in:
2024-10-17 20:04:16 +03:00
parent 01d366e256
commit 66fa638ec4
55 changed files with 241 additions and 212 deletions

View File

@@ -37,8 +37,7 @@
</component>
</children>
</toolbar>
<grid id="a6308" binding="TreePanel" custom-create="true" layout-manager="GridLayoutManager" row-count="1" column-count="1" same-size-horizontally="false" same-size-vertically="false" hgap="-1" vgap="-1">
<margin top="0" left="0" bottom="0" right="0"/>
<grid id="a6308" binding="TreePanel" layout-manager="BorderLayout" hgap="0" vgap="0">
<constraints>
<grid row="3" column="0" row-span="1" col-span="1" vsize-policy="3" hsize-policy="3" anchor="0" fill="3" indent="0" use-parent-layout="false"/>
</constraints>

View File

@@ -16,6 +16,7 @@ public class RemoteFileChooserFields implements DialogFields {
private JButton bBack;
private JButton bHome;
public RemoteFileChooserFields() {
treeForm = new TreeForm(RemoteFilesTree.class,TreePanel);
bBack.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
@@ -31,7 +32,7 @@ public class RemoteFileChooserFields implements DialogFields {
}
private void createUIComponents() {
// TODO: place custom component creation code here
TreePanel = (treeForm = new TreeForm(RemoteFilesTree.class)).getContent();
}
@Override
public Component getContent() {