85 |
* <code>“Button.light”</code>, and |
* <code>“Button.light”</code>, and |
86 |
* <code>“Button.highlight”</code>. |
* <code>“Button.highlight”</code>. |
87 |
* |
* |
88 |
* <p><img src="BasicBorders.ButtonBorder-1.png" width="300" |
* <p><img src="doc-files/BasicBorders.ButtonBorder-1.png" width="300" |
89 |
* height="170" alt="[A screen shot of the returned border]" /> |
* height="170" alt="[A screen shot of the returned border]" /> |
90 |
* |
* |
91 |
* @return a {@link |
* @return a {@link |
135 |
* <code>“RadioButton.light”</code>, and |
* <code>“RadioButton.light”</code>, and |
136 |
* <code>“RadioButton.highlight”</code>. |
* <code>“RadioButton.highlight”</code>. |
137 |
* |
* |
138 |
* <p><img src="BasicBorders.RadioButtonBorder-1.png" width="300" |
* <p><img src="doc-files/BasicBorders.RadioButtonBorder-1.png" width="300" |
139 |
* height="135" alt="[A screen shot of the returned border]" /> |
* height="135" alt="[A screen shot of the returned border]" /> |
140 |
* |
* |
141 |
* @return a {@link |
* @return a {@link |
187 |
* <code>“ToggleButton.light”</code>, and |
* <code>“ToggleButton.light”</code>, and |
188 |
* <code>“ToggleButton.highlight”</code>. |
* <code>“ToggleButton.highlight”</code>. |
189 |
* |
* |
190 |
* <p><img src="BasicBorders.ToggleButtonBorder-1.png" width="270" |
* <p><img src="doc-files/BasicBorders.ToggleButtonBorder-1.png" width="270" |
191 |
* height="135" alt="[A screen shot of the returned border]" /> |
* height="135" alt="[A screen shot of the returned border]" /> |
192 |
* |
* |
193 |
* @return a {@link |
* @return a {@link |
238 |
* using the keys <code>“MenuBar.shadow”</code> and |
* using the keys <code>“MenuBar.shadow”</code> and |
239 |
* <code>“MenuBar.highlight”</code>. |
* <code>“MenuBar.highlight”</code>. |
240 |
* |
* |
241 |
* <p><img src="BasicBorders.MenuBarBorder-1.png" width="500" |
* <p><img src="doc-files/BasicBorders.MenuBarBorder-1.png" width="500" |
242 |
* height="140" alt="[A screen shot of a JMenuBar with this border]" /> |
* height="140" alt="[A screen shot of a JMenuBar with this border]" /> |
243 |
* |
* |
244 |
* @return a {@link #MenuBarBorder}. |
* @return a {@link #MenuBarBorder}. |
266 |
* using the keys <code>“SplitPane.darkShadow”</code> and |
* using the keys <code>“SplitPane.darkShadow”</code> and |
267 |
* <code>“SplitPane.highlight”</code>. |
* <code>“SplitPane.highlight”</code>. |
268 |
* |
* |
269 |
* <p><img src="BasicBorders.SplitPaneBorder-1.png" width="520" |
* <p><img src="doc-files/BasicBorders.SplitPaneBorder-1.png" width="520" |
270 |
* height="200" alt="[A screen shot for JSplitPane.HORIZONTAL_SPLIT]" /> |
* height="200" alt="[A screen shot for JSplitPane.HORIZONTAL_SPLIT]" /> |
271 |
* |
* |
272 |
* <p><img src="BasicBorders.SplitPaneBorder-2.png" width="520" |
* <p><img src="doc-files/BasicBorders.SplitPaneBorder-2.png" width="520" |
273 |
* height="200" alt="[A screen shot for JSplitPane.VERTICAL_SPLIT]" /> |
* height="200" alt="[A screen shot for JSplitPane.VERTICAL_SPLIT]" /> |
274 |
* |
* |
275 |
* @return a {@link #SplitPaneBorder}. |
* @return a {@link #SplitPaneBorder}. |
299 |
* <code>“SplitPane.highlight”</code>. The color of the |
* <code>“SplitPane.highlight”</code>. The color of the |
300 |
* other two edges is the background color of the divider. |
* other two edges is the background color of the divider. |
301 |
* |
* |
302 |
* <p><img src="BasicBorders.SplitPaneDividerBorder-1.png" width="520" |
* <p><img src="doc-files/BasicBorders.SplitPaneDividerBorder-1.png" |
303 |
* height="200" alt="[A screen shot for JSplitPane.HORIZONTAL_SPLIT]" /> |
* width="520" height="200" alt= |
304 |
|
* "[A screen shot for JSplitPane.HORIZONTAL_SPLIT]" /> |
305 |
* |
* |
306 |
* @return an instance of <code>SplitPaneDividerBorder</code>, which is |
* @return an instance of <code>SplitPaneDividerBorder</code>, which is |
307 |
* not a public API class of this package. |
* not a public API class of this package. |
335 |
* <code>“TextField.light”</code>, and |
* <code>“TextField.light”</code>, and |
336 |
* <code>“TextField.highlight”</code>. |
* <code>“TextField.highlight”</code>. |
337 |
* |
* |
338 |
* <p><img src="BasicBorders.FieldBorder-1.png" width="500" |
* <p><img src="doc-files/BasicBorders.FieldBorder-1.png" width="500" |
339 |
* height="200" alt="[A screen shot of a border returned by |
* height="200" alt="[A screen shot of a border returned by |
340 |
* this method]" /> |
* this method]" /> |
341 |
* |
* |
365 |
* feels better use different borders for their progress bars, or |
* feels better use different borders for their progress bars, or |
366 |
* they will look really terrible. |
* they will look really terrible. |
367 |
* |
* |
368 |
* <p><img src="BasicBorders-1.png" width="120" height="80" |
* <p><img src="doc-files/BasicBorders-1.png" width="120" height="80" |
369 |
* alt="[A screen shot of a border returned by this method]" /> |
* alt="[A screen shot of a border returned by this method]" /> |
370 |
*/ |
*/ |
371 |
public static Border getProgressBarBorder() |
public static Border getProgressBarBorder() |
381 |
* Returns a border that is composed of a raised bevel border and a |
* Returns a border that is composed of a raised bevel border and a |
382 |
* one-pixel thick line border. |
* one-pixel thick line border. |
383 |
* |
* |
384 |
* <p><img src="BasicBorders-2.png" width="300" height="200" |
* <p><img src="doc-files/BasicBorders-2.png" width="300" height="200" |
385 |
* alt="[A screen shot of a border returned by this method]" /> |
* alt="[A screen shot of a border returned by this method]" /> |
386 |
* |
* |
387 |
* <p>The colors of the border are retrieved from the |
* <p>The colors of the border are retrieved from the |
441 |
* A border whose appearance depends on the state of |
* A border whose appearance depends on the state of |
442 |
* the enclosed button. |
* the enclosed button. |
443 |
* |
* |
444 |
* <p><img src="BasicBorders.ButtonBorder-1.png" width="300" |
* <p><img src="doc-files/BasicBorders.ButtonBorder-1.png" width="300" |
445 |
* height="170" alt="[A screen shot of this border]" /> |
* height="170" alt="[A screen shot of this border]" /> |
446 |
* |
* |
447 |
* @see javax.swing.plaf.basic.BasicGraphicsUtils#drawBezel |
* @see javax.swing.plaf.basic.BasicGraphicsUtils#drawBezel |
617 |
* A border that makes its enclosed component appear as lowered |
* A border that makes its enclosed component appear as lowered |
618 |
* into the surface. Typically used for text fields. |
* into the surface. Typically used for text fields. |
619 |
* |
* |
620 |
* <p><img src="BasicBorders.FieldBorder-1.png" width="500" |
* <p><img src="doc-files/BasicBorders.FieldBorder-1.png" width="500" |
621 |
* height="200" alt="[A screen shot of this border]" /> |
* height="200" alt="[A screen shot of this border]" /> |
622 |
* |
* |
623 |
* @see javax.swing.plaf.basic.BasicGraphicsUtils#drawEtchedRect |
* @see javax.swing.plaf.basic.BasicGraphicsUtils#drawEtchedRect |
785 |
* component. If the enclosed component has no such method, |
* component. If the enclosed component has no such method, |
786 |
* this border will not occupy any space. |
* this border will not occupy any space. |
787 |
* |
* |
788 |
* <p><img src="BasicBorders.MarginBorder-1.png" width="325" |
* <p><img src="doc-files/BasicBorders.MarginBorder-1.png" width="325" |
789 |
* height="200" alt="[An illustration that shows how MarginBorder |
* height="200" alt="[An illustration that shows how MarginBorder |
790 |
* determines its borders]" /> |
* determines its borders]" /> |
791 |
* |
* |
886 |
/** |
/** |
887 |
* A border for drawing a separator line below JMenuBar. |
* A border for drawing a separator line below JMenuBar. |
888 |
* |
* |
889 |
* <p><img src="BasicBorders.MenuBarBorder-1.png" width="500" |
* <p><img src="doc-files/BasicBorders.MenuBarBorder-1.png" width="500" |
890 |
* height="140" alt="[A screen shot of a JMenuBar with this border]" /> |
* height="140" alt="[A screen shot of a JMenuBar with this border]" /> |
891 |
* |
* |
892 |
* @author Sascha Brawer (brawer@dandelis.ch) |
* @author Sascha Brawer (brawer@dandelis.ch) |
920 |
* Constructs a new MenuBarBorder for drawing a JMenuBar in |
* Constructs a new MenuBarBorder for drawing a JMenuBar in |
921 |
* the Basic look and feel. |
* the Basic look and feel. |
922 |
* |
* |
923 |
* <p><img src="BasicBorders.MenuBarBorder-1.png" width="500" |
* <p><img src="doc-files/BasicBorders.MenuBarBorder-1.png" width="500" |
924 |
* height="140" alt="[A screen shot of a JMenuBar with this |
* height="140" alt="[A screen shot of a JMenuBar with this |
925 |
* border]" /> |
* border]" /> |
926 |
* |
* |
1042 |
/** |
/** |
1043 |
* A border for drawing radio buttons in the Basic look and feel. |
* A border for drawing radio buttons in the Basic look and feel. |
1044 |
* |
* |
1045 |
* <p><img src="BasicBorders.RadioButtonBorder-1.png" width="300" |
* <p><img src="doc-files/BasicBorders.RadioButtonBorder-1.png" width="300" |
1046 |
* height="135" alt="[A screen shot of this border]" /> |
* height="135" alt="[A screen shot of this border]" /> |
1047 |
* |
* |
1048 |
* <p>Note about the screen shot: Normally, the |
* <p>Note about the screen shot: Normally, the |
1286 |
* in the middle of the JSplitPane has its own border class, of which |
* in the middle of the JSplitPane has its own border class, of which |
1287 |
* an instance can be obtained with {@link #getSplitPaneDividerBorder()}. |
* an instance can be obtained with {@link #getSplitPaneDividerBorder()}. |
1288 |
* |
* |
1289 |
* <p><img src="BasicBorders.SplitPaneBorder-1.png" width="520" |
* <p><img src="doc-files/BasicBorders.SplitPaneBorder-1.png" width="520" |
1290 |
* height="200" alt="[A screen shot for JSplitPane.HORIZONTAL_SPLIT]" /> |
* height="200" alt="[A screen shot for JSplitPane.HORIZONTAL_SPLIT]" /> |
1291 |
* |
* |
1292 |
* <p><img src="BasicBorders.SplitPaneBorder-2.png" width="520" |
* <p><img src="doc-files/BasicBorders.SplitPaneBorder-2.png" width="520" |
1293 |
* height="200" alt="[A screen shot for JSplitPane.VERTICAL_SPLIT]" /> |
* height="200" alt="[A screen shot for JSplitPane.VERTICAL_SPLIT]" /> |
1294 |
* |
* |
1295 |
* <p>In contrast to the other borders of the Basic look and feel, |
* <p>In contrast to the other borders of the Basic look and feel, |
1382 |
/** |
/** |
1383 |
* Paints the border around a <code>JSplitPane</code>. |
* Paints the border around a <code>JSplitPane</code>. |
1384 |
* |
* |
1385 |
* <p><img src="BasicBorders.SplitPaneBorder-1.png" width="520" |
* <p><img src="doc-files/BasicBorders.SplitPaneBorder-1.png" width="520" |
1386 |
* height="200" alt="[A screen shot for JSplitPane.HORIZONTAL_SPLIT]" /> |
* height="200" alt="[A screen shot for JSplitPane.HORIZONTAL_SPLIT]" /> |
1387 |
* |
* |
1388 |
* <p><img src="BasicBorders.SplitPaneBorder-2.png" width="520" |
* <p><img src="doc-files/BasicBorders.SplitPaneBorder-2.png" width="520" |
1389 |
* height="200" alt="[A screen shot for JSplitPane.VERTICAL_SPLIT]" /> |
* height="200" alt="[A screen shot for JSplitPane.VERTICAL_SPLIT]" /> |
1390 |
* |
* |
1391 |
* @param c the <code>JSplitPane</code> whose border is to be painted. |
* @param c the <code>JSplitPane</code> whose border is to be painted. |
1536 |
/** |
/** |
1537 |
* A border for the divider inside a JSplitPane. |
* A border for the divider inside a JSplitPane. |
1538 |
* |
* |
1539 |
* <p><img src="BasicBorders.SplitPaneDividerBorder-1.png" |
* <p><img src="doc-files/BasicBorders.SplitPaneDividerBorder-1.png" |
1540 |
* width="520" height="200" alt="[A screen shot of this border]" /> |
* width="520" height="200" alt="[A screen shot of this border]" /> |
1541 |
* |
* |
1542 |
* @author Sascha Brawer (brawer@dandelis.ch) |
* @author Sascha Brawer (brawer@dandelis.ch) |
1576 |
/** |
/** |
1577 |
* Paints the border around the divider of a <code>JSplitPane</code>. |
* Paints the border around the divider of a <code>JSplitPane</code>. |
1578 |
* |
* |
1579 |
* <p><img src="BasicBorders.SplitPaneDividerBorder-1.png" width="520" |
* <p><img src="doc-files/BasicBorders.SplitPaneDividerBorder-1.png" |
1580 |
* height="200" alt="[A picture that shows which pixels get painted |
* width="520" height="200" alt="[A picture that shows which pixels |
1581 |
* in what color]" /> |
* get painted in what color]" /> |
1582 |
* |
* |
1583 |
* @param c the <code>JSplitPane</code> whose divider’s border |
* @param c the <code>JSplitPane</code> whose divider’s border |
1584 |
* is to be painted. |
* is to be painted. |
1688 |
/** |
/** |
1689 |
* A border for toggle buttons in the Basic look and feel. |
* A border for toggle buttons in the Basic look and feel. |
1690 |
* |
* |
1691 |
* <p><img src="BasicBorders.ToggleButtonBorder-1.png" width="270" |
* <p><img src="doc-files/BasicBorders.ToggleButtonBorder-1.png" |
1692 |
* height="135" alt="[A screen shot of this border]" /> |
* width="270" height="135" alt="[A screen shot of this border]" /> |
1693 |
* |
* |
1694 |
* <p>The Sun implementation always seems to draw exactly |
* <p>The Sun implementation always seems to draw exactly |
1695 |
* the same border, irrespective of the state of the button. |
* the same border, irrespective of the state of the button. |