java类库详细讲解
源代码在线查看: compborder.html
Creating a Compound Border
(Java Developers Almanac Example)
BODY CODE {font-family: Courier, Monospace; font-size: 11pt} TABLE, BODY {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt} PRE {font-family: Courier, Monospace; font-size: 10pt} H3 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11pt} A.eglink {text-decoration: none} A:hover.eglink {text-decoration: underline} -->
The Java Developers Almanac 1.4
Order this book from Amazon.
Home
>
List of Packages
>
javax.swing
[137 examples]
e840.
Creating a Compound Border
// border1 is around border2
Border newBorder = BorderFactory.createCompoundBorder(border1, border2);
component.setBorder(newBorder);
© 2002 Addison-Wesley.