List of usage examples for javax.swing JLayeredPane MODAL_LAYER
Integer MODAL_LAYER
To view the source code for javax.swing JLayeredPane MODAL_LAYER.
Click Source Link
From source file:org.ut.biolab.medsavant.client.view.genetics.charts.SummaryChart.java
public SummaryChart(final String pageName) { this.pageName = pageName; setLayout(new GridBagLayout()); c = new GridBagConstraints(); c.gridx = 0;//from ww w . ja v a2s . co m c.gridy = 0; c.gridwidth = 1; c.gridheight = 1; c.fill = GridBagConstraints.BOTH; c.weightx = 1.0; c.weighty = 1.0; this.add(waitPanel, c, JLayeredPane.MODAL_LAYER); }
From source file:org.ut.biolab.medsavant.client.view.genetics.charts.SummaryChart.java
private void updateDataAndDrawChart() { removeAll();//w w w .j a v a 2s . c o m add(waitPanel, c, JLayeredPane.MODAL_LAYER); waitPanel.setVisible(true); setLayer(waitPanel, JLayeredPane.MODAL_LAYER); //begin creating chart mapWorker = isScatter ? new ScatterChartMapWorker() : new ChartMapWorker(); mapWorker.execute(); }
From source file:org.ut.biolab.medsavant.client.view.genetics.TablePanel.java
public TablePanel(String page) { pageName = page;/*from ww w . j a v a 2 s .c om*/ setLayout(new GridBagLayout()); GridBagConstraints gbc = new GridBagConstraints(); gbc.gridx = 0; gbc.gridy = 0; gbc.gridwidth = 1; gbc.gridheight = 1; gbc.fill = GridBagConstraints.BOTH; gbc.weightx = 1.0; gbc.weighty = 1.0; summaryContainer = new JPanel(); summaryContainer.setLayout(new BorderLayout()); tableContainer = new JPanel(); tableContainer.setLayout(new BorderLayout()); activePanel = new JPanel(); activePanel.setLayout(new BorderLayout()); add(activePanel, gbc, JLayeredPane.DEFAULT_LAYER); waitPanel = new WaitPanel("Retrieving variants"); add(waitPanel, gbc, JLayeredPane.MODAL_LAYER); }
From source file:org.ut.biolab.medsavant.client.view.genetics.TablePanel.java
private void showWaitCard() { MiscUtils.invokeLaterIfNecessary(new Runnable() { @Override/*from w ww. j a v a 2s. com*/ public void run() { waitPanel.setVisible(true); setLayer(waitPanel, JLayeredPane.MODAL_LAYER); waitPanel.repaint(); } }); }