일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 |
- Java
- jsp
- 이클립스
- Bootstrap
- Redirect
- html
- TextBox
- WebView
- MS-SQL
- 웹뷰
- varags
- 안드로이드
- 컬럼명
- C#
- Apache Lucene
- Android
- asp.net
- Maven
- decompiler
- 자바스크립트
- MSsql
- javascript
- MANTIS
- 웹 서비스
- scrollView
- STS
- Eclipse
- SpringSource Tool Suite
- 자바
- Web Service
- Today
- Total
목록Java/Java (36)
bboks.net™
썬에서 제공하는 자바 1.6 기반의 튜토리얼 제공 http://java.sun.com/docs/books/tutorial/
import java.applet.Applet; import java.awt.Color; import java.awt.Graphics; import java.awt.Image; public class TestDoubleBuffer extends Applet implements Runnable { int x, y; boolean posX, posY; Image offImg; Graphics gc; Thread thr; public void init() { this.x = 0; this.y = 0; this.posX = true; this.posY = true; } public void start() { offImg = this.createImage(this.getWidth(), this.getHeight(..
import java.awt.*; import java.applet.*; import java.net.*; public class TestOnLine extends Applet { Image imgA; public void init() { try { imgA = getImage(new URL("http://wstatic.naver.com/t/2007/0605/20070605151845.gif")); } catch (MalformedURLException me) { } } public void paint(Graphics g) { g.drawImage(imgA, 0, 0, this); } } 결과화면
SWING component는 색깔을 메소드를 이용해서 바꿀 수도 있고 HTML을 이용하는 방법도 있습니다. 패널은 이렇게 배경색을 조절 하잖아요. Panel.setBackground (Color.black); label = new JLabel("A label"); label.setFont(new Font("Serif", Font.PLAIN, 14)); label.setForeground(new Color(0xffffdd)); 이런식으로 메소드를 이용하거나 JButton button = new JButton("Two lines"); 이런식으로 HTML코드로도 폰트 제어가 가능하거든요.