자바 질문드립니다. JScrollPane
글쓴이: sork1004 / 작성시간: 화, 2009/12/01 - 5:13오후
public void actionPerformed(ActionEvent e){ if(e.getSource() == ch_bt) { try { soc = new Socket(ia, 12345); out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(soc.getOutputStream()))); in = new BufferedReader(new InputStreamReader(System.in)); } catch(Exception ee){} String st1 = nick.getText().trim(); String str = ch.getText().trim(); vector.add(st1 + ":" + str+ "\n"); list.updateUI(); out.println(st1 + ":" + str + "\n"); out.flush(); out.close(); // jsp.getVerticalScrollBar().setValue(jsp.getVerticalScrollBar().getMaximum()); //스크롤 자동으로 내리기 }
현재 위와 같은 방법으로 스크롤을 가장 아래로 내려가게 해봤는데요.
내려가긴 하는데 완전히 끝까지 내려가지 못하네요.
혹시 소스상의 문제가 있는지 고수님들의 조언구합니다.
Forums:
댓글 달기