본문 바로가기

분류 전체보기182

Class Jpanel, Method paintComponent paintComponentprotected void paintComponent(Graphics g) Calls the UI delegate's paint method, if the UI delegate is non-null. We pass the delegate a copy of the Graphics object to protect the rest of the paint code from irrevocable changes (for example, Graphics.translate). If you override this in a subclass you should not make permanent changes to the passed in Graphics. For example, you should.. 2008. 11. 25.
[event]Interface MouseListener java.awt.event Interface MouseListener public interface MouseListener extends EventListener //EventListener를 확장한 The listener interface for receiving "interesting" mouse events (press, release, click, enter, and exit) on a component. (To track mouse moves and mouse drags, use the MouseMotionListener.) The class that is interested in processing a mouse event either implements this interface (and .. 2008. 11. 25.
[Java] 스레드 -cpu 하나당 스레드 하나만 실행가능 -동기화 : 하나의 스레드만 접근 가능? thread_A.start(); thread_B.start(); -> CPU는 한번에 하나만 실행가능하기 떄문에 보이기에는 동시에 실행되는 것처럼 보이지만 사실은 번갈아가면서 실행. run() : 스레드 내부의 메인 함수와 비슷, 스레드를 START하면 시작된다. 오버라이드필수!! 2008. 11. 21.
[Unix실습] 11월 20일 17. Exercise 1 4 Find out what files are in /bin, without changing your current directory. You should recognise the names of some of the programs stored there. $ls /bin 19. Exercise 3 1 Copy the file /etc/passwd to your home directory, and then use cat to see what’s in it. $cp /etc/passwd . 3 Make a directory called programs and copy everything from /bin into it. $mkdir programs $cp /bin/* progr.. 2008. 11. 20.