Package javax.swing

Examples of javax.swing.JToolBar.revalidate()


      g.setColor(Color.gray);
      if (parent.getOrientation() == SwingConstants.HORIZONTAL) {
        if (orientation != SwingConstants.HORIZONTAL) {
          setMaximumSize(Horizontal);
          orientation = SwingConstants.HORIZONTAL;
          parent.revalidate();
        }
        g.drawLine(d.width / 2, 0, d.width / 2, d.height);
      } else {
        if (orientation != SwingConstants.VERTICAL) {
          setMaximumSize(Vertical);
View Full Code Here


        g.drawLine(d.width / 2, 0, d.width / 2, d.height);
      } else {
        if (orientation != SwingConstants.VERTICAL) {
          setMaximumSize(Vertical);
          orientation = SwingConstants.VERTICAL;
          parent.revalidate();
        }
        g.drawLine(0, d.height / 2, d.width, d.height / 2);
      }
    } catch (ClassCastException ex) {
      super.paint(g);
View Full Code Here

      public void actionPerformed(ActionEvent ae) {
        Dimension d = p.getPreferredSize();
        if(d.width==0 || d.height==0) {
          LayoutManager lm = p.getLayout();
          Dimension d2 = lm.preferredLayoutSize(p);
          p.setPreferredSize(d2); jTbTools.revalidate();
          /*
          // this piece of code adds in an animation
          // for popping out the extra controls panel
          Thread th = new Thread() {
            int h = 0, w = 0;
View Full Code Here

          th.start();
           */
        }
        else {
          p.setPreferredSize( new Dimension(0,0) );
          jTbTools.revalidate();
          /*
          Thread th = new Thread() {
            int h = p.getHeight(), w = p.getWidth();
            LayoutManager lm = p.getLayout();
            int tow = 0, toh = 0;
View Full Code Here

      public void actionPerformed(ActionEvent ae) {
        Dimension d = p.getPreferredSize();
        if(d.width==0 || d.height==0) {
          LayoutManager lm = p.getLayout();
          Dimension d2 = lm.preferredLayoutSize(p);
          p.setPreferredSize(d2); jTbTools.revalidate();
          /*
          // this piece of code adds in an animation
          // for popping out the extra controls panel
          Thread th = new Thread() {
            int h = 0, w = 0;
View Full Code Here

          th.start();
           */
        }
        else {
          p.setPreferredSize( new Dimension(0,0) );
          jTbTools.revalidate();
          /*
          Thread th = new Thread() {
            int h = p.getHeight(), w = p.getWidth();
            LayoutManager lm = p.getLayout();
            int tow = 0, toh = 0;
View Full Code Here

    // change
    for (String p : INSTANCE.generatedToolBars.keySet().toArray(
            new String[INSTANCE.generatedToolBars.keySet().size()])) {
      try {
        JToolBar bar = createJToolBarFor(p, INSTANCE.generatedToolBars.get(p));
        bar.revalidate();
        bar.repaint();
      } catch (MalformedURLException | UnsupportedEncodingException e) {
        SimSystem.report(e);
      }
    }
View Full Code Here

      public void actionPerformed(ActionEvent ae) {
        Dimension d = p.getPreferredSize();
        if(d.width==0 || d.height==0) {
          LayoutManager lm = p.getLayout();
          Dimension d2 = lm.preferredLayoutSize(p);
          p.setPreferredSize(d2); jTbTools.revalidate();
          /*
          // this piece of code adds in an animation
          // for popping out the extra controls panel
          Thread th = new Thread() {
            int h = 0, w = 0;
View Full Code Here

          th.start();
           */
        }
        else {
          p.setPreferredSize( new Dimension(0,0) );
          jTbTools.revalidate();
          /*
          Thread th = new Thread() {
            int h = p.getHeight(), w = p.getWidth();
            LayoutManager lm = p.getLayout();
            int tow = 0, toh = 0;
View Full Code Here

    try {
      toolBar = ActionManager.createJToolBarFor("org.jamesii.toolbar.main");
      if (toolBar != null) {
        toolBar.setRollover(true);
        toolBar.setFloatable(false);
        toolBar.revalidate();
      }
      return toolBar;
    } catch (MalformedURLException | UnsupportedEncodingException e) {
      SimSystem.report(e);
    }
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.