WebStudy/JAVA SWING 썸네일형 리스트형 ActionListener 에서 component의 name 가져오기 @Override public void actionPerformed(ActionEvent e) { JComponent jc = (JComponent) e.getSource(); System.out.println(jc.getName()); } 더보기 창이 생성되면 바로 JTextField에 focus (포커스) 주기 If you want your JTextField to be focused when your GUI shows up, you can use this:in = new JTextField(40); f.addWindowListener( new WindowAdapter() { public void windowOpened( WindowEvent e ){ in.requestFocus(); } }); Where f would be your JFrame and in is your JTextField. 출처 : 스택오버플로우 더보기 Window Builder (윈도우빌더) 활용 - 1 먽 이클립스에서 윈도우 빌더를 설치 해야 합니다. 1. http://www.eclipse.org/windowbuilder/download.php 접속 한 후 자신의 eclipse의 버전에 맞는 link (Relese 항목 아래) 를 클릭합니다. 저는 luna 를 사용하기때문에 luna의 오른쪽에 있는 link를 클릭 했습니다. 2. 주소 창의 url 복사. http://download.eclipse.org/windowbuilder/WB/release/R201406251200/4.4/ 를 복사 합니다. (ctrl + c) 3. eclipse 실행. menu 에서 help -> Install New SoftWare 를 선택 4. Work with 에 붙여 넣기 합니다. (ctrl + v) 그리고 엔터를 탁 .. 더보기 이전 1 다음