当前位置: 首页>>代码示例>>Java>>正文


Java SwingTools.createTextPanel方法代码示例

本文整理汇总了Java中com.rapidminer.gui.tools.SwingTools.createTextPanel方法的典型用法代码示例。如果您正苦于以下问题:Java SwingTools.createTextPanel方法的具体用法?Java SwingTools.createTextPanel怎么用?Java SwingTools.createTextPanel使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.rapidminer.gui.tools.SwingTools的用法示例。


在下文中一共展示了SwingTools.createTextPanel方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: addTitleStep

import com.rapidminer.gui.tools.SwingTools; //导入方法依赖的package包/类
private void addTitleStep() {
	JPanel panel = SwingTools
			.createTextPanel(
					"Welcome to the Example Source Wizard",
					"This wizard will guide you through the process of data loading and meta data definition. Using this wizard will involve the following steps:"
							+ "<ul>"
							+ "<li>Selection of a data file</li>"
							+ "<li>Definition of the column separators</li>"
							+ "<li>Definition of the attribute names</li>"
							+ "<li>Definition of the attribute value types</li>"
							+ "<li>Definition of special attributes like labels or IDs</li>"
							+ "<li>Saving the data and meta data into files used by the operator</li>" + "</ul>");

	addStep(panel);
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:16,代码来源:ExampleSourceConfigurationWizard.java

示例2: addNameDefinitionStep

import com.rapidminer.gui.tools.SwingTools; //导入方法依赖的package包/类
private void addNameDefinitionStep() {
	JPanel panel = SwingTools.createTextPanel("Please specify the column names...",
			"Please specify if the names can be taken from the first line of the data file.");

	GridBagLayout layout = new GridBagLayout();
	GridBagConstraints c = new GridBagConstraints();
	c.fill = GridBagConstraints.HORIZONTAL;
	c.weightx = 0;
	c.weighty = 0;
	c.insets = new Insets(7, 7, 7, 7);
	JPanel content = new JPanel(layout);

	firstRowAsNames.addActionListener(new ActionListener() {

		@Override
		public void actionPerformed(ActionEvent e) {
			reloadData();
			updateViews();
		}
	});
	c.gridwidth = GridBagConstraints.REMAINDER;
	layout.setConstraints(firstRowAsNames, c);
	content.add(firstRowAsNames);

	panel.add(content, BorderLayout.CENTER);
	addStep(panel);
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:28,代码来源:ExampleSourceConfigurationWizard.java

示例3: addValueTypeDefinitionStep

import com.rapidminer.gui.tools.SwingTools; //导入方法依赖的package包/类
private void addValueTypeDefinitionStep() {
	JPanel content = new JPanel(new BorderLayout());
	JPanel textPanel = SwingTools
			.createTextPanel(
					"Please specify the attribute value types...",
					"Please specify the attribute value types. RapidMiner tries to guess the value types based on the the complete data file (which might take some time) but some adjustments might still be necessary.");
	content.add(textPanel, BorderLayout.NORTH);
	JScrollPane valueTypeViewPane = new ExtendedJScrollPane(valueTypeView);
	valueTypeViewPane.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createEmptyBorder(7, 7, 7, 7),
			BorderFactory.createTitledBorder("Attribute Value Types")));
	content.add(valueTypeViewPane, BorderLayout.CENTER);
	addStep(content);
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:14,代码来源:ExampleSourceConfigurationWizard.java

示例4: addAttributeTypeDefinitionStep

import com.rapidminer.gui.tools.SwingTools; //导入方法依赖的package包/类
private void addAttributeTypeDefinitionStep() {
	JPanel content = new JPanel(new BorderLayout());
	JPanel textPanel = SwingTools
			.createTextPanel(
					"Please specify special attributes...",
					"Please specify special attribues if there are any. You can specify arbitrary special attributes in the Attribute Editor but in this Wizard only the most important types (label, id...) are supported.");
	content.add(textPanel, BorderLayout.NORTH);
	JScrollPane typeViewPane = new ExtendedJScrollPane(attributeTypeView);
	typeViewPane.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createEmptyBorder(7, 7, 7, 7),
			BorderFactory.createTitledBorder("Attribute Types")));
	content.add(typeViewPane, BorderLayout.CENTER);
	addStep(content);
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:14,代码来源:ExampleSourceConfigurationWizard.java

示例5: addResultFileDefinitionStep

import com.rapidminer.gui.tools.SwingTools; //导入方法依赖的package包/类
private void addResultFileDefinitionStep() {
	JPanel panel = SwingTools
			.createTextPanel(
					"Please specify a file name...",
					"Please specify a file name which is used for the created attribute description "
							+ "file (.aml) based on the settings before. A corresponding data file will automatically be saved "
							+ "with the extension \".dat\". Please note that existing files with these names will be overwritten. "
							+ "It is not possible to use the input file directly as output."
							+ "Both files are necessary parameters for the ExampleSource operator "
							+ "and will - like all other important parameters - automatically be defined for this operator after this "
							+ "wizard was finished.");

	GridBagLayout layout = new GridBagLayout();
	GridBagConstraints c = new GridBagConstraints();
	c.fill = GridBagConstraints.HORIZONTAL;
	c.weightx = 0;
	c.weighty = 0;
	c.insets = new Insets(7, 7, 7, 7);
	JPanel content = new JPanel(layout);

	JLabel label = new JLabel("Result file name: ");
	layout.setConstraints(label, c);
	content.add(label);

	c.weightx = 1;
	c.gridwidth = GridBagConstraints.RELATIVE;
	layout.setConstraints(this.resultFileField, c);
	content.add(this.resultFileField);

	JButton chooseFileButton = new JButton("Choose...");
	chooseFileButton.addActionListener(new ActionListener() {

		@Override
		public void actionPerformed(ActionEvent e) {
			File file = SwingTools.chooseFile(ExampleSourceConfigurationWizard.this, null, false, "aml",
					"attribute description file");
			boolean fileOk = checkOutputFile(file);
			if (fileOk) {
				resultFileField.setText(file.getAbsolutePath());
			} else {
				SwingTools.showVerySimpleErrorMessage("same_output_as_input_file");
				resultFileField.setText("");
			}
		}
	});
	c.weightx = 0;
	c.gridwidth = GridBagConstraints.REMAINDER;
	layout.setConstraints(chooseFileButton, c);
	content.add(chooseFileButton);

	JPanel yFillPanel = new JPanel();
	c.weightx = 0;
	c.weighty = 1;
	c.gridwidth = GridBagConstraints.REMAINDER;
	layout.setConstraints(yFillPanel, c);
	content.add(yFillPanel);

	panel.add(content, BorderLayout.CENTER);
	addStep(panel);
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:61,代码来源:ExampleSourceConfigurationWizard.java


注:本文中的com.rapidminer.gui.tools.SwingTools.createTextPanel方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。