本文整理了Java中java.awt.Button.setBounds()
方法的一些代码示例,展示了Button.setBounds()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Button.setBounds()
方法的具体详情如下:
包路径:java.awt.Button
类名称:Button
方法名:setBounds
暂无
代码示例来源:origin: wildfly/wildfly
err_msg.setForeground(Color.red);
err_msg.setVisible(false);
get.setBounds(new Rectangle(10, 250, 80, 30));
set.setBounds(new Rectangle(100, 250, 80, 30));
quit.setBounds(new Rectangle(190, 250, 80, 30));
get_all.setBounds(new Rectangle(280, 250, 80, 30));
代码示例来源:origin: IanDarwin/javasrc
/** main method */
public static void main(String[] argv) {
System.out.println("An Object\t" + new Object());
System.out.println("A Date \t" + new Date());
System.out.println("A GregorianCalendar\t" + new GregorianCalendar());
System.out.println("An Exception\t" + new Exception("Hi!"));
Button b = new Button("Push ME!"); // An AWT pushbutton
b.setBounds(40, 50, 120, 60); // explained in the AWT chapter!
System.out.println("A Button\t" + b);
System.out.println("A ShowToString object!\t" + new ShowToString());
}
}
代码示例来源:origin: stackoverflow.com
for(int j = 0; j < numOfRows; j++){
button = new Button(shell, SWT.NONE);
button.setBounds(x, y, buttonWidth, buttonHeight);
x += buttonWidth;
代码示例来源:origin: apache/activemq-artemis
err_msg.setForeground(Color.red);
err_msg.setVisible(false);
get.setBounds(new Rectangle(10, 250, 80, 30));
set.setBounds(new Rectangle(100, 250, 80, 30));
quit.setBounds(new Rectangle(190, 250, 80, 30));
get_all.setBounds(new Rectangle(280, 250, 80, 30));
代码示例来源:origin: apache/activemq-artemis
err_msg.setForeground(Color.red);
err_msg.setVisible(false);
get.setBounds(new Rectangle(10, 250, 80, 30));
set.setBounds(new Rectangle(100, 250, 80, 30));
quit.setBounds(new Rectangle(190, 250, 80, 30));
get_all.setBounds(new Rectangle(280, 250, 80, 30));
代码示例来源:origin: org.jacorb/jacorb
/**
* Return the ShowButton property value.
* @return java.awt.Button
*/
/* WARNING: THIS METHOD WILL BE REGENERATED. */
private java.awt.Button getShowButton() {
if (ivjShowButton == null) {
try {
ivjShowButton = new java.awt.Button();
ivjShowButton.setName("ShowButton");
ivjShowButton.setBounds(27, 384, 90, 23);
ivjShowButton.setLabel("Show Console");
// user code begin {1}
// user code end
} catch (java.lang.Throwable ivjExc) {
// user code begin {2}
// user code end
handleException(ivjExc);
}
};
return ivjShowButton;
}
/**
代码示例来源:origin: org.apache.activemq/artemis-jms-client-all
err_msg.setForeground(Color.red);
err_msg.setVisible(false);
get.setBounds(new Rectangle(10, 250, 80, 30));
set.setBounds(new Rectangle(100, 250, 80, 30));
quit.setBounds(new Rectangle(190, 250, 80, 30));
get_all.setBounds(new Rectangle(280, 250, 80, 30));
代码示例来源:origin: org.jboss.eap/wildfly-client-all
err_msg.setForeground(Color.red);
err_msg.setVisible(false);
get.setBounds(new Rectangle(10, 250, 80, 30));
set.setBounds(new Rectangle(100, 250, 80, 30));
quit.setBounds(new Rectangle(190, 250, 80, 30));
get_all.setBounds(new Rectangle(280, 250, 80, 30));
代码示例来源:origin: org.jgroups/com.springsource.org.jgroups
err_msg.setForeground(Color.red);
err_msg.setVisible(false);
get.setBounds(new Rectangle(10, 250, 80, 30));
set.setBounds(new Rectangle(100, 250, 80, 30));
quit.setBounds(new Rectangle(190, 250, 80, 30));
get_all.setBounds(new Rectangle(280, 250, 80, 30));
代码示例来源:origin: com.bbossgroups.rpc/bboss-rpc
err_msg.setForeground(Color.red);
err_msg.setVisible(false);
get.setBounds(new Rectangle(10, 250, 80, 30));
set.setBounds(new Rectangle(100, 250, 80, 30));
quit.setBounds(new Rectangle(190, 250, 80, 30));
get_all.setBounds(new Rectangle(280, 250, 80, 30));
代码示例来源:origin: annmuor/jnode
save.setBounds(insets.left+100, insets.top+240, 90, 30);
close.setBounds(insets.left+300, insets.top+240, 90, 30);
add(save);
add(close);
代码示例来源:origin: org.ghost4j/ghost4j
item.setBounds(WIDTH / 4, ROW3, 2 * WIDTH / 3, 20);
add(load = new Button("Load"));
load.setBounds(WIDTH / 3, ROW4, WIDTH / 3, 25);
load.addActionListener(this);
add(status = new TextField("ready to load proxy"));
内容来源于网络,如有侵权,请联系作者删除!