Examples of JToolTip


Examples of javax.swing.JToolTip

  implements Testlet
{
 
  public void test(TestHarness harness)
  {
    JToolTip tt = new JToolTip();
    harness.check(tt.getTipText(), null);
    tt.setTipText("ABC");
    harness.check(tt.getTipText(), "ABC");
  }
View Full Code Here

Examples of javax.swing.JToolTip

    events.add(event);
  }
 
  public void test(TestHarness harness)
  {
    JToolTip tt = new JToolTip();
    tt.addPropertyChangeListener(this);
    tt.setTipText("XYZ");
    harness.check(tt.getTipText(), "XYZ");

    // check the generated event...
    harness.check(events.size(), 1);
    PropertyChangeEvent e = (PropertyChangeEvent) events.get(0);
    harness.check(e.getPropertyName(), "tiptext");
View Full Code Here

Examples of javax.swing.JToolTip

public class getUIClassID implements Testlet
{
  public void test(TestHarness harness)
  {
    JToolTip tt = new JToolTip();
    harness.check(tt.getUIClassID(), "ToolTipUI");
  }
View Full Code Here

Examples of javax.swing.JToolTip

  }
 
  public void test(TestHarness harness)
  {
    JButton component = new JButton("Button");
    JToolTip tt = new JToolTip();
    tt.addPropertyChangeListener(this);
    tt.setComponent(component);
    harness.check(tt.getComponent(), component);

    // check the generated event...
    harness.check(events.size(), 1);
    PropertyChangeEvent e = (PropertyChangeEvent) events.get(0);
    harness.check(e.getPropertyName(), "component");
    harness.check(e.getSource(), tt);
    harness.check(e.getOldValue(), null);
    harness.check(e.getNewValue(), component);
   
    // check that the component can be set to null
    events.clear();
    tt.setComponent(null);
    harness.check(events.size(), 1);
    e = (PropertyChangeEvent) events.get(0);
    harness.check(e.getPropertyName(), "component");
    harness.check(e.getSource(), tt);
    harness.check(e.getOldValue(), component);
View Full Code Here

Examples of javax.swing.JToolTip

    }

  }
   
    public JToolTip createToolTip() {
        JToolTip tip = super.createToolTip();
        tip.setBackground(Color.yellow);
        return tip;
    }
View Full Code Here

Examples of javax.swing.JToolTip

          return super.getToolTipLocation(event);
      }

      public JToolTip createToolTip() {
        if (getToolTipText().startsWith("<html>")) {
          JToolTip tip = new HyperLinkToolTip();
          tip.setComponent(this);
          return tip;
        } else {
          return super.createToolTip();
        }
      }};
View Full Code Here

Examples of javax.swing.JToolTip

        return super.getToolTipLocation(event);
    }


    public JToolTip createToolTip() {
        JToolTip result = super.createToolTip();
        if (isInEVSchedule && actDate == null && forecastDateHTML == null)
            new EVDateRecalculator(result).start();
        return result;
    }
View Full Code Here

Examples of javax.swing.JToolTip

    }

    public static final Point TOOLTIP_LOCATION = getTooltipOffset();
   
    private static Point getTooltipOffset() {
        JToolTip tip = new JToolTip();
        tip.setTipText("X");
        int delta = tip.getPreferredSize().height + 2;
        return new Point(-40, -delta);
    }
View Full Code Here

Examples of javax.swing.JToolTip

                    // Application.StartupPath devuelve el directorio desde el que se ha iniciado la aplicaci�n
                    this.originalImage =new ImageIcon(getClass().getResource(file));
                    this.setIcon(this.originalImage);  
            }
             
            this.toolTip = new JToolTip();
//            Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo(Tablero.CultureInfo);
            //this.setToolTipText(ResourceBundle.getBundle("idiomas.fich_idiomas",t.Idiomas).getString("str" + texto));
            System.out.println("FIn de mi boton 2 args");
           
    }
View Full Code Here

Examples of javax.swing.JToolTip

                    //pruIcon=new ImageIcon(getClass().getResource(file));
                    pruIcon=new ImageIcon(file);
                    this.originalImage = new ImageIcon(pruIcon.getImage().getScaledInstance(t.anchoBoton,t.altoBoton, Image.SCALE_DEFAULT));
                    this.setIcon(this.originalImage);
            }
            this.toolTip = new JToolTip();
//            Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo(Tablero.CultureInfo);
           // this.setToolTipText(ResourceBundle.getBundle("idiomas.fich_idiomas",t.Idiomas).getString("str" + texto));
            //System.out.println("Insertado boton: " + this.getName());
    }
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.