亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? borders.java

?? 漂亮的java swing 界面
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
      
      g2D.setColor( colIzq);
      g2D.fillRect( 0, 0, grosor,h-ins.bottom);
      
      g2D.setPaint( grad);
      g2D.fillRect( 0, h-ins.bottom, w-ins.right+grosor, grosor);
      
      g2D.setColor(  colDer);
      g2D.fillRect( w-ins.right, 0, grosor, h-ins.bottom);

      g2D.dispose();
      
      g.setColor( LookAndFeel.getControlDarkShadow());
      g.drawRect( 0, 0, w-5, h-5);
      
      Icon icono = UIManager.getIcon( "BorderPopupMenu.SombraEsqIcon");
      icono.paintIcon( c, g, w-5,h-5);
      
      icono = UIManager.getIcon( "BorderPopupMenu.SombraUpIcon");
      icono.paintIcon( c, g, w-5,0);
      
      icono = UIManager.getIcon( "BorderPopupMenu.SombraIzqIcon");
      icono.paintIcon( c, g, 0,h-5);
      
      icono = UIManager.getIcon( "BorderPopupMenu.SombraBajIcon");
      g.drawImage( ((ImageIcon)icono).getImage(), 5,h-5, w-10, icono.getIconHeight(), null);
      
      icono = UIManager.getIcon( "BorderPopupMenu.SombraDerIcon");
      g.drawImage( ((ImageIcon)icono).getImage(), w-5,5, icono.getIconWidth(),h-10, null);
      
      g.translate( -x, -y);
    }

    public Insets getBorderInsets( Component c ) {
      return ins;
    }

    public Insets getBorderInsets( Component c, Insets insets) {
      Insets tmpIns = getBorderInsets( c);
      
      insets.top = tmpIns.top;
      insets.left = tmpIns.left;
      insets.bottom = tmpIns.bottom;
      insets.right = tmpIns.right;
      
      return insets;
    }
  }
  
  public static class MenuBarBorder extends AbstractBorder implements UIResource {
    private static final long serialVersionUID = 116001977502172752L;

    protected static Insets ins = new Insets( 0,2, 0, 10);
    
    public void paintBorder( Component c, Graphics g, int x, int y, int width, int height) {
      g.setColor( Utils.getSombra());
      g.drawLine( 0,height-2, width,height-2);
      g.setColor( Utils.getBrillo());
      g.drawLine( 0,height-1, width,height-1);
    }
    
    public Insets getBorderInsets( Component c) {
      return ins;
    }

    public Insets getBorderInsets( Component c, Insets insets) {
      Insets tmpIns = getBorderInsets( c);
      
      insets.top = tmpIns.top;
      insets.left = tmpIns.left;
      insets.bottom = tmpIns.bottom;
      insets.right = tmpIns.right;
      
      return insets;
    }
  }
  
  public static class ToolBarBorder extends MenuBarBorder implements SwingConstants, UIResource {
    private static final long serialVersionUID = 116002347502172752L;

    private static int bumpWidth = 14;
    
    public void paintBorder( Component c, Graphics g, int x, int y, int width, int height) {
      Icon icon = null;
      int desp = 0;
      
      if ( ((JToolBar)c).isFloatable() ) {
        if ( ((JToolBar)c).getOrientation() == HORIZONTAL ) {
          icon = UIManager.getIcon( "ScrollBar.verticalThumbIconImage");
          desp = icon.getIconHeight();
          
          for ( int i = 0; i < 5; i++) {
            icon.paintIcon( c, g, x+1, y+1+(desp*i));
          }
        }
        else {
          icon = UIManager.getIcon( "ScrollBar.horizontalThumbIconImage");
          desp = icon.getIconWidth();
          
          for ( int i = 0; i < 5; i++) {
            icon.paintIcon( c, g, x+1+(desp*i), y+1);
          }
        }
      }
    }
    
    public Insets getBorderInsets( Component c) {
      return getBorderInsets( c, new Insets( 0,0,0,0));
    }

    public Insets getBorderInsets( Component c, Insets ins) {
      ins.top = ins.left = ins.bottom = ins.right = 3;

      if ( ((JToolBar)c).isFloatable() ) {
        if ( ((JToolBar)c).getOrientation() == HORIZONTAL ) {
          if (c.getComponentOrientation().isLeftToRight()) {
              ins.left += bumpWidth;
          } else {
              ins.right += bumpWidth;
          }
        } else {// vertical
          ins.top += bumpWidth;
        }
      }

      Insets margin = ((JToolBar)c).getMargin();

      if ( margin != null ) {
        ins.left   += margin.left;
        ins.top    += margin.top;
        ins.right  += margin.right;
        ins.bottom += margin.bottom;
      }

      return ins;
    }
  }
  
  public static class GenBorder extends AbstractBorder implements UIResource {
    private static final long serialVersionUID = 116001977502172752L;

    protected static Insets ins = new Insets( 3,3, 2,2);
    
    public void paintBorder( Component c, Graphics g, int x, int y, int width, int height) {
      int wl = width - 8;
      int hl = height - 8;
      
      ImageIcon icono = (ImageIcon)UIManager.getIcon( "BordeGenSup");
      if ( icono == null ) return;
      
      g.translate( x,y);
      
      g.drawImage( icono.getImage(), 4,0, wl, icono.getIconHeight(), null);
      
      icono = (ImageIcon)UIManager.getIcon( "BordeGenInf");
      g.drawImage( icono.getImage(), 4,height-icono.getIconHeight(), wl, icono.getIconHeight(), null);
      
      icono = (ImageIcon)UIManager.getIcon( "BordeGenDer");
      g.drawImage( icono.getImage(), width-icono.getIconWidth(),4, icono.getIconWidth(), hl, null);
      
      icono = (ImageIcon)UIManager.getIcon( "BordeGenIzq");
      g.drawImage( icono.getImage(), 0,4, icono.getIconWidth(), hl, null);
      
      icono = (ImageIcon)UIManager.getIcon( "BordeGenSupIzq");
      icono.paintIcon( c, g, 0,0);
      icono = (ImageIcon)UIManager.getIcon( "BordeGenInfIzq");
      icono.paintIcon( c, g, 0,height-icono.getIconHeight());
      icono = (ImageIcon)UIManager.getIcon( "BordeGenSupDer");
      icono.paintIcon( c, g, width-icono.getIconWidth(),0);
      icono = (ImageIcon)UIManager.getIcon( "BordeGenInfDer");
      icono.paintIcon( c, g, width-icono.getIconWidth(),height-icono.getIconHeight());
      
      g.translate( -x,-y);
    }
    
    public Insets getBorderInsets( Component c) {
      return ins;
    }
    
    public Insets getBorderInsets( Component c, Insets insets) {
      Insets tmpIns = getBorderInsets( c);
      
      insets.top = tmpIns.top;
      insets.left = tmpIns.left;
      insets.bottom = tmpIns.bottom;
      insets.right = tmpIns.right;
      
      return insets;
    }
  }
  
  public static class EmptyGenBorder extends GenBorder implements UIResource {
    private static final long serialVersionUID = 116002377502172752L;
    
    public void paintBorder( Component c, Graphics g, int x, int y, int width, int height) {
    }
  }
  
  public static class ThinGenBorder extends GenBorder implements UIResource {
    private static final long serialVersionUID = 116002982734987752L;
    
    protected static Insets ins = new Insets( 1,1, 1,1);
    
    public void paintBorder( Component c, Graphics g, int x, int y, int width, int height) {
      g.setColor( LookAndFeel.getControlDarkShadow());
      g.drawRect( x, y, width-1, height-1);
    }
    
    public Insets getBorderInsets( Component c) {
      return ins;
    }
    
    public Insets getBorderInsets( Component c, Insets insets) {
      Insets tmpIns = getBorderInsets( c);
      
      insets.top = tmpIns.top;
      insets.left = tmpIns.left;
      insets.bottom = tmpIns.bottom;
      insets.right = tmpIns.right;
      
      return insets;
    }
  }
  
  public static class TextFieldBorder extends GenBorder implements UIResource {
    private static final long serialVersionUID = -7253364063167310481L;
    
    protected static Insets ins = new Insets( 5,6,5,6);
    
    public void paintBorder( Component c, Graphics g, int x, int y, int width, int height) {
      super.paintBorder( c, g, x+2, y+2, width-4, height-4);
    }
    
    public Insets getBorderInsets( Component c) {
      return ins;
    }

    public Insets getBorderInsets( Component c, Insets insets) {
      Insets tmpIns = getBorderInsets( c);
      
      insets.top = tmpIns.top;
      insets.left = tmpIns.left;
      insets.bottom = tmpIns.bottom;
      insets.right = tmpIns.right;
      
      return insets;
    }
  } 
  
  public static class MenuBorder extends GenBorder implements UIResource {
    private static final long serialVersionUID = -7253364063167610481L;
    
    protected static Insets ins = new Insets( 3,3, 3,3);
    
    public void paintBorder( Component c, Graphics g, int x, int y, int width, int height) {
      JMenuItem b = (JMenuItem)c;
      ButtonModel model = b.getModel();
      
      if ( model.isArmed() || model.isSelected() ) {
        super.paintBorder( c, g, x, y, width, height-2);
      }
    }
    
    public Insets getBorderInsets( Component c) {
      return ins;
    }

    public Insets getBorderInsets( Component c, Insets insets) {
      Insets tmpIns = getBorderInsets( c);
      
      insets.top = tmpIns.top;
      insets.left = tmpIns.left;
      insets.bottom = tmpIns.bottom;
      insets.right = tmpIns.right;
      
      return insets;
    }
  }
  
  public static class ComboEditorBorder extends TextFieldBorder implements UIResource {
    private static final long serialVersionUID = -7253364063167610483L;
  }
  
  public static class ComboButtonBorder extends ButtonBorder {
    private static final long serialVersionUID = -7253364063167610483L;
    
    protected static Insets ins = new Insets( 2,2,2,2);

    public void paintBorder( Component c, Graphics g, int x, int y, int width, int height) {
      super.paintBorder( c, g, x+2,y+2, width-4, height-4);
    }

    public Insets getBorderInsets( Component c) {
      return ins;
    }

    public Insets getBorderInsets( Component c, Insets insets) {
      Insets tmpIns = getBorderInsets( c);
      
      insets.top = tmpIns.top;
      insets.left = tmpIns.left;
      insets.bottom = tmpIns.bottom;
      insets.right = tmpIns.right;
      
      return insets;
    }
  }
  
  public static class ScrollPaneBorder extends AbstractBorder implements UIResource {
    private static final long serialVersionUID = -6416636693876853556L;

  }
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩欧美国产高清| 亚洲婷婷综合色高清在线| 日韩欧美一区二区在线视频| 欧美大片在线观看一区二区| 中文在线一区二区| 亚洲第四色夜色| 国产精品91一区二区| 一本色道久久综合亚洲精品按摩| 欧美久久免费观看| 中文字幕av一区 二区| 日韩成人dvd| 波多野结衣在线一区| 7777精品伊人久久久大香线蕉 | 欧美成人一级视频| 日韩伦理av电影| 国产精品99精品久久免费| 欧美伊人久久大香线蕉综合69| 2022国产精品视频| 五月天激情综合| 91在线观看地址| 久久久亚洲高清| 日韩高清不卡一区二区| 色哟哟一区二区在线观看| 欧美xxxx老人做受| 亚洲在线一区二区三区| 99久久久精品| 国产人妖乱国产精品人妖| 日本在线不卡一区| 欧美丝袜丝交足nylons| 国产精品第13页| 丰满少妇久久久久久久| 欧美mv和日韩mv的网站| 亚洲第一成年网| 91久久久免费一区二区| 国产精品视频免费| 成人网页在线观看| 久久亚洲影视婷婷| 激情图区综合网| 欧美一区二区三区免费大片| 亚洲电影视频在线| 欧美综合色免费| 一区二区三区小说| 91国内精品野花午夜精品| 一色屋精品亚洲香蕉网站| 麻豆国产欧美日韩综合精品二区 | 麻豆精品国产传媒mv男同| 欧美日韩五月天| 亚洲一区二区三区在线看| 色综合久久久久综合体桃花网| 国产精品免费看片| 国产一区中文字幕| 26uuu久久综合| 激情综合五月婷婷| 久久久久97国产精华液好用吗| 久国产精品韩国三级视频| 91精品国产aⅴ一区二区| 日日夜夜免费精品| 制服.丝袜.亚洲.另类.中文| 免费xxxx性欧美18vr| 91精品国产欧美一区二区18| 日韩av一级片| 日韩精品影音先锋| 精品在线免费观看| 中文字幕第一区| 色菇凉天天综合网| 亚洲123区在线观看| 欧美日韩精品一区二区三区四区| 日韩国产在线观看一区| 日韩一区二区三区视频| 狠狠色丁香久久婷婷综合_中| 国产视频911| www.欧美色图| 午夜视频一区二区| 精品国产区一区| 一本一道久久a久久精品| 五月天视频一区| 精品久久五月天| 丁香啪啪综合成人亚洲小说| 亚洲欧美精品午睡沙发| 7777精品伊人久久久大香线蕉 | 国产福利精品一区二区| 亚洲天堂久久久久久久| 欧美电影一区二区| 国产成人综合视频| 亚洲成人av福利| 国产午夜亚洲精品不卡| 欧美亚洲国产一区在线观看网站| 日韩电影在线一区| 国产精品国产三级国产有无不卡| 欧美日本高清视频在线观看| 轻轻草成人在线| 亚洲视频免费在线观看| 欧美va日韩va| 欧美自拍偷拍一区| 国产成a人无v码亚洲福利| 亚洲乱码中文字幕综合| 精品精品欲导航| 91片在线免费观看| 高清免费成人av| 美女被吸乳得到大胸91| 亚洲精品欧美激情| 国产精品色哟哟网站| 日韩欧美在线123| 欧美三级欧美一级| 99亚偷拍自图区亚洲| 男男gaygay亚洲| 亚洲综合激情网| 国产精品国产三级国产aⅴ无密码| 91精品国产综合久久香蕉麻豆 | 懂色av中文字幕一区二区三区| 天天操天天综合网| 一区二区三区自拍| 国产精品久久久久久久久动漫| 日韩精品一区二区在线| 欧美综合天天夜夜久久| 91一区一区三区| 国产精品一区二区91| 一区二区三区四区视频精品免费| 日韩女优电影在线观看| 99免费精品在线观看| 亚洲成精国产精品女| 欧美国产一区二区| 欧美日韩在线不卡| 91碰在线视频| 99精品一区二区三区| 久久99国产精品久久99 | voyeur盗摄精品| gogo大胆日本视频一区| 久久99国产精品久久| 日韩精品一区第一页| 同产精品九九九| 亚洲欧美日韩精品久久久久| 欧美日韩激情在线| 欧美军同video69gay| 欧美一区二区三区四区视频| 欧美精品色综合| 欧美日韩免费观看一区三区| 欧美色精品在线视频| 色婷婷久久综合| 欧美在线综合视频| 欧美日韩精品综合在线| 91精品国产欧美一区二区成人| 欧美一区二区视频网站| 日韩精品一区二区三区蜜臀| 日韩一二三区不卡| 日韩欧美国产1| 久久久久久久国产精品影院| 欧美精品一区二区蜜臀亚洲| 国产日韩欧美a| 国产精品不卡一区二区三区| 一区二区三区在线观看视频| 五月天久久比比资源色| 黑人巨大精品欧美黑白配亚洲| 国产美女精品人人做人人爽| 成年人午夜久久久| 欧美日韩一本到| 欧美一区二区久久| 久久久午夜精品理论片中文字幕| 成人免费在线观看入口| 亚洲一区二区三区三| 激情五月婷婷综合网| 99视频一区二区| 91精品国产色综合久久不卡电影| 精品精品欲导航| 亚洲六月丁香色婷婷综合久久| 日本欧美韩国一区三区| 国产91对白在线观看九色| 色网综合在线观看| 欧美第一区第二区| 最好看的中文字幕久久| 天天综合日日夜夜精品| 岛国一区二区在线观看| 欧美男人的天堂一二区| 国产精品乱码一区二三区小蝌蚪| 亚洲一区二区三区四区在线免费观看 | 色狠狠桃花综合| 欧美成人一级视频| 亚洲精品日日夜夜| 国模无码大尺度一区二区三区| 高清国产午夜精品久久久久久| 欧美日韩免费一区二区三区视频| 久久精品夜色噜噜亚洲a∨| 亚洲高清一区二区三区| 免费成人av在线播放| 一本到高清视频免费精品| 久久久蜜桃精品| 免费欧美高清视频| 91色婷婷久久久久合中文| xf在线a精品一区二区视频网站| 一区二区三区丝袜| 成人免费不卡视频| 欧美中文字幕一二三区视频| 久久久久久毛片| 水蜜桃久久夜色精品一区的特点| 国产乱子轮精品视频| 欧美色图12p| 久久成人麻豆午夜电影| 国产精品日日摸夜夜摸av| 日韩av网站在线观看| 91一区二区三区在线播放|