當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。