본문 바로가기
반응형

Program Language/JAVA9

SWT Snippets : Path.. (Updating..) Path, Pattern create a path from some text create a circular shell from a path fill a shape with a predefined pattern Printing print "Hello World!" in black, outlined in red, to default printer print text to printer, with word wrap and pagination print a control to the printer print in landscape mode Program find the icon of the program that edits .bmp files invoke an external batch file invoke .. 2011. 7. 15.
SWT Snippets : TabFolder.. (Updating..) TabFolder, TabItem create a tab folder (six pages) Table, TableItem, TableColumn add 1000 sorted entries to a virtual table every 500 ms color cells and rows in table create a table (no columns, no headers) create a table (columns, headers, lines) create a table with column header images create a table with 1,000,000 items (lazy) create a table with 1,000,000 items (lazy, page size 64) create a .. 2011. 7. 15.
LWJGL Eclipse에서 설정법 http://sourceforge.net/projects/java-game-lib/files/Official%20Releases/ 여기서 최신 버전에 들어간다. 세개 다운 lwjgl-2.7.1.zip에서는 jar폴더와 native폴더만 가져오고 나머지두개는 알아서 풀기 Window -> Preferences -> Java -> Build Path -> User Libraries -> New 아래 그림처럼 1. lwjgl.jar파일 할당 2. javadoc 폴더 할당 3. source 폴더 할당 4. native library폴더 할당 (운영체제에 맞게) 필요하면 lwjgl_util.jar 등도 똑같이 설정해준다. -swt.snippets에 적용 예 프로젝트 우클릭 Preferences 프로젝트에 User.. 2011. 7. 15.
java remote debugging (자바 원격 디버깅) 자바프로그램을 디버깅할때 코딩하는 기기와 프로그램을 실행시키는 기기가 다를때가 있다. (서버작업등..) 이때 jdb나 이것저것들을 써봤는데 잘 안되더라... 이클립스를 이용해서 원격 디버깅이 가능하다. 1. 자바실행 옵션 설정 디버깅을 사용가능하게 옵션을 설정해준다. -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y addrress : 8000 리모트 연결에 사용할 포트 suspend : 디버깅 연결이 연결될때 가지 기다릴지 설정 ex) java -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y" HelloWorld 2... 2011. 6. 24.