/[classpath]/classpath/javax/swing/plaf/metal/MetalInternalFrameTitlePane.java
ViewVC logotype

Diff of /classpath/javax/swing/plaf/metal/MetalInternalFrameTitlePane.java

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

revision 1.6 by rabbit78, Tue Nov 15 20:51:37 2005 UTC revision 1.7 by rabbit78, Wed Nov 16 16:41:41 2005 UTC
# Line 349  public class MetalInternalFrameTitlePane Line 349  public class MetalInternalFrameTitlePane
349    {    {
350      Color savedColor = g.getColor();      Color savedColor = g.getColor();
351      Rectangle b = SwingUtilities.getLocalBounds(this);      Rectangle b = SwingUtilities.getLocalBounds(this);
352      g.setColor(MetalLookAndFeel.getPrimaryControlShadow());  
353      g.fillRect(b.x, b.y, b.width, b.height);      if (UIManager.get("InternalFrame.activeTitleGradient") != null
354            && frame.isSelected())
355          {
356            MetalUtils.paintGradient(g, b.x, b.y, b.width, b.height,
357                                     SwingConstants.VERTICAL,
358                                     "InternalFrame.activeTitleGradient");
359          }
360      MetalUtils.fillMetalPattern(this, g, b.x + 4, b.y + 2, b.width      MetalUtils.fillMetalPattern(this, g, b.x + 4, b.y + 2, b.width
361              - paletteCloseIcon.getIconWidth() - 13, b.height - 5,              - paletteCloseIcon.getIconWidth() - 13, b.height - 5,
362              MetalLookAndFeel.getPrimaryControlHighlight(),              MetalLookAndFeel.getPrimaryControlHighlight(),
# Line 391  public class MetalInternalFrameTitlePane Line 397  public class MetalInternalFrameTitlePane
397          g.drawLine(0, d.height - 1, d.width - 1, d.height - 1);          g.drawLine(0, d.height - 1, d.width - 1, d.height - 1);
398                    
399          // draw the metal pattern          // draw the metal pattern
400            if (UIManager.get("InternalFrame.activeTitleGradient") != null
401                && frame.isSelected())
402              {
403                MetalUtils.paintGradient(g, 0, 0, getWidth(), getHeight(),
404                                         SwingConstants.VERTICAL,
405                                         "InternalFrame.activeTitleGradient");
406              }
407    
408          Rectangle b = title.getBounds();          Rectangle b = title.getBounds();
409          int startX = b.x + b.width + 5;          int startX = b.x + b.width + 5;
410          int endX = startX;          int endX = startX;

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

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