2024-06-12
This commit is contained in:
43
Writerside2/topics/Menu.md
Normal file
43
Writerside2/topics/Menu.md
Normal file
@@ -0,0 +1,43 @@
|
||||
# 메뉴
|
||||
|
||||
## JMenuBar
|
||||
|
||||
* `add(JMenu)`
|
||||
* `jFrame.getJMenuBar()` / `jFrame.setJMenuBar(JMenuBar)`
|
||||
|
||||
|
||||
## JMenu
|
||||
|
||||
* `JMenu()` / `JMenu(String)` / `JMenu(Action)`
|
||||
|
||||
* `add(JMenuItem)` / `add(String)` / `addSeparator()`
|
||||
* `insert(JMenuItem,int)` / `insert(String,int)` / `insertSeparator(int)`
|
||||
* `remove(JMenuItem)` / `remove(int)` / `removeAll()`
|
||||
|
||||
## JPopupMenu
|
||||
|
||||
* `add(JMenuItem)` / `add(String)` / `addSeparator()`
|
||||
* `insert(JMenuItem,int)`
|
||||
* `remove(int)` / `removeAll()`
|
||||
* `setLightWeightPopupEnabled(boolean)`
|
||||
* `show(Component,int,int)`
|
||||
|
||||
## JMenuItem
|
||||
|
||||
* `setEnabled(boolean)`
|
||||
* `setMnemonic(int)` : KeyEvent.VK_...
|
||||
* `setAccelerator(KeyStroke)`
|
||||
* `setActionCommand(String)`
|
||||
* `addActionListener()`
|
||||
* `addItemListener()`
|
||||
* `setAction(Action)`
|
||||
|
||||
|
||||
## JCheckBoxMenuItem
|
||||
|
||||
* `getState()` / `setState(boolean)`
|
||||
|
||||
## JRadioButtonMenuItem
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user