달력

32024  이전 다음

  • 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

컴포넌트

생성자

주요 메소드

Label

Label()
Label(String str)
Label(String str, int alignment)

setText(String str)
getText()

Button

Button(String str)

setLabel(String str)
getlabel()
setActionCommand(String str)
addActionListener(ActionListener)

Checkbox

Checkbox()
Checkbox(String str)
Checkbox(String str, boolean onoff)
Checkbox(String str, CheckboxGroup group, boolean onoff)

setLabel(String str)
getLabel()
setState(boolean onoff)
getState()
addItemListener(ItemListener) 

Choice

Choice()

add(String str)
getItemCount()
getItem(int index)
remove(int index)
getSelectedItem()
insert(String str, int index)addItemListener(ItemListener)  

List

List()List(int rows)
List(int rows, boolean multipleModeOnOff)

add(String item)
remove(int index)
select(int index)
deselect(int index)addActionListenerActionListener) addItemListener(ItemListener)  

TextArea

TextArea()
TextArea(String str)
TextArea(int rows, int cols)TextArea(String str, int rows, int cols) 

append(String str)
setText(String str)
getText()
insert(String str, int index)getSelectionStart()
getSelectionEnd()
getSelectedText()
replaceRange(String str, int start, int end)
addTextListener(TextListner)  

TextField

TextField()
TextField(int cols)
TextField(String str)
TextField(String str, int cols)

setText(String str)
getText()addActionListener(ActionListener)

Scrollbar

Scrollbar(Scrollbar.VERTICAL)Scrollbar(Scrollbar.HORIZONTAL) 

 

Canvas

Canvas()

setSize(int x, int y)
setBackground(Color color)

Panel

Panel()
Panel(LayoutManager layout)

setSize(int x, int y)
setBackground(Color color)setLocation(int x, int y)
setLayout(LayoutManager layout)

ScrollPane

ScrollPane()
ScrollPane(int scrollbarDisplayPolicy)

setSize(int x, int y)

PopupMenu

PopMenu()
PopMenu(String label)

add(MenuItem(String str))
hide()
show(Component, int x, int y)
setVisile(boolean)  


**http://blog.naver.com/nban38/30032530278
Posted by sukay
|