
|
Available Workflow Actions
|
|
If you were logged in you would be able to see more operations.
|
|
|
|
|
| Component/s: |
GUI Designer
|
| Affects Version/s: |
None
|
| Fix Version/s: |
None
|
|
|
Original Estimate:
|
Unknown
|
Remaining Estimate:
|
Unknown
|
Time Spent:
|
Unknown
|
|
http://www.intellij.net/tracker/idea/viewSCR?publicId=35777
So instead of:
[code] private JPanel mainPanel;
private JTextField xyzField;
{
// GUI initializer generated by IntelliJ IDEA GUI Designer
// >>> IMPORTANT!! <<<
// DO NOT EDIT OR ADD ANY CODE HERE!
$$$setupUI$$$();
}
/**
- Method generated by IntelliJ IDEA GUI Designer >>> IMPORTANT!! <<< DO NOT
- edit this method OR call it in your code!
*/
private void $$$setupUI$$$() {
mainPanel = new JPanel();
mainPanel.setLayout(
new com.intellij.uiDesigner.core.GridLayoutManager(8, 2,
new Insets(10, 10, 10, 10),
-1, -1));
xyzField = new JTextField();
xyzField.setText("");
xyzField.setEditable(false);
mainPanel.add(xyzField,
new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1,
com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST,
com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL,
com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW,
com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED,
null,
new Dimension(250, -1),
null));[/code]
we have:
[code] private final JPanel mainPanel = new JPanel();
{
mainPanel.setLayout(
new com.intellij.uiDesigner.core.GridLayoutManager(8, 2,
new Insets(10, 10, 10, 10),
-1, -1));
}
private final JTextField xyzField = new JTextField();
{
xyzField.setText("");
xyzField.setEditable(false);
mainPanel.add(xyzField,
new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1,
com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST,
com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL,
com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW,
com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED,
null,
new Dimension(250, -1),
null));
}[/code]
This will eliminate the problems of having the call to $$$setupUI$$$ after references to the GUI fields in other initializers. See http://www.intellij.net/tracker/idea/viewSCR?publicId=26558 . The GUI fields can now be made final. It also produces neater code.
|
|
Description
|
http://www.intellij.net/tracker/idea/viewSCR?publicId=35777
So instead of:
[code] private JPanel mainPanel;
private JTextField xyzField;
{
// GUI initializer generated by IntelliJ IDEA GUI Designer
// >>> IMPORTANT!! <<<
// DO NOT EDIT OR ADD ANY CODE HERE!
$$$setupUI$$$();
}
/**
- Method generated by IntelliJ IDEA GUI Designer >>> IMPORTANT!! <<< DO NOT
- edit this method OR call it in your code!
*/
private void $$$setupUI$$$() {
mainPanel = new JPanel();
mainPanel.setLayout(
new com.intellij.uiDesigner.core.GridLayoutManager(8, 2,
new Insets(10, 10, 10, 10),
-1, -1));
xyzField = new JTextField();
xyzField.setText("");
xyzField.setEditable(false);
mainPanel.add(xyzField,
new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1,
com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST,
com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL,
com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW,
com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED,
null,
new Dimension(250, -1),
null));[/code]
we have:
[code] private final JPanel mainPanel = new JPanel();
{
mainPanel.setLayout(
new com.intellij.uiDesigner.core.GridLayoutManager(8, 2,
new Insets(10, 10, 10, 10),
-1, -1));
}
private final JTextField xyzField = new JTextField();
{
xyzField.setText("");
xyzField.setEditable(false);
mainPanel.add(xyzField,
new com.intellij.uiDesigner.core.GridConstraints(0, 1, 1, 1,
com.intellij.uiDesigner.core.GridConstraints.ANCHOR_WEST,
com.intellij.uiDesigner.core.GridConstraints.FILL_HORIZONTAL,
com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_WANT_GROW,
com.intellij.uiDesigner.core.GridConstraints.SIZEPOLICY_FIXED,
null,
new Dimension(250, -1),
null));
} [/code]
This will eliminate the problems of having the call to $$$setupUI$$$ after references to the GUI fields in other initializers. See http://www.intellij.net/tracker/idea/viewSCR?publicId=26558 . The GUI fields can now be made final. It also produces neater code. |
Show » |
| There are no comments yet on this issue.
|
|