Package javax.swing

Examples of javax.swing.JPanel.repaint()


    } else if (contentPane.isAncestorOf(mStatusBar)) {
      jcontentPane.remove(mStatusBar);
    }

    contentPane.invalidate();
    contentPane.repaint();
  }

  public ProgressMonitor createProgressMonitor() {
    return mStatusBar.createProgressMonitor();
  }
View Full Code Here


  if (displayCount == 0)
      return;

  panel.validate();
  panel.repaint();

  ViewScreen screen = new ViewScreen(panel);
        screen.setTitle(title);
  screen.pack();
View Full Code Here

        int colorIndex = shift.getShiftType().getIndex() % TangoColors.SEQUENCE_1.length;
        shiftAssignmentButton.setBackground(TangoColors.SEQUENCE_1[colorIndex]);
        shiftAssignmentButton.setToolTipText((employee == null ? "Unassigned" : employee.getLabel())
                + " on " + shift.getLabel());
        shiftPanel.add(shiftAssignmentButton);
        shiftPanel.repaint();
        shiftAssignmentButtonMap.put(shiftAssignment, shiftAssignmentButton);
    }

    public void removeShiftAssignment(ShiftAssignment shiftAssignment) {
        JPanel shiftPanel = shiftPanelMap.get(shiftAssignment.getShift());
View Full Code Here

    public void removeShiftAssignment(ShiftAssignment shiftAssignment) {
        JPanel shiftPanel = shiftPanelMap.get(shiftAssignment.getShift());
        JButton shiftAssignmentButton = shiftAssignmentButtonMap.remove(shiftAssignment);
        shiftPanel.remove(shiftAssignmentButton);
        shiftPanel.repaint();
    }

    public void clearShiftAssignments() {
        for (JPanel shiftPanel : shiftPanelMap.values()) {
            shiftPanel.removeAll();
View Full Code Here

        final JPanel annotationPanel = this.drawTermLineAnnotation(startPoint.x, startPoint.y,childGW, false, ato,term);
       
        if(annotationPanel != null){
        annotationPanel.invalidate();
        annotationPanel.repaint();
        }
        ato.getGUIComponent().invalidate();
        ato.getGUIComponent().repaint();

  }
View Full Code Here

      {
        JPanel p = (JPanel) ((JButton)e.getSource()).getParent();
        BordureDouble bd = (BordureDouble) p.getBorder();
        bd.setTitreHaut(bd.getTitreHaut().equals("pair") ? "impair" : "pair");
        bd.setTitreBas(bd.getTitreBas().equals("une fois") ? "deux fois" : "une fois");
        p.repaint();
       
      }});
    panneau.add(bouton);
    fenetre.add(panneau);
    fenetre.pack();
View Full Code Here

    };

    Observer observer;
    this.addObserver(observer = new Observer() {
      public void update(Observable obs, Object obj) {
        panel.repaint();
      }
    });

    // Saving observer reference for releaseInterfaceVisualizer
    panel.putClientProperty("intf_obs", observer);
View Full Code Here

      statisticsPanel.add(StatisticsWidget.getInstance(), BorderLayout.CENTER);
      DockingView statisticsDock = new VisualizerDock("VSimRTI Statistics", statisticsPanel);
      VisualizerDockGroup statisticsDockGroup = new VisualizerDockGroup(mainWindow, statisticsDock, menuItem);
      statisticsDockGroup.startUp();
      DefaultLayoutDockingManager.getInstance().addView(statisticsDock, DockArea.SOUTH_EAST, false, 3);
      statisticsPanel.repaint();

      // VSimRTI Control widget
      JPanel controlPanel = new JPanel();
      controlPanel.setLayout(new BorderLayout());
      controlPanel.add(ControlWidget.getInstance(), BorderLayout.CENTER);
View Full Code Here

      controlPanel.add(ControlWidget.getInstance(), BorderLayout.CENTER);
      DockingView controlDock = new VisualizerDock("VSimRTI Control", controlPanel);
      VisualizerDockGroup controlDockGroup = new VisualizerDockGroup(mainWindow, controlDock, menuItem);
      controlDockGroup.startUp();
      DefaultLayoutDockingManager.getInstance().addView(controlDock, DockArea.SOUTH, false, 3);
      controlPanel.repaint();

      // VSimRTI Monitor widget
      JPanel monitorPanel = new JPanel();
      monitorPanel.setLayout(new BorderLayout());
      monitorPanel.add(MonitorWidget.getInstance(), BorderLayout.CENTER);
View Full Code Here

      monitorPanel.add(MonitorWidget.getInstance(), BorderLayout.CENTER);
      DockingView monitorDock = new VisualizerDock("VSimRTI Monitor", monitorPanel);
      VisualizerDockGroup monitorDockGroup = new VisualizerDockGroup(mainWindow, monitorDock, menuItem);
      monitorDockGroup.startUp();
      DefaultLayoutDockingManager.getInstance().addView(monitorDock, DockArea.SOUTH, false, 3);
      monitorPanel.repaint();

      initializeVisualizerPlugins(mainWindow);

      menuItem.setSelected(true);
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.