java.awt.Button.setSize()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(5.3k)|赞(0)|评价(0)|浏览(127)

本文整理了Java中java.awt.Button.setSize()方法的一些代码示例,展示了Button.setSize()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Button.setSize()方法的具体详情如下:
包路径:java.awt.Button
类名称:Button
方法名:setSize

Button.setSize介绍

暂无

代码示例

代码示例来源:origin: wildfly/wildfly

public UserInfoDialog(Frame parent) {
  super(parent, "Input", true);
  setLayout(null);
  l.setFont(default_font);
  l.setSize(50, 30);
  l.setLocation(30, 50);
  name.setFont(default_font);
  name.setSize(150, 30);
  name.setLocation(90, 50);
  //name.selectAll();
  ok.setFont(default_font);
  ok.setSize(50, 30);
  ok.setLocation(30, 90);

  add(l);    add(name); add(ok);
  ok.addActionListener(this);
  setSize(300, 150);
  Point my_loc=parent.getLocation();
  my_loc.x+=50;
  my_loc.y+=150;
  setLocation(my_loc);
  show();
}

代码示例来源:origin: org.jacorb/jacorb

/**
 * Return the DetailsButton property value.
 * @return java.awt.Button
 */
/* WARNING: THIS METHOD WILL BE REGENERATED. */
private java.awt.Button getDetailsButton() {
if (ivjDetailsButton == null) {
    try {
      ivjDetailsButton = new java.awt.Button();
      ivjDetailsButton.setName("DetailsButton");
      ivjDetailsButton.setLocation(33, 170);
      ivjDetailsButton.setBackground(java.awt.SystemColor.control);
      ivjDetailsButton.setSize(23, 23);
      ivjDetailsButton.setFont(new java.awt.Font("dialog", 0, 8));			
      ivjDetailsButton.setActionCommand("...");
      ivjDetailsButton.setLabel("...");
      // user code begin {1}
      // user code end
    } catch (java.lang.Throwable ivjExc) {
      // user code begin {2}
      // user code end
      handleException(ivjExc);
    }
};
return ivjDetailsButton;
}
/**

代码示例来源:origin: org.jacorb/jacorb

/**
 * Return the DetailsButton property value.
 * @return java.awt.Button
 */
/* WARNING: THIS METHOD WILL BE REGENERATED. */
private java.awt.Button getDetailsButton() {
if (ivjDetailsButton == null) {
    try {
      ivjDetailsButton = new java.awt.Button();
      ivjDetailsButton.setName("DetailsButton");
      ivjDetailsButton.setLocation(33, 170);
      ivjDetailsButton.setBackground(java.awt.SystemColor.control);
      ivjDetailsButton.setSize(23, 23);
      ivjDetailsButton.setFont(new java.awt.Font("dialog", 0, 8));			
      ivjDetailsButton.setActionCommand("...");
      ivjDetailsButton.setLabel("...");
      // user code begin {1}
      // user code end
    } catch (java.lang.Throwable ivjExc) {
      // user code begin {2}
      // user code end
      handleException(ivjExc);
    }
};
return ivjDetailsButton;
}
/**

代码示例来源:origin: apache/activemq-artemis

public UserInfoDialog(Frame parent) {
  super(parent, "Input", true);
  setLayout(null);
  l.setFont(default_font);
  l.setSize(50, 30);
  l.setLocation(30, 50);
  name.setFont(default_font);
  name.setSize(150, 30);
  name.setLocation(90, 50);
  //name.selectAll();
  ok.setFont(default_font);
  ok.setSize(50, 30);
  ok.setLocation(30, 90);

  add(l);    add(name); add(ok);
  ok.addActionListener(this);
  setSize(300, 150);
  Point my_loc=parent.getLocation();
  my_loc.x+=50;
  my_loc.y+=150;
  setLocation(my_loc);
  show();
}

代码示例来源:origin: org.apache.activemq/artemis-jms-client-all

public UserInfoDialog(Frame parent) {
  super(parent, "Input", true);
  setLayout(null);
  l.setFont(default_font);
  l.setSize(50, 30);
  l.setLocation(30, 50);
  name.setFont(default_font);
  name.setSize(150, 30);
  name.setLocation(90, 50);
  //name.selectAll();
  ok.setFont(default_font);
  ok.setSize(50, 30);
  ok.setLocation(30, 90);

  add(l);    add(name); add(ok);
  ok.addActionListener(this);
  setSize(300, 150);
  Point my_loc=parent.getLocation();
  my_loc.x+=50;
  my_loc.y+=150;
  setLocation(my_loc);
  show();
}

代码示例来源:origin: apache/activemq-artemis

public UserInfoDialog(Frame parent) {
  super(parent, "Input", true);
  setLayout(null);
  l.setFont(default_font);
  l.setSize(50, 30);
  l.setLocation(30, 50);
  name.setFont(default_font);
  name.setSize(150, 30);
  name.setLocation(90, 50);
  //name.selectAll();
  ok.setFont(default_font);
  ok.setSize(50, 30);
  ok.setLocation(30, 90);

  add(l);    add(name); add(ok);
  ok.addActionListener(this);
  setSize(300, 150);
  Point my_loc=parent.getLocation();
  my_loc.x+=50;
  my_loc.y+=150;
  setLocation(my_loc);
  show();
}

代码示例来源:origin: org.jboss.eap/wildfly-client-all

public UserInfoDialog(Frame parent) {
  super(parent, "Input", true);
  setLayout(null);
  l.setFont(default_font);
  l.setSize(50, 30);
  l.setLocation(30, 50);
  name.setFont(default_font);
  name.setSize(150, 30);
  name.setLocation(90, 50);
  //name.selectAll();
  ok.setFont(default_font);
  ok.setSize(50, 30);
  ok.setLocation(30, 90);

  add(l);    add(name); add(ok);
  ok.addActionListener(this);
  setSize(300, 150);
  Point my_loc=parent.getLocation();
  my_loc.x+=50;
  my_loc.y+=150;
  setLocation(my_loc);
  show();
}

代码示例来源:origin: org.jgroups/com.springsource.org.jgroups

public UserInfoDialog(Frame parent) {
super(parent, "Input", true);
setLayout(null);
l.setFont(default_font);
l.setSize(50, 30);
l.setLocation(30, 50);
name.setFont(default_font);
name.setSize(150, 30);
name.setLocation(90, 50);
//name.selectAll();
ok.setFont(default_font);
ok.setSize(50, 30);
ok.setLocation(30, 90);

add(l);    add(name); add(ok);
ok.addActionListener(this);
setSize(300, 150);
Point my_loc=parent.getLocation();
my_loc.x+=50;
my_loc.y+=150;
setLocation(my_loc);
show();
}

代码示例来源:origin: com.bbossgroups.rpc/bboss-rpc

public UserInfoDialog(Frame parent) {
super(parent, "Input", true);
setLayout(null);
l.setFont(default_font);
l.setSize(50, 30);
l.setLocation(30, 50);
name.setFont(default_font);
name.setSize(150, 30);
name.setLocation(90, 50);
//name.selectAll();
ok.setFont(default_font);
ok.setSize(50, 30);
ok.setLocation(30, 90);

add(l);    add(name); add(ok);
ok.addActionListener(this);
setSize(300, 150);
Point my_loc=parent.getLocation();
my_loc.x+=50;
my_loc.y+=150;
setLocation(my_loc);
show();
}

相关文章