weakPanel.setLayout(new BorderLayout());
//the label
JLabel label=new JLabel("Threshold"); //Clique Size Threshold input
fThreshold = new JFormattedTextField(decimal) {
public JToolTip createToolTip() {
return new MyTipTool();
}
};
//the input text field
fThreshold.setColumns(3);
fThreshold.addPropertyChangeListener("value", new FAGECPanel.FormattedTextFieldAction());
String tip2 = "threshold to define a module\n" +
"It stands for the proportion of\n"+
"the indegree to the outdegree of a clique";
fThreshold.setToolTipText(tip2);
fThreshold.setText((new Double(currentParameters.getfThreshold()).toString()));
weakPanel.add(fThreshold,BorderLayout.EAST);
weakPanel.add(label,BorderLayout.WEST);
weakPanel.setVisible(true);
//the cliqueSize Panel
cliqueSizePanel=createCliqueSizePanel();
//the ComplexSize Panel
JPanel complexSizePanel=createComplexSizePanel();
//Produce Overlapped Complexes input
JLabel overlapLabel = new JLabel(" Produce Overlapped Complexes");
overlapped = new JCheckBox() {
public JToolTip createToolTip() {
return new MyTipTool();
}
};
overlapped.addItemListener(new overlappedCheckBoxAction());
String overlapTip = "Produce overlapped module.";
overlapped.setToolTipText(overlapTip);
overlapped.setSelected(currentParameters.isOverlapped());
JPanel overlapPanel = new JPanel() {
public JToolTip createToolTip() {
return new MyTipTool();
}
};
overlapPanel.setLayout(new BorderLayout());
overlapPanel.setToolTipText(overlapTip);
overlapPanel.add(overlapLabel, BorderLayout.WEST);