/[classpath]/classpath/javax/swing/JComponent.java
ViewVC logotype

Diff of /classpath/javax/swing/JComponent.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.35 by mkoch, Wed Feb 16 12:36:22 2005 UTC revision 1.36 by rabbit78, Tue Apr 12 19:48:43 2005 UTC
# Line 175  public abstract class JComponent extends Line 175  public abstract class JComponent extends
175     * @see javax.swing.OverlayLayout     * @see javax.swing.OverlayLayout
176     * @see javax.swing.BoxLayout     * @see javax.swing.BoxLayout
177     */     */
178    float alignmentX = 0.0f;    float alignmentX = 0.5f;
179    
180    /**    /**
181     * A value between 0.0 and 1.0 indicating the preferred vertical     * A value between 0.0 and 1.0 indicating the preferred vertical
# Line 190  public abstract class JComponent extends Line 190  public abstract class JComponent extends
190     * @see javax.swing.OverlayLayout     * @see javax.swing.OverlayLayout
191     * @see javax.swing.BoxLayout     * @see javax.swing.BoxLayout
192     */     */
193    float alignmentY = 0.0f;    float alignmentY = 0.5f;
194    
195    /**    /**
196     * The border painted around this component.     * The border painted around this component.
# Line 1137  public abstract class JComponent extends Line 1137  public abstract class JComponent extends
1137     */     */
1138    public JToolTip createToolTip()    public JToolTip createToolTip()
1139    {    {
1140          JToolTip toolTip = new JToolTip();          JToolTip toolTip = new JToolTip();
1141          toolTip.setComponent(this);          toolTip.setComponent(this);
1142          toolTip.setTipText(toolTipText);          toolTip.setTipText(toolTipText);
1143            
1144      return toolTip;      return toolTip;
1145    }    }
# Line 1173  public abstract class JComponent extends Line 1173  public abstract class JComponent extends
1173        toolTipText = null;        toolTipText = null;
1174        return;        return;
1175      }      }
1176                                    
1177      // XXX: The tip text doesn't get updated unless you set it to null      // XXX: The tip text doesn't get updated unless you set it to null
1178      // and then to something not-null. This is consistent with the behaviour      // and then to something not-null. This is consistent with the behaviour
1179      // of Sun's ToolTipManager.      // of Sun's ToolTipManager.
1180                                                    
1181      String oldText = toolTipText;      String oldText = toolTipText;
1182      toolTipText = text;      toolTipText = text;
1183                                    
1184      if (oldText == null)      if (oldText == null)
1185        ToolTipManager.sharedInstance().registerComponent(this);        ToolTipManager.sharedInstance().registerComponent(this);
1186    }    }
# Line 1428  public abstract class JComponent extends Line 1428  public abstract class JComponent extends
1428              g2 = doubleBuffer.getGraphics();              g2 = doubleBuffer.getGraphics();
1429              g2.setClip(g.getClipBounds());              g2.setClip(g.getClipBounds());
1430            }            }
1431                        
1432          g2 = getComponentGraphics(g2);          g2 = getComponentGraphics(g2);
1433          paintComponent(g2);          paintComponent(g2);
1434          paintBorder(g2);          paintBorder(g2);
# Line 2273  public abstract class JComponent extends Line 2273  public abstract class JComponent extends
2273    
2274      this.verifyInputWhenFocusTarget = verifyInputWhenFocusTarget;      this.verifyInputWhenFocusTarget = verifyInputWhenFocusTarget;
2275      firePropertyChange("verifyInputWhenFocusTarget",      firePropertyChange("verifyInputWhenFocusTarget",
2276                         ! verifyInputWhenFocusTarget,                         ! verifyInputWhenFocusTarget,
2277                         verifyInputWhenFocusTarget);                         verifyInputWhenFocusTarget);
2278    }    }
2279  }  }

Legend:
Removed from v.1.35  
changed lines
  Added in v.1.36

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26