본문 바로가기

분류 전체보기182

[API] JLabel public class JLabel extends JComponent implements SwingConstants, Accessible A display area for a short text string or an image, or both. A label does not react to input events. As a result, it cannot get the keyboard focus. A label can, however, display a keyboard alternative as a convenience for a nearby component that has a keyboard alternative but can't display it. //단문 문자열 또는 이미지를 위한 출력창이다... 2008. 10. 24.
[10_24] 소스 추가 설명-swing JFrame frame = new JFrame("HelloWorldSwing"); //window Creation (not visible) JLabel label1 = new JLabel("Hello!"); //Text Label Creation (not VIsible) frame.setLayout(new FLowLayout()); //must included - why? frame.getContentPane().add(label1); //Add Label to Frame frame.pack(); frame.setVisible(true); //set visible... 2008. 10. 24.
[시스템프로그래밍]Byte Ordering 엔디안은 메모리에 저장되는 바이트 순서와 관련이 있다. 예를 들어 0x12345678라는 데이터를 저장한다고 한다면 빅-엔디안에서는 아래와 같이 메모리의 낮은 주소번지에서부터 높은 주소번지로 저장이 된다. 낮은번지 ----------------> 높은번지 0x12 0x34 0x56 0x78 하지만 리틀-엔디안에서는 빅-엔디안과 반대로 저장을 하게된다. 낮은번지 ----------------> 높은번지 0x78 0x56 0x34 0x12 보통 빅-엔디안은 매킨토시에 사용되는 모토롤라 CPU, 리눅스, JVM이 이 방법을 채택하고 있으면 리틀-엔디안은 우리가 보통 사용하고 있는 Intel계열의 CPU가 이 방법을 사용하고 있다. 빅-엔디안은 사람이 보기에 매우 직관적이다. 하지만 리틀-엔디안도 매우 강력한 .. 2008. 10. 20.
10_15 -DB 연결 과정 -Nonvisual object에서 Instantiating 1.transaction object(standar class ->파워빌더에서 이미 정의되어 있는 claa) : sqlca를 사용한다면 사용할 필요가 없지만 우리는 사용해야 한다. ex) n_tr_orderentry 이 인스턴스를 어디서 어떻게 만들었는가? 2.custom class(novisual) : 프로그래머가 정의하는 커스텀 클래스에 대한 인스턴스를 만드는 방법은? ex)n_cst_login -window : 화면에 빨리 display하기 위한 조치는 어디서 어떻게 하는가? ->이 화면안에 command button 역시 마찬가지로 상속을 하여 윈도우에 배치했다. 이 command button을 가지고 있는 parent.. 2008. 10. 15.