EditorDialog.java 文件源码

java
阅读 38 收藏 0 点赞 0 评论 0

项目:jdatechooser 作者:
public EditorDialog(Frame owner, PropertyEditorSupport editor) {
    super(owner, true);
    propertyEditor = getClonedEditor(editor);
    setCanceled(false);
    Container pane = getContentPane();
    pane.setLayout(new BorderLayout());
    OnClick onClick = new OnClick();
    bOK = new JButton(getEditorLocaleString("OK"));
    bOK.addActionListener(onClick);
    bCancel = new JButton(getEditorLocaleString("Cancel"));
    bCancel.addActionListener(onClick);
    bPane = new JPanel(new FlowLayout(FlowLayout.RIGHT));
    bPane.add(bOK);
    bPane.add(bCancel);

    pane.add(bPane, BorderLayout.SOUTH);
    tryToCreateEditorPanel(false);
    pack();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号