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);
}
SimplePlotterPanelDialog.java 文件源码
java
阅读 33
收藏 0
点赞 0
评论 0
项目:rapidminer
作者:
评论列表
文章目录