Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 | 31 |
Tags
- 웹 서비스
- 이클립스
- decompiler
- Apache Lucene
- jsp
- MANTIS
- Redirect
- Eclipse
- SpringSource Tool Suite
- MSsql
- 자바
- varags
- 자바스크립트
- Web Service
- STS
- Java
- TextBox
- C#
- WebView
- Bootstrap
- scrollView
- html
- MS-SQL
- Android
- 컬럼명
- asp.net
- 안드로이드
- Maven
- 웹뷰
- javascript
Archives
- Today
- Total
bboks.net™
Java File to Byte 본문
import javax.swing.*;
import java.awt.GridLayout;
import java.awt.event.*;
public class CompValidateExample extends JFrame implements ActionListener
{
JButton b = null;
JLabel l = null;
public CompValidateExample() {
this.setLayout(new GridLayout(1,3));
b = new JButton("Show Label");
b.addActionListener(this);
this.add(b);
this.setDefaultCloseOperation(EXIT_ON_CLOSE);
this.setSize(300, 100);
this.setVisible(true);
}
public void actionPerformed(ActionEvent evt) {
if(evt.getSource().equals(b)) {
l = new JLabel("It's Label");
this.add(l);
this.validate();
}
}
public static void main(String[] args) {
new CompValidateExample();
}
}