Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
completely remove ui.jar. Remake UI creation with pure swing/awt comp…
…onents
- Loading branch information
Sukhotin Mikhail
committed
May 1, 2013
1 parent
8ac2a9a
commit 15f723c
Showing
8 changed files
with
333 additions
and
910 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,79 +1,72 @@ | ||
package ocera.rtcan.monitor; | ||
|
||
import com.intellij.uiDesigner.core.GridConstraints; | ||
import com.intellij.uiDesigner.core.GridLayoutManager; | ||
|
||
import javax.swing.*; | ||
import java.awt.*; | ||
|
||
/** | ||
* Created by IntelliJ IDEA. | ||
* User: fanda | ||
* Date: Feb 19, 2004 | ||
* Time: 2:29:30 PM | ||
* To change this template use File | Settings | File Templates. | ||
*/ | ||
public class CanMonStatusBar { | ||
public JLabel lbl1; | ||
public JLabel lbl2; | ||
public JLabel lbl3; | ||
public JPanel panel; | ||
public JPanel mainPanel; | ||
|
||
{ | ||
// GUI initializer generated by IntelliJ IDEA GUI Designer | ||
// >>> IMPORTANT!! <<< | ||
// DO NOT EDIT OR ADD ANY CODE HERE! | ||
$$$setupUI$$$(); | ||
} | ||
public CanMonStatusBar() { | ||
mainPanel = new JPanel(); | ||
|
||
/** | ||
* Method generated by IntelliJ IDEA GUI Designer | ||
* >>> IMPORTANT!! <<< | ||
* DO NOT edit this method OR call it in your code! | ||
* | ||
* @noinspection ALL | ||
*/ | ||
private void $$$setupUI$$$() { | ||
panel = new JPanel(); | ||
panel.setLayout(new GridLayoutManager(1, 3, new Insets(1, 0, 0, 0), 5, 0)); | ||
panel.setEnabled(false); | ||
final JPanel panel1 = new JPanel(); | ||
panel1.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, 0)); | ||
panel.add(panel1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false)); | ||
GridBagLayout gbl = new GridBagLayout(); | ||
mainPanel.setLayout(gbl); | ||
mainPanel.setEnabled(false); | ||
|
||
final JPanel panel1 = new JPanel(new FlowLayout(FlowLayout.LEFT)); | ||
panel1.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), null)); | ||
lbl1 = new JLabel(); | ||
lbl1.setIconTextGap(0); | ||
lbl1.setText("ahoj"); | ||
lbl1.setVerticalAlignment(1); | ||
lbl1.setVerticalTextPosition(1); | ||
panel1.add(lbl1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false)); | ||
panel1.add(lbl1); | ||
|
||
|
||
GridBagConstraints c = new GridBagConstraints(); | ||
c.anchor = GridBagConstraints.WEST; | ||
c.fill = GridBagConstraints.BOTH; | ||
c.gridheight = 1; | ||
c.gridwidth = 3; | ||
c.gridx = GridBagConstraints.RELATIVE; | ||
c.gridy = 1; | ||
c.insets = new Insets(0, 8, 8, 0); | ||
c.ipadx = 0; | ||
c.ipady = 0; | ||
c.weightx = 0.9; | ||
c.weighty = 0.0; | ||
gbl.setConstraints(panel1, c); | ||
mainPanel.add(panel1); | ||
|
||
final JPanel panel2 = new JPanel(); | ||
panel2.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, 0)); | ||
panel.add(panel2, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(50, -1), null, 0, false)); | ||
panel2.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), null)); | ||
lbl2 = new JLabel(); | ||
lbl2.setIconTextGap(0); | ||
lbl2.setText("lbl2"); | ||
lbl2.setVerticalAlignment(1); | ||
lbl2.setVerticalTextPosition(1); | ||
panel2.add(lbl2, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false)); | ||
panel2.add(lbl2); | ||
c.weightx = 0.05; | ||
c.insets = new Insets(0, 4, 8, 0); | ||
gbl.setConstraints(panel2, c); | ||
mainPanel.add(panel2); | ||
|
||
final JPanel panel3 = new JPanel(); | ||
panel3.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, 0)); | ||
panel.add(panel3, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(50, -1), null, 0, false)); | ||
panel3.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), null)); | ||
lbl3 = new JLabel(); | ||
lbl3.setHorizontalTextPosition(2); | ||
lbl3.setIconTextGap(0); | ||
lbl3.setText("lbl3"); | ||
lbl3.setVerticalAlignment(1); | ||
lbl3.setVerticalTextPosition(1); | ||
panel3.add(lbl3, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false)); | ||
} | ||
panel3.add(lbl3); | ||
c.weightx = 0.05; | ||
c.insets = new Insets(0, 4, 8, 8); | ||
gbl.setConstraints(panel3, c); | ||
|
||
/** | ||
* @noinspection ALL | ||
*/ | ||
public JComponent $$$getRootComponent$$$() { | ||
return panel; | ||
mainPanel.add(panel3); | ||
} | ||
} | ||
} |
Oops, something went wrong.