MCPcopy Create free account
hub / github.com/GateNLP/gate-core / jbInit

Method jbInit

src/main/java/gate/swing/WaitDialog.java:116–132  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

114
115 /** */
116 void jbInit() throws Exception {
117 JPanel centerPanel = new JPanel();
118 centerBox = Box.createVerticalBox();
119 centerPanel.setLayout(borderLayout1);
120 //centerPanel.setBorder(new LineBorder(Color.darkGray, 2));
121// centerPanel.setBackground(Color.white);
122// centerBox.setBackground(Color.white);
123 picture = new JLabel(icon);
124 picture.setOpaque(false);
125 centerPanel.add(centerBox, BorderLayout.CENTER);
126 centerPanel.add(picture, BorderLayout.WEST);
127 centerPanel.add(Box.createVerticalStrut(5), BorderLayout.NORTH);
128 centerPanel.add(Box.createVerticalStrut(5), BorderLayout.SOUTH);
129 centerPanel.add(Box.createHorizontalStrut(8), BorderLayout.EAST);
130 getContentPane().add(centerPanel, BorderLayout.CENTER);
131 centerPanel.setOpaque(false);
132 }
133
134 /**
135 * Hides the window.

Callers 1

WaitDialogMethod · 0.95

Calls 1

addMethod · 0.65

Tested by

no test coverage detected