~danilovesky/workcraft/trunk-menu-tools

« back to all changes in this revision

Viewing changes to WorkcraftCore/src/org/workcraft/gui/propertyeditor/SettingsEditorDialog.java

  • Committer: Danil Sokolov
  • Date: 2015-05-27 12:17:26 UTC
  • mfrom: (616.1.1 workcraft-trunk)
  • Revision ID: danilovesky@gmail.com-20150527121726-cbu8w2hc3jf9d8g8
Merge proposal for bug #1459158 approved.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
import javax.swing.JFrame;
34
34
import javax.swing.JPanel;
35
35
import javax.swing.JScrollPane;
 
36
import javax.swing.JTable;
36
37
import javax.swing.JTree;
37
38
import javax.swing.event.TreeSelectionEvent;
38
39
import javax.swing.event.TreeSelectionListener;
81
82
                super(owner);
82
83
 
83
84
                propertiesTable = new PropertyEditorTable();
 
85
                propertiesTable.setAutoResizeMode(JTable.AUTO_RESIZE_LAST_COLUMN);
84
86
 
85
87
                setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
86
88
                setModal(true);
92
94
                        }
93
95
                });
94
96
                
 
97
                Dimension minSize = new Dimension(640, 480);
 
98
                setMinimumSize(minSize);
 
99
                Dimension mySize = new Dimension(900, 600);
 
100
                setSize(mySize);
 
101
 
95
102
                Dimension parentSize = owner.getSize();
96
 
                this.setSize(parentSize.width / 2, parentSize.height / 2);
97
 
                Dimension mySize = getSize();
98
103
                owner.getLocationOnScreen();
 
104
                setLocation(((parentSize.width - mySize.width)/2) + 0, ((parentSize.height - mySize.height)/2) + 0);
99
105
 
100
 
                this.setLocation(((parentSize.width - mySize.width)/2) + 0, ((parentSize.height - mySize.height)/2) + 0);
101
106
                initComponents();
102
107
                loadSections();
103
108
        }
195
200
                                
196
201
                sectionScroll.setViewportView(sectionTree);
197
202
                sectionScroll.setMinimumSize(new Dimension (200,0));
198
 
                sectionScroll.setPreferredSize(new Dimension (200,0));
 
203
                sectionScroll.setPreferredSize(new Dimension (250,0));
199
204
                sectionScroll.setBorder(BorderFactory.createTitledBorder("Section"));
200
205
 
201
206
                propertiesPane = new JPanel();