Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- LastModified
- i18n
- 브로틀리
- 알게뭐냐
- jsr380
- 지수반등
- 클래스레벨밸리데이션
- kotliln
- cache-control
- etag
- 지뢰찾기
- 스프링
- 리얼월드HTTP
- Spring
- 개미수열
- jsr303
- 랜선아미안해
- 워드프레스
- Kotlin
- brotli
- 이렇게살아야되나자괴감이
- 코드스피츠
- HTTP
- cross parameter
- 알고리즘
Archives
- Today
- Total
취미개발 블로그와 마음수양
마우스 움직임 인식 예제 본문
책 power자바 문제 풀이입니다.
음..신기방기 ㅎㅎ
package 챕16이벤트; import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Quest05 extends JFrame { JLabel label; Quest05(){ setSize(700, 300); setTitle("My Frame"); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); JPanel panel = new JPanel(); label =new JLabel("Don't cry before you are hurt"); label.setFont(new Font("Serif", Font.BOLD|Font.ITALIC,50)); label.addMouseListener(new MouseListener(){ public void mouseClicked(MouseEvent arg0){} public void mouseEntered(MouseEvent arg0){ label.setText("다치기도 전에 울지말라."); } @Override public void mouseExited(MouseEvent e) { label.setText("당신 나갔구만?"); } @Override public void mousePressed(MouseEvent e) { } @Override public void mouseReleased(MouseEvent e) { } }); panel.add(label); add(label); setVisible(true); } public static void main(String[] args) { new Quest05(); } }
'Language > java소스' 카테고리의 다른 글
중복되지 않은 난수 6개(로또) 생성하는.. 소스 (0) | 2014.04.16 |
---|---|
학원에서 했던 첫번째 시험~g (0) | 2014.04.16 |
마우스나 키보드로 네모박스 움직이기.. (0) | 2014.04.15 |
자바 슬롯머신 ( 글씨 대신 이미지로 숫자 변환) (0) | 2014.04.14 |
자바 슬롯머신 (0) | 2014.04.14 |