protected void paintTabBorder(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected) { g.setColor(lightHighlight); if (tabPlacement == TOP) { g.drawLine(x, y, x, y + h - 1); g.drawLine(x, y, x + w - 1, y); g.setColor(shadow); g.drawLine(x + w - 1, y, x + w - 1, y + h - 1); g.setColor(darkShadow); g.drawLine(x + w - 1, y, x + w - 1, y + h - 1); } else { super.paintTabBorder(g, tabPlacement, tabIndex, x, y, w, h, isSelected); } }给你个Top的,至于其他几面的自己写吧,其他的方法如果不需要就不重写,或者super就可以
int tabIndex,
int x, int y, int w, int h,
boolean isSelected) {
g.setColor(lightHighlight);
if (tabPlacement == TOP) {
g.drawLine(x, y, x, y + h - 1);
g.drawLine(x, y, x + w - 1, y);
g.setColor(shadow);
g.drawLine(x + w - 1, y, x + w - 1, y + h - 1);
g.setColor(darkShadow);
g.drawLine(x + w - 1, y, x + w - 1, y + h - 1);
} else {
super.paintTabBorder(g, tabPlacement, tabIndex, x, y, w, h,
isSelected);
}
}给你个Top的,至于其他几面的自己写吧,其他的方法如果不需要就不重写,或者super就可以
UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
} catch (Exception evt) {}更换另外的一种LookAndFeel 就行了!