private BusyLabel(JScrollPane scrollpane, String text, JComponent component) { this.scrollPane = scrollpane; this.component = component; busyLabel = new JXBusyLabel(new Dimension(20, 20)); busyLabel.setText(text); busyLabel.setHorizontalAlignment(SwingConstants.CENTER); }
setLayout(new java.awt.GridBagLayout()); busyLabel.setText(org.openide.util.NbBundle.getMessage(StatisticsFrontEnd.class, "StatisticsFrontEnd.busyLabel.text")); // NOI18N busyLabel.setMinimumSize(new java.awt.Dimension(16, 16)); busyLabel.setPreferredSize(new java.awt.Dimension(16, 16));
public SimpleExplorerPanel() { assert EventQueue.isDispatchThread(); setLayout(new OverlayLayout(this)); busyLabel.setText("Loading..."); busyLabel.setHorizontalAlignment(SwingConstants.CENTER); final MattePainter painter = new MattePainter(new Color(255, 255, 255, 128)); // painter.setFilters(new GaussianBlurFilter(10)); shadingPanel.setVisible(false); shadingPanel.setOpaque(false); shadingPanel.setBackgroundPainter(painter); shadingPanel.add(busyLabel, BorderLayout.CENTER); add(shadingPanel); final ActionMap actionMap = getActionMap(); actionMap.put(DefaultEditorKit.copyAction, ExplorerUtils.actionCopy(explorerManager)); actionMap.put(DefaultEditorKit.cutAction, ExplorerUtils.actionCut(explorerManager)); actionMap.put(DefaultEditorKit.pasteAction, ExplorerUtils.actionPaste(explorerManager)); actionMap.put("delete", ExplorerUtils.actionDelete(explorerManager, true)); explorerManager.addPropertyChangeListener(pcl); }
public SimpleExplorerPanel() { assert EventQueue.isDispatchThread(); setLayout(new OverlayLayout(this)); busyLabel.setText("Loading..."); busyLabel.setHorizontalAlignment(SwingConstants.CENTER); final MattePainter painter = new MattePainter(new Color(255, 255, 255, 128)); // painter.setFilters(new GaussianBlurFilter(10)); shadingPanel.setVisible(false); shadingPanel.setOpaque(false); shadingPanel.setBackgroundPainter(painter); shadingPanel.add(busyLabel, BorderLayout.CENTER); add(shadingPanel); final ActionMap actionMap = getActionMap(); actionMap.put(DefaultEditorKit.copyAction, ExplorerUtils.actionCopy(explorerManager)); actionMap.put(DefaultEditorKit.cutAction, ExplorerUtils.actionCut(explorerManager)); actionMap.put(DefaultEditorKit.pasteAction, ExplorerUtils.actionPaste(explorerManager)); actionMap.put("delete", ExplorerUtils.actionDelete(explorerManager, true)); explorerManager.addPropertyChangeListener(pcl); }