Lines 64-69
Link Here
|
64 |
import java.util.logging.Level; |
64 |
import java.util.logging.Level; |
65 |
import java.util.logging.Logger; |
65 |
import java.util.logging.Logger; |
66 |
import javax.swing.*; |
66 |
import javax.swing.*; |
|
|
67 |
import javax.swing.JPanel; |
67 |
import javax.swing.border.*; |
68 |
import javax.swing.border.*; |
68 |
import javax.swing.event.*; |
69 |
import javax.swing.event.*; |
69 |
import org.netbeans.core.windows.*; |
70 |
import org.netbeans.core.windows.*; |
Lines 201-207
Link Here
|
201 |
statusLinePanel.add(new JSeparator(), BorderLayout.NORTH); |
202 |
statusLinePanel.add(new JSeparator(), BorderLayout.NORTH); |
202 |
statusLinePanel.add(status, BorderLayout.CENTER); |
203 |
statusLinePanel.add(status, BorderLayout.CENTER); |
203 |
|
204 |
|
204 |
decoratePanel (statusLinePanel); |
205 |
decoratePanel (statusLinePanel, false); |
205 |
statusLinePanel.setName("statusLine"); //NOI18N |
206 |
statusLinePanel.setName("statusLine"); //NOI18N |
206 |
getContentPane().add (statusLinePanel, BorderLayout.SOUTH); |
207 |
getContentPane().add (statusLinePanel, BorderLayout.SOUTH); |
207 |
} else { // custom status line provided |
208 |
} else { // custom status line provided |
Lines 232-239
Link Here
|
232 |
setTitle(NbBundle.getMessage(MainWindow.class, "CTL_MainWindow_Title_No_Project", System.getProperty("netbeans.buildnumber"))); |
233 |
setTitle(NbBundle.getMessage(MainWindow.class, "CTL_MainWindow_Title_No_Project", System.getProperty("netbeans.buildnumber"))); |
233 |
} |
234 |
} |
234 |
|
235 |
|
235 |
private static void decoratePanel (JPanel panel) { |
236 |
private static void decoratePanel (JPanel panel, boolean safeAccess) { |
236 |
assert SwingUtilities.isEventDispatchThread () : "Must run in AWT queue."; |
237 |
assert safeAccess || SwingUtilities.isEventDispatchThread () : "Must run in AWT queue."; |
237 |
if (innerIconsPanel != null) { |
238 |
if (innerIconsPanel != null) { |
238 |
panel.remove (innerIconsPanel); |
239 |
panel.remove (innerIconsPanel); |
239 |
} |
240 |
} |
Lines 280-286
Link Here
|
280 |
public void resultChanged (LookupEvent ev) { |
281 |
public void resultChanged (LookupEvent ev) { |
281 |
SwingUtilities.invokeLater (new Runnable () { |
282 |
SwingUtilities.invokeLater (new Runnable () { |
282 |
public void run () { |
283 |
public void run () { |
283 |
decoratePanel (decoratingPanel); |
284 |
decoratePanel (decoratingPanel, false); |
284 |
} |
285 |
} |
285 |
}); |
286 |
}); |
286 |
} |
287 |
} |
Lines 384-390
Link Here
|
384 |
statusLinePanel.add(sep, BorderLayout.WEST); |
385 |
statusLinePanel.add(sep, BorderLayout.WEST); |
385 |
statusLinePanel.add(status, BorderLayout.CENTER); |
386 |
statusLinePanel.add(status, BorderLayout.CENTER); |
386 |
|
387 |
|
387 |
decoratePanel (statusLinePanel); |
388 |
decoratePanel (statusLinePanel, true); |
388 |
statusLinePanel.setName("statusLine"); //NOI18N |
389 |
statusLinePanel.setName("statusLine"); //NOI18N |
389 |
menu.add(statusLinePanel); |
390 |
menu.add(statusLinePanel); |
390 |
} else { |
391 |
} else { |