public abstract class OptionDialog extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected JButton |
closeButton |
protected JDialog |
dialog |
protected JOptionPane |
jOptionPane |
| 构造器和说明 |
|---|
OptionDialog() |
OptionDialog(Component parentComponent) |
OptionDialog(Component parentComponent,
String title) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected abstract Object |
customizeDialogComponentView()
自定义组件视图
|
Component |
getParentComponent() |
String |
getTitle() |
protected void |
initCloseButton()
初始化closeButton
|
protected void |
onCloseDialog(ActionEvent e)
关闭时触发
|
void |
show() |
protected JOptionPane jOptionPane
protected JDialog dialog
protected JButton closeButton
public OptionDialog()
public OptionDialog(Component parentComponent)
public void show()
protected abstract Object customizeDialogComponentView()
protected void initCloseButton()
protected void onCloseDialog(ActionEvent e)
e - public String getTitle()
public Component getParentComponent()
Copyright © 2021. All rights reserved.