SimplePlotterPanelDialog.java 文件源码

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

项目:rapidminer 作者:
public SimplePlotterPanelDialog(Frame owner, final DataTable dataTable, int width, int height, boolean modal) {
    super(owner, dataTable.getName(), modal);
    setDefaultCloseOperation(DISPOSE_ON_CLOSE);
    PlotterPanel plotterPanel = new PlotterPanel(dataTable, PlotterConfigurationModel.DATA_SET_PLOTTER_SELECTION);
    getContentPane().add(plotterPanel, BorderLayout.CENTER);

    JPanel buttonPanel = new JPanel(new FlowLayout(FlowLayout.RIGHT));
    JButton okButton = new JButton("Ok");
    okButton.addActionListener(new ActionListener() {

        @Override
        public void actionPerformed(ActionEvent e) {
            ok();
        }
    });
    buttonPanel.add(okButton);

    getContentPane().add(buttonPanel, BorderLayout.SOUTH);

    if ((width < 0) || (height < 0)) {
        setSize(600, 400);
    } else {
        setSize(width, height);
    }
    setLocationRelativeTo(owner);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号