JAVA /Swing
Toolbar
Safeguard
2013. 2. 27. 00:41
1. 툴바 생성
private JToolBar jtb = new JToolBar(); // 툴바
private JButton bt = new JButton(new ImageIcon("abc.jpg")); //툴바 메뉴 1
private JButton bt1 = new JButton(new ImageIcon("abc.jpg")); //툴바 메뉴 2
2. 툴바 메소드
jtb.setRollover(true); // 마우스 롤오버
jtb.addSeparator(new Dimension(1,1)); // 툴바 구분선