下面列出了javax.swing.plaf.metal.MetalBorders#com.sun.java.swing.plaf.windows.WindowsBorders 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。
private static JComponent getComponent(Border border) {
Class type = border.getClass();
if (type.equals(MotifBorders.MotifPopupMenuBorder.class)) {
return POPUP;
}
if (type.equals(WindowsBorders.ToolBarBorder.class)) {
return TOOLBAR;
}
if (type.equals(MetalBorders.ToolBarBorder.class)) {
return TOOLBAR;
}
return LABEL;
}
private static JComponent getComponent(Border border) {
Class type = border.getClass();
if (type.equals(MotifBorders.MotifPopupMenuBorder.class)) {
return POPUP;
}
if (type.equals(WindowsBorders.ToolBarBorder.class)) {
return TOOLBAR;
}
if (type.equals(MetalBorders.ToolBarBorder.class)) {
return TOOLBAR;
}
return LABEL;
}
private static JComponent getComponent(Border border) {
Class type = border.getClass();
if (type.equals(MotifBorders.MotifPopupMenuBorder.class)) {
return POPUP;
}
if (type.equals(WindowsBorders.ToolBarBorder.class)) {
return TOOLBAR;
}
if (type.equals(MetalBorders.ToolBarBorder.class)) {
return TOOLBAR;
}
return LABEL;
}
private static JComponent getComponent(Border border) {
Class type = border.getClass();
if (type.equals(MotifBorders.MotifPopupMenuBorder.class)) {
return POPUP;
}
if (type.equals(WindowsBorders.ToolBarBorder.class)) {
return TOOLBAR;
}
if (type.equals(MetalBorders.ToolBarBorder.class)) {
return TOOLBAR;
}
return LABEL;
}
private static JComponent getComponent(Border border) {
Class type = border.getClass();
if (type.equals(MotifBorders.MotifPopupMenuBorder.class)) {
return POPUP;
}
if (type.equals(WindowsBorders.ToolBarBorder.class)) {
return TOOLBAR;
}
if (type.equals(MetalBorders.ToolBarBorder.class)) {
return TOOLBAR;
}
return LABEL;
}
private static JComponent getComponent(Border border) {
Class type = border.getClass();
if (type.equals(MotifBorders.MotifPopupMenuBorder.class)) {
return POPUP;
}
if (type.equals(WindowsBorders.ToolBarBorder.class)) {
return TOOLBAR;
}
if (type.equals(MetalBorders.ToolBarBorder.class)) {
return TOOLBAR;
}
return LABEL;
}
private static JComponent getComponent(Border border) {
Class type = border.getClass();
if (type.equals(MotifBorders.MotifPopupMenuBorder.class)) {
return POPUP;
}
if (type.equals(WindowsBorders.ToolBarBorder.class)) {
return TOOLBAR;
}
if (type.equals(MetalBorders.ToolBarBorder.class)) {
return TOOLBAR;
}
return LABEL;
}
private static JComponent getComponent(Border border) {
Class type = border.getClass();
if (type.equals(MotifBorders.MotifPopupMenuBorder.class)) {
return POPUP;
}
if (type.equals(WindowsBorders.ToolBarBorder.class)) {
return TOOLBAR;
}
if (type.equals(MetalBorders.ToolBarBorder.class)) {
return TOOLBAR;
}
return LABEL;
}
private static JComponent getComponent(Border border) {
Class type = border.getClass();
if (type.equals(MotifBorders.MotifPopupMenuBorder.class)) {
return POPUP;
}
if (type.equals(WindowsBorders.ToolBarBorder.class)) {
return TOOLBAR;
}
if (type.equals(MetalBorders.ToolBarBorder.class)) {
return TOOLBAR;
}
return LABEL;
}
private static JComponent getComponent(Border border) {
Class type = border.getClass();
if (type.equals(MotifBorders.MotifPopupMenuBorder.class)) {
return POPUP;
}
if (type.equals(WindowsBorders.ToolBarBorder.class)) {
return TOOLBAR;
}
if (type.equals(MetalBorders.ToolBarBorder.class)) {
return TOOLBAR;
}
return LABEL;
}
private static JComponent getComponent(Border border) {
Class type = border.getClass();
if (type.equals(MotifBorders.MotifPopupMenuBorder.class)) {
return POPUP;
}
if (type.equals(WindowsBorders.ToolBarBorder.class)) {
return TOOLBAR;
}
if (type.equals(MetalBorders.ToolBarBorder.class)) {
return TOOLBAR;
}
return LABEL;
}
private static JComponent getComponent(Border border) {
Class type = border.getClass();
if (type.equals(MotifBorders.MotifPopupMenuBorder.class)) {
return POPUP;
}
if (type.equals(WindowsBorders.ToolBarBorder.class)) {
return TOOLBAR;
}
if (type.equals(MetalBorders.ToolBarBorder.class)) {
return TOOLBAR;
}
return LABEL;
}
private static JComponent getComponent(Border border) {
Class type = border.getClass();
if (type.equals(MotifBorders.MotifPopupMenuBorder.class)) {
return POPUP;
}
if (type.equals(WindowsBorders.ToolBarBorder.class)) {
return TOOLBAR;
}
if (type.equals(MetalBorders.ToolBarBorder.class)) {
return TOOLBAR;
}
return LABEL;
}