|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
| 개요 : 상자 | 필드 | 생성자 | 메소드 | 상세 : 필드 | 생성자 | 메소드 | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.AbstractButton
javax.swing.JMenuItem
javax.swing.JMenu
public class JMenu
메뉴의 구현이며, 사용자가 JMenuBar 로 항목을 선택한다고 표시되는 JMenuItem 를 보관 유지하는 pop-up 윈도우입니다. JMenuItem 외에,JMenu 에는 JSeparator 도 포함할 수가 있습니다.
메뉴라고 하는 것은 실질적으로는 JPopupMenu 를 할당할 수 있었던 버튼입니다. 「버튼」이 밀리면(자) JPopupMenu 가 표시됩니다. 「버튼」이 JMenuBar 상에 있으면, 그 메뉴는 톱 레벨 윈도우입니다. 「버튼」이 다른 메뉴 항목이면 JPopupMenu 는 「프르라이트」메뉴입니다.
메뉴는 구성 가능해,Action 를 사용해 어느 정도까지 제어할 수 있습니다. 메뉴에 대해서 Action 를 사용하면(자), 직접 메뉴를 구성하는 경우보다 많은 이점이 있습니다. 자세한 것은,「Action 를 지원하는 Swing 컴퍼넌트」를 참조해 주세요. 또, 「The Java Tutorial」의「How to Use Actions」도 참조해 주세요.
메뉴의 사용 방법의 상세와 예에 대해서는, 「The Java Tutorial」의「How to Use Menus」를 참조해 주세요.
경고: Swing 는 thread에 대해서 안전하지는 않습니다. 자세한 것은,「Swing's Threading Policy」를 참조해 주세요.
경고: 이 클래스의 직렬화 된 객체는, 향후의 Swing 릴리스와 호환은 아니게 될 예정입니다. 현재의 직렬화의 지원는, 단기간의 운용이나, 같은 버젼의 Swing 를 실행하는 어플리케이션간의 RMI 에 적절하고 있습니다. JDK Version 1.4 이후, 모든 JavaBeans™ 의 장기간의 운용 지원는,java.beans 패키지에 추가되고 있습니다. 자세한 것은,XMLEncoder 를 참조해 주세요.
JMenuItem ,
JSeparator ,
JMenuBar ,
JPopupMenu | 상자의 클래스의 개요 | |
|---|---|
protected class |
JMenu.AccessibleJMenu
이 클래스는 JMenu 클래스용의 접근성? 지원를 구현하고 있습니다. |
protected class |
JMenu.WinListener
pop-up 윈도우가 닫혀지는 것을 감시하는 청취자 클래스입니다. |
| 클래스 javax.swing. JMenuItem 로부터 상속된 상자의 클래스/인터페이스 |
|---|
JMenuItem.AccessibleJMenuItem |
| 클래스 javax.swing. AbstractButton 로부터 상속된 상자의 클래스/인터페이스 |
|---|
AbstractButton.AccessibleAbstractButton , AbstractButton.ButtonChangeListener |
| 클래스 javax.swing. JComponent 로부터 상속된 상자의 클래스/인터페이스 |
|---|
JComponent.AccessibleJComponent |
| 클래스 java.awt. Container 로부터 상속된 상자의 클래스/인터페이스 |
|---|
Container.AccessibleAWTContainer |
| 클래스 java.awt. Component 로부터 상속된 상자의 클래스/인터페이스 |
|---|
Component.AccessibleAWTComponent , Component.BaselineResizeBehavior , Component.BltBufferStrategy , Component.FlipBufferStrategy |
| 필드의 개요 | |
|---|---|
protected JMenu.WinListener |
popupListener
pop-up용의, 윈도우를 닫기 위한 청취자입니다. |
| 클래스 javax.swing. JComponent 로부터 상속된 필드 |
|---|
accessibleContext , listenerList , TOOL_TIP_TEXT_KEY , ui , UNDEFINED_CONDITION , WHEN_ANCESTOR_OF_FOCUSED_COMPONENT , WHEN_FOCUSED , WHEN_IN_FOCUSED_WINDOW |
| 클래스 java.awt. Component 로부터 상속된 필드 |
|---|
BOTTOM_ALIGNMENT , CENTER_ALIGNMENT , LEFT_ALIGNMENT , RIGHT_ALIGNMENT , TOP_ALIGNMENT |
| 인터페이스 javax.swing. SwingConstants 로부터 상속된 필드 |
|---|
BOTTOM , CENTER , EAST , HORIZONTAL , LEADING , LEFT , NEXT , NORTH , NORTH_EAST , NORTH_WEST , PREVIOUS , RIGHT , SOUTH , SOUTH_EAST , SOUTH_WEST , TOP , TRAILING , VERTICAL , WEST |
| 인터페이스 java.awt.image. ImageObserver 로부터 상속된 필드 |
|---|
ABORT , ALLBITS , ERROR , FRAMEBITS , HEIGHT , PROPERTIES , SOMEBITS , WIDTH |
| 생성자 의 개요 | |
|---|---|
JMenu ()
텍스트가 없는 새로운 JMenu 를 작성합니다. |
|
JMenu (Action a)
지정된 Action 로부터 프로퍼티을 취득하는 메뉴를 작성합니다. |
|
JMenu (String s)
지정된 캐릭터 라인을 텍스트로서 가지는 새로운 JMenu 를 작성합니다. |
|
JMenu (String s,
boolean b)
지정된 캐릭터 라인을 텍스트로서 가져, 티아오후메뉴인가 어떤가를 지정된, 새로운 JMenu 를 작성합니다. |
|
| 메소드의 개요 | |
|---|---|
JMenuItem |
add (Action a)
지정된 Action 객체에 속하는 새로운 메뉴 항목을 작성해, 그것을 이 메뉴의 말미에 추가합니다. |
Component |
add (Component c)
이 메뉴의 마지막에 컴퍼넌트를 추가합니다. |
Component |
add (Component c,
int index)
지정된 컴퍼넌트를, 이 컨테이너의 지정된 위치에 추가합니다. |
JMenuItem |
add (JMenuItem menuItem)
이 메뉴의 마지막에 메뉴 항목을 추가합니다. |
JMenuItem |
add (String s)
지정된 텍스트를 가지는 새로운 메뉴 항목을 작성해, 이 메뉴의 말미에 추가합니다. |
void |
addMenuListener (MenuListener l)
메뉴 이벤트의 청취자를 추가합니다. |
void |
addSeparator ()
메뉴의 마지막에 새로운 separator를 추가합니다. |
void |
applyComponentOrientation (ComponentOrientation o)
이 메뉴 및 이 메뉴에 포함되는 모든 컴퍼넌트의 ComponentOrientation 프로퍼티을 설정합니다. |
protected PropertyChangeListener |
createActionChangeListener (JMenuItem b)
Action 에 대한 변경이 발생했을 경우에 컨트롤을 갱신한다, 적절히 설정된 PropertyChangeListener 를 돌려줍니다. |
protected JMenuItem |
createActionComponent (Action a)
JMenu 에 추가되는 Action 의 JMenuItem 를 작성하는 팩토리 메소드입니다. |
protected JMenu.WinListener |
createWinListener (JPopupMenu p)
pop-up의 윈도우를 닫는 청취자를 작성합니다. |
void |
doClick (int pressTime)
「클릭」을 프로그램상에서 실행합니다. |
protected void |
fireMenuCanceled ()
통지의 전달 대상을, 지정된 이벤트형으로 등록한 모든 청취자에게 통지합니다. |
protected void |
fireMenuDeselected ()
통지의 전달 대상을, 지정된 이벤트형으로 등록한 모든 청취자에게 통지합니다. |
protected void |
fireMenuSelected ()
통지의 전달 대상을, 지정된 이벤트형으로 등록한 모든 청취자에게 통지합니다. |
AccessibleContext |
getAccessibleContext ()
이 JMenu 에 관련한 AccessibleContext 를 돌려줍니다. |
Component |
getComponent ()
이 MenuElement 를 페인트 하는데 사용되는 java.awt.Component 를 돌려줍니다. |
int |
getDelay ()
부메뉴를 표시 또는 비표시로 할 때까지의, 추천 되는 지연 시간을 밀리 세컨드 단위로 돌려줍니다. |
JMenuItem |
getItem (int pos)
지정된 위치의 JMenuItem 를 돌려줍니다. |
int |
getItemCount ()
separator를 포함한 메뉴 항목수를 돌려줍니다. |
Component |
getMenuComponent (int n)
n 의 위치에 있는 컴퍼넌트를 돌려줍니다. |
int |
getMenuComponentCount ()
메뉴의 컴퍼넌트수를 돌려줍니다. |
Component [] |
getMenuComponents ()
메뉴의 서브 컴퍼넌트의 Component 의 배열을 돌려줍니다. |
MenuListener [] |
getMenuListeners ()
이 JMenu 에 addMenuListener()로 추가된 모든 MenuListener 의 배열을 돌려줍니다. |
JPopupMenu |
getPopupMenu ()
이 메뉴에 관련한 pop-up menu를 돌려줍니다. |
protected Point |
getPopupMenuOrigin ()
JMenu 의 pop-up menu의 원점을 계산합니다. |
MenuElement [] |
getSubElements ()
이 메뉴 컴퍼넌트의 부메뉴를 포함하는 MenuElement 의 배열을 돌려줍니다. |
String |
getUIClassID ()
이 컴퍼넌트를 draw 하는 L&F 클래스의 이름을 돌려줍니다. |
JMenuItem |
insert (Action a,
int pos)
지정된 Action 객체에 속하는 새로운 메뉴 항목을, 지정된 위치에 삽입합니다. |
JMenuItem |
insert (JMenuItem mi,
int pos)
지정된 JMenuItem 가 지정된 위치에 삽입합니다. |
void |
insert (String s,
int pos)
지정된 텍스트를 가지는 새로운 메뉴 항목을, 지정된 위치에 삽입합니다. |
void |
insertSeparator (int index)
지정된 위치에 separator를 삽입합니다. |
boolean |
isMenuComponent (Component c)
지정된 컴퍼넌트가 부메뉴 계층내에 있는 경우에 true 를 돌려줍니다. |
boolean |
isPopupMenuVisible ()
메뉴의 pop-up 윈도우가 가시의 경우에 true 를 돌려줍니다. |
boolean |
isSelected ()
메뉴가 현재 선택되고 있는 (강조 표시되고 있다) 경우에 true 를 돌려줍니다. |
boolean |
isTearOff ()
메뉴가 티아오후 가능한 경우에 true 를 돌려줍니다. |
boolean |
isTopLevelMenu ()
메뉴가 「톱 레벨 메뉴」의 경우에 true 를 돌려줍니다. |
void |
menuSelectionChanged (boolean isIncluded)
이 메뉴를 액티브하게 하는지, 액티브하지 않게 하기 위해서 도구모음의 선택이 변경되었을 때에, 메세지를 보냅니다. |
protected String |
paramString ()
이 JMenu 의 캐릭터 라인 표현을 돌려줍니다. |
protected void |
processKeyEvent (KeyEvent evt)
니마닉(mnemonic)나 가속기등의, 키스트로크(keystroke) 이벤트를 처리합니다. |
void |
remove (Component c)
이 메뉴로부터 컴퍼넌트 c 를 삭제합니다. |
void |
remove (int pos)
이 메뉴로부터, 지정된 인덱스에 있는 메뉴 항목을 삭제합니다. |
void |
remove (JMenuItem item)
이 메뉴로부터 지정된 메뉴 항목을 삭제합니다. |
void |
removeAll ()
이 메뉴로부터 메뉴 항목을 모두 삭제합니다. |
void |
removeMenuListener (MenuListener l)
메뉴 이벤트의 청취자를 삭제합니다. |
void |
setAccelerator (KeyStroke keyStroke)
setAccelerator 는 JMenu 에는 정의되고 있지 않습니다. |
void |
setComponentOrientation (ComponentOrientation o)
이 컴퍼넌트내의 요소 또는 텍스트를 정렬하기 위해서 사용한다, 언어에 의존할 방향을 설정합니다. |
void |
setDelay (int d)
메뉴의 PopupMenu 를 표시 또는 비표시로 할 때까지의, 추천 되는 지연 시간을 밀리 세컨드 단위로 돌려줍니다. |
void |
setMenuLocation (int x,
int y)
pop-up 컴퍼넌트의 위치를 설정합니다. |
void |
setModel (ButtonModel newModel)
「메뉴 버튼」의 데이터 모델을 설정합니다. |
void |
setPopupMenuVisible (boolean b)
메뉴의 pop-up의 가시성을 설정합니다. |
void |
setSelected (boolean b)
메뉴의 선택 상태를 설정합니다. |
void |
updateUI ()
현재의 Look & Feel 로부터의 값을 가지는 UI 프로퍼티을 리셋 합니다. |
| 클래스 java.lang. Object 로부터 상속된 메소드 |
|---|
clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait |
| 인터페이스 javax.swing. MenuElement 로부터 상속된 메소드 |
|---|
processKeyEvent , processMouseEvent |
| 필드의 상세 |
|---|
protected JMenu.WinListener popupListener
JMenu.WinListener | 생성자 의 상세 |
|---|
public JMenu()
JMenu 를 작성합니다.
public JMenu(String s)
JMenu 를 작성합니다.
s - 메뉴 라벨의 텍스트public JMenu(Action a)
Action 로부터 프로퍼티을 취득하는 메뉴를 작성합니다.
a - Action
public JMenu(String s,
boolean b)
JMenu 를 작성합니다.
s - 메뉴 라벨의 텍스트b - 메뉴를 티아오후 할 수 있을지 어떨지 ( 아직 구현되어 있지 않다)| 메소드의 상세 |
|---|
public void updateUI()
JMenuItem 내의 updateUI JComponent.updateUI() public String getUIClassID()
JMenuItem 내의 getUIClassID JComponent.getUIClassID() ,
UIDefaults.getUI(javax.swing.JComponent) public void setModel(ButtonModel newModel)
JMenuItem 내의 setModel newModel - ButtonModelAbstractButton.getModel() public boolean isSelected()
AbstractButton 내의 isSelected public void setSelected(boolean b)
AbstractButton 내의 setSelected b - 메뉴를 선택하는 (강조 표시한다) 경우는 true, 메뉴를 선택 해제하는 경우는 falsepublic boolean isPopupMenuVisible()
public void setPopupMenuVisible(boolean b)
b - boolean 치. 메뉴를 가시로 하는 경우는 true,
숨기는 경우는 falseprotected Point getPopupMenuOrigin()
JMenu 의 pop-up menu의 원점을 계산합니다. 이 메소드는, pop-up의 정확한 위치를 조정하기 위해(때문에),Menu.menuPopupOffsetX,Menu.menuPopupOffsetY,Menu.submenuPopupOffsetX, 및 Menu.submenuPopupOffsetY 라는 이름의 Look & Feel 프로퍼티을 사용합니다.
JMenu 의 pop-up menu의 원점으로서 사용하는, 메뉴의 좌표 공간에 있는 Pointpublic int getDelay()
delay 프로퍼티을 감시하기 위한 독자적인 정책를 결정할 수 있습니다. 대부분의 경우, 톱 레벨 메뉴의 지연, 혹은 드래그중의 지연은 감시되지 않습니다. delay 의 디폴트는 0 입니다. 이 메소드는 Look & Feel 코드의 프로퍼티이며, 다양한 UI 구현의 특징의 관리에 사용됩니다.
delay 프로퍼티public void setDelay(int d)
PopupMenu 를 표시 또는 비표시로 할 때까지의, 추천 되는 지연 시간을 밀리 세컨드 단위로 돌려줍니다. 각 Look & Feel (L&F)는, 지연 프로퍼티을 감시하기 위한 독자적인 정책를 결정할 수 있습니다. 대부분의 경우, 톱 레벨 메뉴의 지연, 혹은 드래그중의 지연은 감시되지 않습니다. 이 메소드는 Look & Feel 코드의 프로퍼티이며, 다양한 UI 구현의 특징을 관리하는데 사용됩니다.
d - 지연 시간 (밀리 세컨드 단위)
IllegalArgumentException - d 가
0 보다 작은 경우
public void setMenuLocation(int x,
int y)
x - pop-up menu의 새로운 위치의 x 좌표y - pop-up menu의 새로운 위치의 y 좌표public JMenuItem add(JMenuItem menuItem)
menuItem - 추가하는 JMenuItem
JMenuItempublic Component add(Component c)
Container 내의 add c - 추가하는 Component
ComponentContainer.addImpl(java.awt.Component, java.lang.Object, int) ,
Container.validate() ,
JComponent.revalidate()
public Component add(Component c,
int index)
index 가 -1 의 경우, 컴퍼넌트는 말미에 추가됩니다.
Container 내의 add c - 추가하는 Componentindex - 컴퍼넌트를 삽입하는 위치
Componentremove(javax.swing.JMenuItem) ,
Container.add(Component, int) public JMenuItem add(String s)
s - 추가되는 메뉴 항목의 캐릭터 라인public JMenuItem add(Action a)
Action 객체에 속하는 새로운 메뉴 항목을 작성해, 그것을 이 메뉴의 말미에 추가합니다.
a - 추가되는 메뉴 항목의 ActionAction protected JMenuItem createActionComponent(Action a)
JMenu 에 추가되는 Action 의 JMenuItem 를 작성하는 팩토리 메소드입니다.
a - 추가되는 메뉴 항목의 Action
Action protected PropertyChangeListener createActionChangeListener(JMenuItem b)
Action 에 대한 변경이 발생했을 경우에 컨트롤을 갱신한다, 적절히 설정된 PropertyChangeListener 를 돌려줍니다.
public void addSeparator()
public void insert(String s,
int pos)
s - 추가하는 메뉴 항목의 텍스트pos - 새로운 메뉴 항목을 추가하는 위치를 지정하는 정수
IllegalArgumentException - pos 의 값이 0 보다 작은 경우
public JMenuItem insert(JMenuItem mi,
int pos)
JMenuItem 가 지정된 위치에 삽입합니다.
mi - 추가하는 JMenuItempos - 새로운 JMenuItem 를 추가하는 위치를 지정하는 정수
IllegalArgumentException - pos 의 값이
0 보다 작은 경우
public JMenuItem insert(Action a,
int pos)
Action 객체에 속하는 새로운 메뉴 항목을, 지정된 위치에 삽입합니다.
a - 추가하는 메뉴 항목의 Action 객체pos - 새로운 메뉴 항목을 추가하는 위치를 지정하는 정수
IllegalArgumentException - pos 의 값이
0 보다 작은 경우public void insertSeparator(int index)
index - 메뉴 separator를 삽입하는 위치를
지정하는 정수치
IllegalArgumentException - index 의 값이
0 보다 작은 경우public JMenuItem getItem(int pos)
JMenuItem 를 돌려줍니다. pos 의 컴퍼넌트가 메뉴 항목이 아닌 경우는,null 가 돌려주어집니다. 이 메소드는 AWT 의 호환성을 위해서(때문에) 준비되어 있습니다.
pos - 위치를 지정하는 정수
null
IllegalArgumentException - pos 의 값이
0 보다 작은 경우public int getItemCount()
getMenuComponentCount() public boolean isTearOff()
Error - 불려 갔을 경우. 이 메소드는 아직 구현되어 있지 않다public void remove(JMenuItem item)
item - 메뉴로부터 삭제하는 JMenuItempublic void remove(int pos)
Container 내의 remove pos - 삭제되는 항목의 위치
IllegalArgumentException - pos 의 값이 0 보다 작은지,pos 가 메뉴 항목의 수보다 큰 경우Container.add(java.awt.Component) ,
Container.validate() ,
Container.getComponentCount() public void remove(Component c)
c 를 삭제합니다.
Container 내의 remove c - 삭제되는 컴퍼넌트Container.add(java.awt.Component) ,
Container.validate() ,
Container.remove(int) public void removeAll()
Container 내의 removeAll Container.add(java.awt.Component) ,
Container.remove(int) public int getMenuComponentCount()
public Component getMenuComponent(int n)
n 의 위치에 있는 컴퍼넌트를 돌려줍니다.
n - 반환되는 컴퍼넌트의 위치
nullpublic Component [] getMenuComponents()
Component 의 배열을 돌려줍니다. separator를 포함해 pop-up menu에 있는 모든 Component 를 돌려줍니다.
Component 의 배열.
pop-up menu가 없는 경우는 빈 상태(empty)의 배열public boolean isTopLevelMenu()
public boolean isMenuComponent(Component c)
c - 판정 대상의 Component
Component 가 존재하는 경우는 true, 그렇지 않은 경우는 falsepublic JPopupMenu getPopupMenu()
public void addMenuListener(MenuListener l)
l - 추가되는 청취자public void removeMenuListener(MenuListener l)
l - 삭제되는 청취자public MenuListener [] getMenuListeners()
MenuListener 의 배열을 돌려줍니다.
MenuListener, 청취자가 추가되어 있지 않은 경우는
빈 상태(empty)의 배열protected void fireMenuSelected()
Error - null 청취자가 존재하는 경우EventListenerList protected void fireMenuDeselected()
Error - null 청취자가 존재하는 경우EventListenerList protected void fireMenuCanceled()
Error - null 청취자가 존재하는 경우EventListenerList protected JMenu.WinListener createWinListener(JPopupMenu p)
p - JPopupMenu
JMenu.WinListener public void menuSelectionChanged(boolean isIncluded)
JMenuItem.menuSelectionChanged 를 오버라이드(override) 합니다.
MenuElement 내의 menuSelectionChanged JMenuItem 내의 menuSelectionChanged isIncluded - 이 메뉴가 액티브한 경우는 true,
그렇지 않은 경우는 falseMenuSelectionManager.setSelectedPath(MenuElement[]) public MenuElement [] getSubElements()
MenuElement 의 배열을 돌려줍니다. pop-up menu가 null 의 경우는 빈 상태(empty)의 배열을 돌려줍니다. 이 메소드는,MenuElement 인터페이스에 적합하기 위해서 필요합니다. JSeparator 는 MenuElement 인터페이스에 적합하지 않기 때문에, 이 배열에는 JMenuItem 만이 포함됩니다.
MenuElement 내의 getSubElements JMenuItem 내의 getSubElements MenuElement 객체의 배열public Component getComponent()
MenuElement 를 페인트 하는데 사용되는 java.awt.Component 를 돌려줍니다. 반환된 컴퍼넌트는, 이벤트를 변환해, 이벤트가 발생한 장소가 메뉴 컴퍼넌트내일지 어떨지를 검출하기 위해서 사용됩니다.
MenuElement 내의 getComponent JMenuItem 내의 getComponent Componentpublic void applyComponentOrientation(ComponentOrientation o)
ComponentOrientation 프로퍼티을 설정합니다. 이것에는 getMenuComponents 에 의해 반환된 모든 컴퍼넌트가 포함됩니다.
Container 내의 applyComponentOrientation o - 이 메뉴 및 이 메뉴에 포함되는 컴퍼넌트의
새로운 컴퍼넌트 방향
NullPointerException - orientation 가 null 의 경우Component.setComponentOrientation(java.awt.ComponentOrientation) ,
Component.getComponentOrientation() public void setComponentOrientation(ComponentOrientation o)
Component 의 기술:LayoutManager 서브 클래스 및 Component 서브 클래스는 이 프로퍼티을 사용해 컴퍼넌트의 배치 방법 및 draw 방법을 결정합니다.
구축시에는, 컴퍼넌트의 방향은, 명시적으로 지정되어 있지 않은 것을 나타내는 ComponentOrientation.UNKNOWN 로 설정됩니다. UNKNOWN 의 방향의 동작은 ComponentOrientation.LEFT_TO_RIGHT 와 같습니다.
컴퍼넌트의 방향 결정을 단독으로 실시하는 경우는 이 메소드를 사용합니다. 컴퍼넌트 계층 전체의 방향을 결정하는 경우는,applyComponentOrientation 를 사용합니다.
Component 내의 setComponentOrientation ComponentOrientation public void setAccelerator(KeyStroke keyStroke)
setAccelerator 는 JMenu 에는 정의되고 있지 않습니다. 대신에 setMnemonic 를 사용해 주세요.
JMenuItem 내의 setAccelerator keyStroke - 메뉴 계층을 이동하는 일 없이 JMenuItem 의 액션 청취자를 호출하는 키스트로크(keystroke)의 편성
Error - 불려 갔을 경우. 이 메소드는 JMenu 에는 정의되어 있지 않다.
대신에 setMnemonic 를 사용한다protected void processKeyEvent(KeyEvent evt)
JComponent 내의 processKeyEvent evt - 처리되는 키 이벤트KeyEvent ,
KeyListener ,
KeyboardFocusManager ,
DefaultKeyboardFocusManager ,
Component.processEvent(java.awt.AWTEvent) ,
Component.dispatchEvent(java.awt.AWTEvent) ,
Component.addKeyListener(java.awt.event.KeyListener) ,
Component.enableEvents(long) ,
Component.isShowing() public void doClick(int pressTime)
AbstractButton.doClick 메소드를 오버라이드(override) 합니다.
AbstractButton 내의 doClick pressTime - 버튼이 밀린 밀리 세컨드수protected String paramString()
JMenu 의 캐릭터 라인 표현을 돌려줍니다. 이 메소드는 디버그 전용이며, 반환되는 캐릭터 라인의 내용 및 형식은 구현에 따라서 다릅니다. 반환되는 캐릭터 라인은 빈 상태(empty)의 경우가 있습니다만,null 로는 되지 않습니다.
JMenuItem 내의 paramString public AccessibleContext getAccessibleContext()
Accessible 내의 getAccessibleContext JMenuItem 내의 getAccessibleContext
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
| 개요 : 상자 | 필드 | 생성자 | 메소드 | 상세 : 필드 | 생성자 | 메소드 | |||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.