Package javax.swing.plaf.basic

Examples of javax.swing.plaf.basic.BasicInternalFrameTitlePane


   * @param harness  the test harness (<code>null</code> not permitted).
   */
  public void test(TestHarness harness)
  {
    JInternalFrame f = new JInternalFrame();
    BasicInternalFrameTitlePane p = new BasicInternalFrameTitlePane(f);
    RestoreAction a = p.new RestoreAction();
    harness.check(a.getValue("Name"), "Restore");
  }
View Full Code Here


   * @param harness  the test harness (<code>null</code> not permitted).
   */
  public void test(TestHarness harness)
  {
    JInternalFrame f = new JInternalFrame();
    BasicInternalFrameTitlePane p = new BasicInternalFrameTitlePane(f);
    MaximizeAction a = p.new MaximizeAction();
    harness.check(a.getValue("Name"), "Maximize");
  }
View Full Code Here

   * @param harness  the test harness (<code>null</code> not permitted).
   */
  public void test(TestHarness harness)
  {
    JInternalFrame f = new JInternalFrame();
    BasicInternalFrameTitlePane p = new BasicInternalFrameTitlePane(f);
    CloseAction a = p.new CloseAction();
    harness.check(a.getValue("Name"), "Close");
  }
View Full Code Here

   * @param harness  the test harness (<code>null</code> not permitted).
   */
  public void test(TestHarness harness)
  {
    JInternalFrame f = new JInternalFrame();
    BasicInternalFrameTitlePane p = new BasicInternalFrameTitlePane(f);
    IconifyAction a = p.new IconifyAction();
    harness.check(a.getValue("Name"), "Minimize");
  }
View Full Code Here

   * @param harness  the test harness (<code>null</code> not permitted).
   */
  public void test(TestHarness harness)
  {
    JInternalFrame f = new JInternalFrame();
    BasicInternalFrameTitlePane p = new BasicInternalFrameTitlePane(f);
    MoveAction a = p.new MoveAction();
    harness.check(a.getValue("Name"), "Move");
  }
View Full Code Here

   * @param w Width of the area to paint to
   * @param h Height of the area to paint to
   */
  public void paintInternalFrameTitlePaneBackground( SynthContext context, Graphics g, int x, int y, int w, int h )
  {
    BasicInternalFrameTitlePane pane = (BasicInternalFrameTitlePane)context.getComponent();

    int cc = pane.getComponentCount();
    for ( int i = 0; i< cc; i++ ) {
      JComponent c = (JComponent)pane.getComponent( i );
      c.setBorder( null);
      //c.setPreferredSize( new java.awt.Dimension( 16, 16 ));
    }
    pane.getLayout().minimumLayoutSize( pane );
   
    java.awt.Component parent = pane.getParent();
    String title = "";
    if ( parent instanceof JInternalFrame )
      title = ( ( JInternalFrame ) parent ).getTitle();
    else {
      JInternalFrame.JDesktopIcon desktopIcon = ( JInternalFrame.JDesktopIcon ) parent;
View Full Code Here

TOP

Related Classes of javax.swing.plaf.basic.BasicInternalFrameTitlePane

Copyright © 2018 www.massapicom. 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.