本文整理汇总了Java中info.clearthought.layout.TableLayout类的典型用法代码示例。如果您正苦于以下问题:Java TableLayout类的具体用法?Java TableLayout怎么用?Java TableLayout使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
TableLayout类属于info.clearthought.layout包,在下文中一共展示了TableLayout类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setupLayout
import info.clearthought.layout.TableLayout; //导入依赖的package包/类
private void setupLayout() {
TableLayout layout = new TableLayout(
new double[] {
TableLayout.MINIMUM, TableLayout.PREFERRED,
TableLayout.MINIMUM, TableLayout.PREFERRED,
TableLayout.MINIMUM, TableLayout.PREFERRED,
TableLayout.PREFERRED
},
new double[] { TableLayout.PREFERRED }
);
layout.setHGap( 8 );
this.setLayout( layout );
this.add( labelAuthor, new TableLayoutConstraints( 0, 0 ) );
this.add( author, new TableLayoutConstraints( 1, 0 ) );
this.add( labelAssignee, new TableLayoutConstraints( 2, 0 ) );
this.add( assignee, new TableLayoutConstraints( 3, 0 ) );
this.add( new JLabel( "Filter" ), new TableLayoutConstraints( 4, 0 ) );
this.add( textFilter, new TableLayoutConstraints( 5, 0 ) );
this.add( checkClosed, new TableLayoutConstraints( 6, 0 ) );
}
示例2: initialize
import info.clearthought.layout.TableLayout; //导入依赖的package包/类
/**
* This method initializes this
*
* @return void
*/
private void initialize() {
double[][] size = {
{5, TableLayout.FILL, 5, TableLayout.MINIMUM, 5,
TableLayout.FILL, 5, TableLayout.MINIMUM, 5},
{5, TableLayout.MINIMUM, 5, TableLayout.FILL, 5}};
setLayout(new TableLayout(size));
jLabel1 = new JLabel();
jLabel1.setText(GlobalResourcesManager
.getString("HierarchicalAttributes"));
jLabel = new JLabel();
jLabel.setText(GlobalResourcesManager.getString("PresentAttributes"));
this.add(jLabel, "1,1");
this.add(jLabel1, "5, 1");
this.add(getJScrollPane1(), "1,3");
this.add(getJPanel1(), "3,3");
this.add(getJScrollPane(), "5,3");
this.add(getJPanel(), "7,3");
}
示例3: createUpDown
import info.clearthought.layout.TableLayout; //导入依赖的package包/类
private JComponent createUpDown() {
TableLayout layout = new TableLayout(new double[]{TableLayout.FILL},
new double[]{TableLayout.FILL, 5, TableLayout.FILL});
JPanel panel = new JPanel(layout);
JButton upButton = new JButton(up);
upButton.setFocusable(false);
JButton downButton = new JButton(down);
downButton.setFocusable(false);
panel.add(upButton, "0,0");
panel.add(downButton, "0,2");
JPanel p = new JPanel(new FlowLayout());
p.add(panel);
return p;
}
示例4: NewJavaScriptDialog
import info.clearthought.layout.TableLayout; //导入依赖的package包/类
public NewJavaScriptDialog(GUIFramework framework) {
super(framework.getMainFrame(), true);
this.engine = framework.getEngine();
setTitle(ScriptPlugin.getBundle()
.getString("NewJavaScriptDialog.title"));
double[][] size = {{5, TableLayout.FILL, TableLayout.MINIMUM, 5},
{5, TableLayout.MINIMUM, 5}};
JPanel panel = new JPanel(new TableLayout(size));
panel.add(moduleName, "1, 1");
panel.add(new JLabel(".js"), "2, 1");
setMainPane(panel);
this.pack();
this.setMinimumSize(getSize());
centerDialog();
Options.loadOptions(this);
}
示例5: initialize
import info.clearthought.layout.TableLayout; //导入依赖的package包/类
/**
* This method initializes this
*
* @return void
*/
private void initialize() {
double[][] size = {{5, TableLayout.FILL, 5},
{5, TableLayout.FILL, 5}};
this.setLayout(new TableLayout(size));
final GridLayout gridLayout3 = new GridLayout();
JPanel child = new JPanel(gridLayout3);
this.setSize(351, 105);
gridLayout3.setRows(3);
gridLayout3.setColumns(2);
gridLayout3.setHgap(5);
gridLayout3.setVgap(5);
child.add(getJRadioButton(), null);
child.add(getJRadioButton1(), null);
child.add(getJRadioButton2(), null);
child.add(getJRadioButton3(), null);
child.add(getJRadioButton4(), null);
child.add(getJTextField(), null);
this.add(child, "1,1");
}
示例6: createSourceTypePanel
import info.clearthought.layout.TableLayout; //导入依赖的package包/类
private Component createSourceTypePanel() {
double[][] size = {
{5, TableLayout.MINIMUM, TableLayout.FILL,
TableLayout.MINIMUM, TableLayout.FILL, 5},
{5, TableLayout.FILL, 5}};
TableLayout layout = new TableLayout(size);
layout.setHGap(5);
layout.setVGap(5);
JPanel panel = new JPanel(layout);
panel.add(new JLabel(ChartResourceManager.getString("SourceType")),
"1,1");
panel.add(sourceType, "2,1");
panel.add(new JLabel(ChartResourceManager
.getString("SourceType.tableAttribute")), "3,1");
panel.add(tableAttribute, "4,1");
return panel;
}
示例7: QueueServer
import info.clearthought.layout.TableLayout; //导入依赖的package包/类
public QueueServer() throws IOException, AWTException {
this.setSize(450, 90);
this.setDefaultCloseOperation(EXIT_ON_CLOSE);
this.setLocationRelativeTo(null);
this.setLayout(new TableLayout(sizes));
this.add(createLabel("Path to Screenshots"), "0,0");
this.add(pathField = createTextfield(), "1,0");
this.add(createLabel("connect to:"), "0,1");
this.add(createLabel(InetAddress.getLocalHost().getHostAddress() + ":8080"), "1,1");
this.setVisible(true);
refimg = ImageIO.read(this.getClass().getResourceAsStream("/img/refimg.png"));
port(8080);
staticFileLocation("/files");
get("/queuestate", (req, res) -> getQueueState());
}
示例8: TrackListPanel
import info.clearthought.layout.TableLayout; //导入依赖的package包/类
public TrackListPanel()
{
super(new TableLayout(new double[] { 0, FILL, PREFERRED, PREFERRED, 0 }, new double[] { 0, 0 }));
Arrays.sort(sortedInstruments, new Comparator<LotroInstrument>()
{
@Override public int compare(LotroInstrument a, LotroInstrument b)
{
return a.toString().compareTo(b.toString());
}
});
layout = (TableLayout) getLayout();
layout.setVGap(4);
layout.setHGap(4);
setBackground(Color.WHITE);
}
示例9: FrmAddConstraintDefinition
import info.clearthought.layout.TableLayout; //导入依赖的package包/类
/**
*
* @param owner
* Frame
* @param title
* String
* @param modal
* boolean
* @param aMonitorFrame
* JInternalFrame
* @param aModelCoordinator
* WorkCoordinator
*/
public FrmAddConstraintDefinition(Frame owner, JComponent aMonitorFrame,
AssignmentModel model) {
super(owner, "Constraint definition", aMonitorFrame);
this.model = model;
templatePanel = new TemplatePanel(model.getLanguage());
templatePanel.setListener(this);
parametersPanel = new ParametersPanel();
parametersPanel.addParameterListener(this);
content = new JPanel(new TableLayout(size));
content.add(templatePanel, "0, 0");
content.add(parametersPanel, "0, 1");
itemSelected(templatePanel.getSelectedTemplate());
frmSelectFromList = new FrmSelectFromList(this, "Select activities", this);
}
示例10: initUI
import info.clearthought.layout.TableLayout; //导入依赖的package包/类
private void initUI() {
// create the layout
double[] columns = {
TableLayoutConstants.PREFERRED,
TableLayoutConstants.FILL,
};
double[] rows = {
TableLayoutConstants.PREFERRED,
TableLayoutConstants.PREFERRED
};
TableLayout layout = new TableLayout(columns, rows);
layout.setHGap(6);
layout.setVGap(6);
this.setLayout(layout);
this.add(new JCheckBox("Show all schemas into object tree"), "0, 0, 1, 0");
this.add(new JLabel("Object Filter"), "0, 1");
this.add(new JTextField(25), "1, 1");
}
示例11: createJoinPanel
import info.clearthought.layout.TableLayout; //导入依赖的package包/类
private JPanel createJoinPanel() {
JPanel joinPanel = new JPanel();
// create the layout
double[] columns = {
TableLayoutConstants.PREFERRED,
TableLayoutConstants.PREFERRED,
TableLayoutConstants.PREFERRED
};
double[] rows = {
TableLayoutConstants.PREFERRED
};
TableLayout layout = new TableLayout(columns, rows);
layout.setVGap(6);
layout.setHGap(6);
joinPanel.setLayout(layout);
joinPanel.add(leftTextField, "0, 0");
joinPanel.add(operatorsComboBox, "1, 0");
joinPanel.add(rightTextField, "2, 0");
return joinPanel;
}
示例12: initUI
import info.clearthought.layout.TableLayout; //导入依赖的package包/类
private void initUI() {
double[] columns = {
TableLayoutConstants.FILL,
TableLayoutConstants.PREFERRED,
TableLayoutConstants.PREFERRED,
TableLayoutConstants.PREFERRED
};
double[] rows = {
TableLayoutConstants.PREFERRED,
};
TableLayout layout = new TableLayout(columns, rows);
layout.setHGap(6);
this.setLayout(layout);
createMaxRowsPanel();
add(createMaxRowsPanel(), "0, 0");
add(timeLabel = new JLabel("0 " + I18NSupport.getString("seconds")), "1, 0");
add(new JLine(), "2, 0");
add(rowsLabel = new JLabel("0 " + I18NSupport.getString("rows")), "3, 0");
}
示例13: initUI
import info.clearthought.layout.TableLayout; //导入依赖的package包/类
private void initUI() {
JPanel mainPanel = new JPanel();
// create the layout
double[] columns = {
TableLayoutConstants.FILL,
};
double[] rows = {
TableLayoutConstants.FILL,
TableLayoutConstants.PREFERRED
};
TableLayout layout = new TableLayout(columns, rows);
layout.setVGap(10);
mainPanel.setLayout(layout);
createButtonsPanel();
mainPanel.add(basePanel, "0, 0");
mainPanel.add(buttonsPanel, "0, 1");
mainPanel.setBorder(new CompoundBorder(new EmptyBorder(0, 0, 0, 0), new EmptyBorder(10, 10, 10, 10)));
getContentPane().add(mainPanel);
pack();
}
示例14: TablePlayersCellRenderer
import info.clearthought.layout.TableLayout; //导入依赖的package包/类
/**
* Constructor for the cell renderer for the table players.
*/
public TablePlayersCellRenderer () {
// Create the panel used to show the info
double pref = TableLayout.PREFERRED, fill = TableLayout.FILL;
double [][] sizes = {{4, 16, pref},{pref}};
fullPlayerPanel = new JogrePanel(sizes);
fullPlayerPanel.setOpaque (true);
// Create the label that will hold the player's name
playerNameLabel = new JLabel ();
playerNameLabel.setFont (JogreAwt.LIST_FONT);
// Create the rating square that will hold the player's rating
theRatingSquare = new RatingSquare(null);
// Put the name & rating square labels into the panel
fullPlayerPanel.add (theRatingSquare, "1,0,c,c");
fullPlayerPanel.add (playerNameLabel, "2,0,c,c");
}
示例15: UserListRenderer
import info.clearthought.layout.TableLayout; //导入依赖的package包/类
/**
* Constructor for this renderer.
*/
public UserListRenderer () {
// Set layout
double pref = TableLayout.PREFERRED, fill = TableLayout.FILL;
double [][] sizes = {{fill, pref, 36, 4},{pref}};
setLayout (new TableLayout (sizes));
// Create components and and labels
userLabel = new UserLabel ();
ratingLabel = new JogreLabel ();
tablesLabel = new JogreLabel ();
// Set font of labels
ratingLabel.setFont (JogreAwt.LIST_FONT);
tablesLabel.setFont (JogreAwt.LIST_FONT);
add (userLabel, "0,0,l,c");
add (tablesLabel, "1,0,r,c");
add (ratingLabel, "2,0,r,c");
}