public PropertiesAction() {
super("Properties",null);
// putValue(SHORT_DESCRIPTION,desc);
// putValue(MNEMONIC_KEY,mnemonic);
String[] labels = { "Name","Entry time","Exit time","Entry cpu","Exit cpu","This","Result","Parameters"};
propsPanel = new JPanel(new SpringLayout());
for (int i = 0; i < labels.length; i++) {
JLabel l = new JLabel(labels[i] + ": ",JLabel.TRAILING);
propsPanel.add(l);
JTextField textField = new JTextField(10);
l.setLabelFor(textField);
propsPanel.add(textField);
propsMap.put(labels[i],textField);
}
SpringUtilities.makeCompactGrid(propsPanel,labels.length,2,5,5);
}
项目:JavaGraph
文件:Template.java
public TemplateEditor(GrammarModel grammar) {
super(grammar,new SpringLayout());
setBackground(ExplorationDialog.INFO_BG_COLOR);
addName();
addExplanation();
add(Box.createRigidArea(new Dimension(0,6)));
addKeyword();
addNrArguments();
add(Box.createRigidArea(new Dimension(0,6)));
for (String argName : Template.this.argumentNames) {
addArgument(argName);
}
SpringUtilities.makeCompactGrid(this,6 + Template.this.argumentNames.length,1,0);
refresh();
}
public GroupBox(final AbstractButton b)
{
button = b;
button.addItemListener(this);
button.setopaque(true);
button.setBackground(this.getBackground());
final int buttonHeight = button.getPreferredSize().height;
inner = new JPanel();
inner.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createEtchedBorder(),BorderFactory.createEmptyBorder(buttonHeight / 2,5)));
final SpringLayout layout = new SpringLayout();
super.setLayout(layout);
super.add(button);
super.add(inner);
layout.putConstraint(SpringLayout.WEST,button,10,SpringLayout.WEST,this);
layout.putConstraint(SpringLayout.norTH,inner,buttonHeight / 2,SpringLayout.norTH,this);
layout.putConstraint(SpringLayout.WEST,this);
layout.putConstraint(SpringLayout.soUTH,this,SpringLayout.soUTH,inner);
layout.putConstraint(SpringLayout.EAST,SpringLayout.EAST,inner);
}
public PropertiesAction() {
super("Properties",5);
}
项目:openjdk9
文件:jpopupmenuOverlapping.java
protected void prepareControls() {
if(frame != null) {
frame.setVisible(false);
}
frame = new JFrame("Mixing : Dropdown Overlapping test");
frame.setLayout(new SpringLayout());
frame.setSize(200,200);
popup = new jpopupmenu();
ActionListener menuListener = new ActionListener() {
public void actionPerformed(ActionEvent event) {
lwClicked = true;
}
};
JMenuItem item;
for (int i = 0; i < petStrings.length; i++) {
popup.add(item = new JMenuItem(petStrings[i]));
item.addActionListener(menuListener);
}
propagateAWTControls(frame);
frame.setVisible(true);
loc = frame.getContentPane().getLocationOnScreen();
}
项目:libraries
文件:DoubleIntervalField.java
private JPanel createComponent() {
final ValueValidator validator = new ValueValidator(this.minimum,this.maximum);
final DoubleField minimumField = createDoubleField(this.minimumValueModel,this.minimumValidationModel,validator);
final DoubleField maximumField = createDoubleField(this.maximumValueModel,this.maximumValidationModel,validator);
@SuppressWarnings("serial")
final JPanel panel = new JPanel(new SpringLayout()) {
@Override
public void requestFocus() {
minimumField.getComponent().requestFocus();
}
};
panel.add(minimumField.getComponent());
panel.add(maximumField.getComponent());
SpringLayoutUtilities.makeCompactGrid(panel,6,0);
return panel;
}
项目:libraries
文件:ComponentProvider.java
@Override
public JComponent getComponent() {
if (this.panel == null) {
final IComponentContainer container = this.container;
final JPanel component = new JPanel(new SpringLayout());
this.panel = new JPanel(new BorderLayout()) {
@Override
public void setEnabled(final boolean enabled) {
super.setEnabled(enabled);
container.setEnabled(enabled);
}
};
this.panel.add(component,BorderLayout.norTH);
this.container.addTo(component);
SpringLayoutUtilities.makeCompactGrid(component,container.getColumnCount(),container.getRowCount(),4,6);
}
return this.panel;
}
项目:GND_Control
文件:Profile_Item_GUI.java
public Profile_Item_GUI(Profile_Item profile) throws IOException{
URL img1 = Profile_Item_GUI.this.getClass().getResource("../quadicon.png");
Image g1 = ImageIO.read(img1);
g1 = g1.getScaledInstance(80,80,Image.SCALE_SMOOTH);
ImageIcon icon1 = new ImageIcon(g1);
l3 = new JLabel(icon1);
p2.setBorder(BorderFactory.createEtchedBorder());
p2.add(l3);
l1.setText(l1.getText()+" "+profile.getTitle());
spring.putConstraint(SpringLayout.WEST,l1,p3);
p3.add(l1);
l2.setText(l2.getText()+" "+profile.getDescription());
spring.putConstraint(SpringLayout.norTH,l2,16,p3);
spring.putConstraint(SpringLayout.WEST,p3);
spring.putConstraint(SpringLayout.EAST,-4,b);
p3.add(l2);
spring.putConstraint(SpringLayout.EAST,b,-16,p3);
spring.putConstraint(SpringLayout.norTH,32,p3);
p3.add(b);
p1.add(p3,BorderLayout.CENTER);
p1.add(p2,BorderLayout.WEST);
add(p1);
setLayout(new GridLayout(1,1));
this.setMinimumSize(new Dimension(1000,80));
this.setMaximumSize(new Dimension(9000,80));
}
private JPanel createInputPanelArea() {
//Create and populate the panel.
JPanel springPanel = new JPanel(new SpringLayout());
springPanel.setBorder(BorderFactory.createEmptyBorder(15,15,15));
JLabel lName = new JLabel("Sensor Type: ");
springPanel.add(lName);
sensorType = new JTextField();
lName.setLabelFor(sensorType);
springPanel.add(sensorType);
//Lay out the panel.
SpringUtilities.makeCompactGrid(springPanel,//rows,columns
6,//initX,initY
6,6); //xPad,yPad
return springPanel;
}
private JPanel createInputPanelArea() {
//Create and populate the panel.
JPanel springPanel = new JPanel(new SpringLayout());
springPanel.setBorder(BorderFactory.createEmptyBorder(15,15));
JLabel lName = new JLabel("Name: ");
springPanel.add(lName);
tfName = new JTextField();
lName.setLabelFor(tfName);
springPanel.add(tfName);
//Lay out the panel.
SpringUtilities.makeCompactGrid(springPanel,yPad
return springPanel;
}
private JPanel createInputPanelArea() {
//Create and populate the panel.
JPanel springPanel = new JPanel(new SpringLayout());
springPanel.setBorder(BorderFactory.createEmptyBorder(15,15));
JLabel lName = new JLabel("Name: ");
springPanel.add(lName);
actuatorName = new JTextField();
lName.setLabelFor(actuatorName);
springPanel.add(actuatorName);
JLabel lType = new JLabel("Actuator Type : ");
springPanel.add(lType);
actuatorType = new JTextField();
lName.setLabelFor(actuatorType);
springPanel.add(actuatorType);
//Lay out the panel.
SpringUtilities.makeCompactGrid(springPanel,yPad
return springPanel;
}
private JPanel createInputPanelArea() {
//Create and populate the panel.
JPanel springPanel = new JPanel(new SpringLayout());
springPanel.setBorder(BorderFactory.createEmptyBorder(15,15));
JLabel lName = new JLabel("Sensor Type: ");
springPanel.add(lName);
actuatorType = new JTextField();
lName.setLabelFor(actuatorType);
springPanel.add(actuatorType);
//Lay out the panel.
SpringUtilities.makeCompactGrid(springPanel,yPad
return springPanel;
}
项目:Al-kaboom
文件:KautotuSartzekoPanela.java
public KautotuSartzekoPanela() {
this.setLayout(new SpringLayout());
this.erabiltzailea = new JLabel("Erabiltzaile izena:",SwingConstants.TRAILING);
this.erabiltzaileaField = new JTextField();
this.erabiltzaileaField.setName("Erabiltzailea Field");
this.erabiltzaileaField.addActionListener(gureAE -> AlKaboom.getAlKaboom().getUI().getKautotu()
.getKautotuPanela().taulaEguneratu(this.erabiltzaileaField.getText()));
this.erabiltzaileaField.addKeyListener(this);
this.erabiltzailea.setLabelFor(erabiltzaileaField);
this.zailtasuna = new JLabel("Zailtasuna:",SwingConstants.TRAILING);
aukerakArray = new String[] { "Erreza","normala","Zaila","Custom..." };
this.aukerakEraiki(0);
this.zailtasuna.setLabelFor(aukerak);
this.sartu = new JButton("Sartu");
this.sartu.setName("Sartu");
this.sartu.setEnabled(false);
this.sartu.addActionListener(gureAE -> this.datuakGorde());
this.aukerazkoa = new JButton("Zailtasuna Aukeratu...");
this.aukerazkoa.setEnabled(false);
this.aukerazkoa.setName("Zailtasuna Sartu");
this.aukerazkoa.addActionListener(gureAE -> AlKaboom.getAlKaboom().getUI().getKautotu().zailtasunaIpini());
this.guztiaGehitu();
}
项目:JavaMainRepo
文件:EmployeeFrame.java
public EmployeeFrame(String title) {
super(title);
contentPanel.setLayout(new GridLayout(0,3,0));
JPanel panel = new JPanel();
contentPanel.add(panel);
JPanel pan = new JPanel();
contentPanel.add(pan);
SpringLayout slPanel = new SpringLayout();
pan.setLayout(slPanel);
caretakerButton = new JButton("Caretaker");
slPanel.putConstraint(SpringLayout.norTH,caretakerButton,65,pan);
slPanel.putConstraint(SpringLayout.WEST,93,pan);
pan.add(caretakerButton);
JPanel rightPanel = new JPanel();
contentPanel.add(rightPanel);
setVisible(true);
}
@Override
protected void createCellSpecificComponents() {
try {
Dimension dim2 = new Dimension(35,35);
JToggleButton tglInfinite = gettglInfinite(dim2);
JToggleButton tglBound = getBoundButon(dim2);
JPanel pnlBoundOrInfinite = new JPanel(new SpringLayout());
pnlBoundOrInfinite.add(tglInfinite);
pnlBoundOrInfinite.add(tglBound);
if (getPlace().isBounded()) {
tglBound.setEnabled(false);
tglInfinite.setEnabled(true);
}
if (!getPlace().isBounded()) {
tglBound.setEnabled(true);
tglInfinite.setEnabled(false);
}
SpringUtilities.makeCompactGrid(pnlBoundOrInfinite,1);
mainPanel().add(pnlBoundOrInfinite);
} catch (Exception e) {
JOptionPane.showMessageDialog(this,"Buttons Could not be added. \nReason: " + e.getMessage(),"" + e.getClass(),JOptionPane.ERROR);
}
}
项目:plg
文件:ScriptDataObjectDialog.java
@Override
protected JPanel addTonorth() {
JPanel p = new JPanel();
nameField = new JTextField();
p.setLayout(new SpringLayout());
p.add(prepareFieldLabel("New data object name"));
p.add(nameField);
// lay out the panel
SpringUtilities.makeCompactGrid(p,(p.getComponentCount() / 2),// rows,cols
0,// initX,initY
5,10); //xPad,yPad
return p;
}
项目:SEPIA
文件:AnalysisContextDialog.java
private JPanel getActivityClassificationPanel() {
if (subjectDescriptorPanel == null) {
subjectDescriptorPanel = new JPanel(new SpringLayout());
for (String activity : getDialogobject().getACModel().getContext().getActivities()) {
JLabel label = new JLabel(activity,JLabel.TRAILING);
label.setToolTipText(activity);
label.setPreferredSize(new Dimension(140,label.getPreferredSize().height));
subjectDescriptorPanel.add(label);
SubjectDescriptorBox Box = new SubjectDescriptorBox(activity);
Box.setSelectedItem(getDialogobject().getSubjectDescriptor(activity));
subjectDescriptorPanel.add(Box);
subjectDescriptorPanel.add(Box.createHorizontalglue());
}
SpringUtilities.makeCompactGrid(subjectDescriptorPanel,getDialogobject().getACModel().getContext().getActivities().size(),0);
}
return subjectDescriptorPanel;
}
项目:hipster
文件:FloatingPanel.java
/**
* Default constructor.
*/
FloatingPanel() {
setBackground(new Color(0,0));
controller = new FloatingPanelController(this);
SpringLayout layout = new SpringLayout();
this.setLayout(layout);
caption = new JLabel("Test");
caption.setBackground(SHADED);
caption.setForeground(Color.WHITE);
this.add(caption);
contentPane = new JPanel();
contentPane.setBackground(CLEAR);
contentPane.setForeground(Color.WHITE);
this.add(contentPane);
layout.putConstraint(SpringLayout.WEST,caption,this);
layout.putConstraint(SpringLayout.norTH,contentPane,caption);
layout.putConstraint(SpringLayout.WEST,this);
}
项目:JavaMainRepo
文件:ListFrame.java
/**
*
* @param title
* The title of the frame.
*/
public ListFrame(final String title) {
super(title);
contentPanel.setLayout(new GridLayout(0,0));
JPanel pan = new JPanel();
contentPanel.add(pan);
SpringLayout slPanel = new SpringLayout();
pan.setLayout(slPanel);
Animal = new JButton("Animal");
slPanel.putConstraint(SpringLayout.norTH,Animal,pan);
pan.add(Animal);
Employee = new JButton("Employee");
slPanel.putConstraint(SpringLayout.norTH,Employee,78,pan);
pan.add(Employee);
JPanel panel_2 = new JPanel();
contentPanel.add(panel_2);
setVisible(true);
}
项目:JavaMainRepo
文件:MainMenuFrame.java
public MainMenuFrame(String title) {
super(title);
contentPanel.setLayout(new GridLayout(0,0));
JPanel panel = new JPanel();
// adding empty panel to fill grid layout
contentPanel.add(panel);
JPanel pan = new JPanel();
contentPanel.add(pan);
SpringLayout slPanel = new SpringLayout();
pan.setLayout(slPanel);
btnAdd = new JButton("Add");
slPanel.putConstraint(SpringLayout.norTH,btnAdd,pan);
pan.add(btnAdd);
btnList = new JButton("List");
slPanel.putConstraint(SpringLayout.norTH,btnList,150,94,pan);
pan.add(btnList);
btnSaveAndExit = new JButton("Save and Exit");
slPanel.putConstraint(SpringLayout.norTH,btnSaveAndExit,264,69,pan);
pan.add(btnSaveAndExit);
JPanel panel_2 = new JPanel();
contentPanel.add(panel_2);
setVisible(true);
}
项目:qrcode-desktop
文件:UrlGenerator.java
public UrlGenerator() {
SpringLayout layout = new SpringLayout();
JLabel label = new JLabel("URL: ");
txtUrl.setText("http://");
panel.setLayout(layout);
panel.add(label);
panel.add(txtUrl);
layout.putConstraint(SpringLayout.WEST,label,panel);
layout.putConstraint(SpringLayout.norTH,panel);
layout.putConstraint(SpringLayout.WEST,txtUrl,label);
layout.putConstraint(SpringLayout.norTH,panel);
layout.putConstraint(SpringLayout.EAST,-5,panel);
}
项目:qrcode-desktop
文件:PhoneNumberGenerator.java
public PhoneNumberGenerator() {
SpringLayout layout = new SpringLayout();
JLabel label = new JLabel("Phone Number: ");
panel.setLayout(layout);
panel.add(label);
panel.add(txtPhoneNumber);
layout.putConstraint(SpringLayout.WEST,txtPhoneNumber,panel,txtPhoneNumber);
}
项目:JavaMainRepo
文件:AddFrame.java
public AddFrame(String title) {
super(title);
contentPanel.setLayout(new GridLayout(0,0));
JPanel panel = new JPanel();
contentPanel.add(panel);
JPanel pan = new JPanel();
contentPanel.add(pan);
SpringLayout slPanel = new SpringLayout();
pan.setLayout(slPanel);
animalButton = new JButton("Animal");
slPanel.putConstraint(SpringLayout.norTH,animalButton,pan);
pan.add(animalButton);
employeeButton = new JButton("Employee");
slPanel.putConstraint(SpringLayout.norTH,employeeButton,100,pan);
pan.add(employeeButton);
JPanel rightPanel = new JPanel();
contentPanel.add(rightPanel);
setVisible(true);
}
项目:WOLFGANG
文件:AbstractPropertyCheckView.java
public void setUpGui() {
pnlProperty = new JPanel(new SpringLayout());
pnlProperty.add(getLabelHeadline());
pnlProperty.add(new jpopupmenu.Separator());
pnlProperty.add(getButtonErrorDetails());
pnlProperty.add(new jpopupmenu.Separator());
pnlProperty.add(getPanelSpecificFields());
SpringUtilities.makeCompactGrid(getPanelSpecificFields(),getPanelSpecificFields().getComponentCount(),0);
pnlProperty.add(new jpopupmenu.Separator());
int componentCount = pnlProperty.getComponentCount();
SpringUtilities.makeCompactGrid(pnlProperty,componentCount,0);
add(pnlProperty,BorderLayout.PAGE_START);
setMinimumSize(new Dimension((int) pnlProperty.getSize().getWidth(),(int) (lineHeight*componentCount)));
}
private JPanel getAdditionalPanel(){
SpringLayout layout = new SpringLayout();
additionalPanel = new JPanel(new BorderLayout());
additionalPanel.setPreferredSize(new Dimension(250,200));
JPanel topPanel = new JPanel(layout);
additionalPanel.add(topPanel,BorderLayout.norTH);
JLabel stereotypeLabel = new JLabel("Stereotype ");
stereotype = new ItComboBox();
stereotype.setEditable(true);
stereotype.addItem("");
stereotype.addItem("agent");
stereotype.addItem("utility");
stereotype.addItemListener(this);
topPanel.add(stereotypeLabel);
topPanel.add(stereotype);
SpringUtilities.makeCompactGrid(topPanel,5);
return additionalPanel;
}
项目:JavaMainRepo
文件:AFrame.java
public AFrame(String title) {
super(title);
contentPanel.setLayout(new GridLayout(0,pan);
pan.add(employeeButton);
JPanel rightPanel = new JPanel();
contentPanel.add(rightPanel);
setVisible(true);
}
项目:JavaMainRepo
文件:EmployeeFrame.java
/**
*
* @param title
* The title of the frame.
*/
public EmployeeFrame(final String title) {
super(title);
contentPanel.setLayout(new GridLayout(0,0));
JPanel pan = new JPanel();
contentPanel.add(pan);
SpringLayout slPanel = new SpringLayout();
pan.setLayout(slPanel);
Caretaker = new JButton("Caretaker");
slPanel.putConstraint(SpringLayout.norTH,Caretaker,180,280,pan);
pan.add(Caretaker);
JPanel panel_2 = new JPanel();
contentPanel.add(panel_2);
setVisible(true);
}
项目:ALTTPMenuPractice
文件:GameContainer.java
项目:Maxine-VM
文件:SpringUtilities.java
private static SpringLayout.Constraints getConstraintsForCell(
int row,int col,Container parent,int cols) {
SpringLayout layout = (SpringLayout) parent.getLayout();
Component c = parent.getComponent(row * cols + col);
return layout.getConstraints(c);
}
项目:jmt
文件:BlockingRegionGroupPanel.java
protected void initComponents() {
setLayout(new BorderLayout(10,10));
dialogPanel = new JPanel(new SpringLayout());
dialogPanel.setBorder(BorderFactory.createTitledBorder(new EtchedBorder(),"Select Member Classes"));
dialogPanel.setLayout(new BorderLayout(1,1));
table = new GroupEditTable();
dialogPanel.add(new WarningScrollTable(table,WARNING_CLASS));
add(dialogPanel,BorderLayout.CENTER);
}
项目:SpriteAnimator
文件:AnimationListDialog.java
private final void initialize() {
SpringLayout l = new SpringLayout();
this.setLayout(l);
this.setPreferredSize(D);
this.setMinimumSize(D);
Category[] v = Category.values();
AnimPanel[] catPanels = new AnimPanel[v.length];
for (int i = 0; i < v.length; i++) {
catPanels[i] = new AnimPanel(v[i],doThing);
}
PrettyBox<AnimPanel> catList = new PrettyBox<AnimPanel>(catPanels);
JPanel listWrap = new JPanel();
JScrollPane wrap = new JScrollPane(listWrap);
JPanel w = (JPanel) this.getContentPane();
l.putConstraint(norTH,catList,w);
l.putConstraint(EAST,w);
l.putConstraint(WEST,w);
w.add(catList);
l.putConstraint(norTH,wrap,catList);
l.putConstraint(SOUTH,catList);
l.putConstraint(WEST,catList);
w.add(wrap);
catList.addItemListener(
arg0 -> {
listWrap.removeAll();
listWrap.add((AnimPanel) catList.getSelectedItem());
this.revalidate();
this.repaint();
});
listWrap.add(catPanels[0]);
}
项目:JavaGraph
文件:TemplateList.java
public TemplateListEditor(GrammarModel grammar) {
super(grammar,new SpringLayout());
extractFromTemplates();
addHeaderText();
addListPanel();
addInfoPanel();
SpringUtilities.makeCompactGrid(this,3);
refresh();
}
项目:JavaGraph
文件:BugReportDialog.java
/**
* Create a bug reporting dialog.
* @param e the exception that caused the bug.
*/
public BugReportDialog(Throwable e) {
super((JFrame) null,DIALOG_TITLE,true);
setDefaultCloSEOperation(WindowConstants.DO_nothing_ON_CLOSE);
setResizable(false);
// Create the content panel,which is laid out as a single column.
// Add an empty space of 10 pixels between the dialog and the content
// panel.
JPanel dialogContent = new JPanel(new SpringLayout());
dialogContent.setBorder(BorderFactory.createEmptyBorder(10,10));
// Make sure that closeDialog is called whenever the dialog is closed.
addWindowListener(new WindowAdapter() {
@Override
public void windowClosing(WindowEvent we) {
closeDialog();
}
});
// Fill the dialog.
dialogContent.add(this.getErrorMessage());
dialogContent.add(this.getStackTracePane(e));
dialogContent.add(this.getButtonPanel());
// Put the panels in a CompactGrid layout.
SpringUtilities.makeCompactGrid(dialogContent,0);
// Add the dialogContent to the dialog.
add(dialogContent);
pack();
setVisible(true);
}
项目:JavaGraph
文件:ExplorationStatsDialog.java
/** Creates the dialog. */
public ExplorationStatsDialog(Simulator simulator,JFrame parent) {
super(parent,true);
setDefaultCloSEOperation(WindowConstants.DO_nothing_ON_CLOSE);
setResizable(false);
this.simulator = simulator;
// Create the content panel,10));
// Make sure that closeDialog is called whenever the dialog is closed.
addWindowListener(new WindowAdapter() {
@Override
public void windowClosing(WindowEvent we) {
closeDialog();
}
});
// Fill the dialog.
dialogContent.add(this.getInfoPane());
dialogContent.add(this.getButtonPanel());
// Put the panels in a CompactGrid layout.
SpringUtilities.makeCompactGrid(dialogContent,0);
// Add the dialogContent to the dialog.
add(dialogContent);
pack();
setLocationRelativeto(parent);
setVisible(true);
}
项目:gate-core
文件:SpringUtilities.java
private static SpringLayout.Constraints getConstraintsForCell(
int row,int cols) {
SpringLayout layout = (SpringLayout) parent.getLayout();
Component c = parent.getComponent(row * cols + col);
return layout.getConstraints(c);
}
项目:MaxSim
文件:SpringUtilities.java
private static SpringLayout.Constraints getConstraintsForCell(
int row,int cols) {
SpringLayout layout = (SpringLayout) parent.getLayout();
Component c = parent.getComponent(row * cols + col);
return layout.getConstraints(c);
}
private static SpringLayout.Constraints getConstraintsForCell(
int row,int cols) {
SpringLayout layout = (SpringLayout) parent.getLayout();
Component c = parent.getComponent(row * cols + col);
return layout.getConstraints(c);
}
/**
* Setups Glasspane with lightweight component returned by {@link SimpleOverlappingTestBase#getSwingComponent() }
* Called by base class.
*/
@Override
protected void prepareControls() {
wasLWClicked = false;
if(f != null) {
f.setVisible(false);
}
f = new JFrame("Mixing : Glasspane Overlapping test");
f.setLayout(new SpringLayout());
f.setSize(200,200);
propagateAWTControls(f);
f.getGlasspane().setVisible(true);
Container glasspane = (Container) f.getGlasspane();
glasspane.setLayout(null);
testedComponent = getSwingComponent();
if (useDefaultClickValidation) {
testedComponent.addMouseListener(new MouseAdapter() {
@Override
public void mouseClicked(MouseEvent e) {
//System.err.println("lw mouse clicked");
wasLWClicked = true;
}
});
}
testedComponent.setBounds(0,testedComponent.getPreferredSize().width,testedComponent.getPreferredSize().height);
glasspane.add(testedComponent);
f.setVisible(true);
}
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。