本文整理了Java中java.awt.Label.setLocation()
方法的一些代码示例,展示了Label.setLocation()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Label.setLocation()
方法的具体详情如下:
包路径:java.awt.Label
类名称:Label
方法名:setLocation
暂无
代码示例来源: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 LifespanNameLabel property value.
* @return java.awt.Label
*/
/* WARNING: THIS METHOD WILL BE REGENERATED. */
private java.awt.Label getLifespanNameLabel() {
if (ivjLifespanNameLabel == null) {
try {
ivjLifespanNameLabel = new java.awt.Label();
ivjLifespanNameLabel.setName("LifespanNameLabel");
ivjLifespanNameLabel.setLocation(new java.awt.Point(1, 14));
ivjLifespanNameLabel.setText(" Lifespan");
ivjLifespanNameLabel.setBackground(java.awt.SystemColor.control);
ivjLifespanNameLabel.setFont(new java.awt.Font("dialog", 2, 10));
ivjLifespanNameLabel.setBounds(new java.awt.Rectangle(1, 14, 100, 12));
ivjLifespanNameLabel.setBounds(1, 14, 100, 12);
// user code begin {1}
// user code end
} catch (java.lang.Throwable ivjExc) {
// user code begin {2}
// user code end
handleException(ivjExc);
}
}
return ivjLifespanNameLabel;
}
/**
代码示例来源:origin: org.jacorb/jacorb
/**
* Return the RequestProcessingValueLabel property value.
* @return java.awt.Label
*/
/* WARNING: THIS METHOD WILL BE REGENERATED. */
private java.awt.Label getRequestProcessingValueLabel() {
if (ivjRequestProcessingValueLabel == null) {
try {
ivjRequestProcessingValueLabel = new java.awt.Label();
ivjRequestProcessingValueLabel.setName("RequestProcessingValueLabel");
ivjRequestProcessingValueLabel.setLocation(new java.awt.Point(102, 66));
ivjRequestProcessingValueLabel.setText(" USE_ACTIVE_OBJECT_MAP_ONLY");
ivjRequestProcessingValueLabel.setBackground(java.awt.SystemColor.control);
ivjRequestProcessingValueLabel.setFont(new java.awt.Font("dialog", 0, 10));
ivjRequestProcessingValueLabel.setBounds(new java.awt.Rectangle(102, 66, 179, 12));
ivjRequestProcessingValueLabel.setBounds(102, 66, 179, 12);
// user code begin {1}
// user code end
} catch (java.lang.Throwable ivjExc) {
// user code begin {2}
// user code end
handleException(ivjExc);
}
}
return ivjRequestProcessingValueLabel;
}
Label _getServantRetentionLabel() {
代码示例来源:origin: org.jacorb/jacorb
/**
* Return the ThreadNameLabel property value.
* @return java.awt.Label
*/
/* WARNING: THIS METHOD WILL BE REGENERATED. */
private java.awt.Label getThreadNameLabel() {
if (ivjThreadNameLabel == null) {
try {
ivjThreadNameLabel = new java.awt.Label();
ivjThreadNameLabel.setName("ThreadNameLabel");
ivjThreadNameLabel.setLocation(new java.awt.Point(1, 1));
ivjThreadNameLabel.setText(" Thread");
ivjThreadNameLabel.setBackground(java.awt.SystemColor.control);
ivjThreadNameLabel.setFont(new java.awt.Font("dialog", 2, 10));
ivjThreadNameLabel.setBounds(new java.awt.Rectangle(1, 1, 100, 12));
ivjThreadNameLabel.setBounds(1, 1, 100, 12);
// user code begin {1}
// user code end
} catch (java.lang.Throwable ivjExc) {
// user code begin {2}
// user code end
handleException(ivjExc);
}
}
return ivjThreadNameLabel;
}
/**
代码示例来源:origin: org.jacorb/jacorb
/**
* Return the LifespanValueLabel property value.
* @return java.awt.Label
*/
/* WARNING: THIS METHOD WILL BE REGENERATED. */
private java.awt.Label getLifespanValueLabel() {
if (ivjLifespanValueLabel == null) {
try {
ivjLifespanValueLabel = new java.awt.Label();
ivjLifespanValueLabel.setName("LifespanValueLabel");
ivjLifespanValueLabel.setLocation(new java.awt.Point(102, 14));
ivjLifespanValueLabel.setText(" TRANSIENT");
ivjLifespanValueLabel.setBackground(java.awt.SystemColor.control);
ivjLifespanValueLabel.setFont(new java.awt.Font("dialog", 0, 10));
ivjLifespanValueLabel.setBounds(new java.awt.Rectangle(102, 14, 179, 12));
ivjLifespanValueLabel.setBounds(102, 14, 179, 12);
// user code begin {1}
// user code end
} catch (java.lang.Throwable ivjExc) {
// user code begin {2}
// user code end
handleException(ivjExc);
}
}
return ivjLifespanValueLabel;
}
Label _getRequestProcessingLabel() {
代码示例来源:origin: org.jacorb/jacorb
/**
* Return the RequestProcessingNameLabel property value.
* @return java.awt.Label
*/
/* WARNING: THIS METHOD WILL BE REGENERATED. */
private java.awt.Label getRequestProcessingNameLabel() {
if (ivjRequestProcessingNameLabel == null) {
try {
ivjRequestProcessingNameLabel = new java.awt.Label();
ivjRequestProcessingNameLabel.setName("RequestProcessingNameLabel");
ivjRequestProcessingNameLabel.setLocation(new java.awt.Point(1, 66));
ivjRequestProcessingNameLabel.setText(" Request Processing");
ivjRequestProcessingNameLabel.setBackground(java.awt.SystemColor.control);
ivjRequestProcessingNameLabel.setFont(new java.awt.Font("dialog", 2, 10));
ivjRequestProcessingNameLabel.setBounds(new java.awt.Rectangle(1, 66, 100, 12));
ivjRequestProcessingNameLabel.setBounds(1, 66, 100, 12);
// user code begin {1}
// user code end
} catch (java.lang.Throwable ivjExc) {
// user code begin {2}
// user code end
handleException(ivjExc);
}
}
return ivjRequestProcessingNameLabel;
}
/**
代码示例来源:origin: org.jacorb/jacorb
/**
* Return the ServantRetentionNameLabel property value.
* @return java.awt.Label
*/
/* WARNING: THIS METHOD WILL BE REGENERATED. */
private java.awt.Label getServantRetentionNameLabel() {
if (ivjServantRetentionNameLabel == null) {
try {
ivjServantRetentionNameLabel = new java.awt.Label();
ivjServantRetentionNameLabel.setName("ServantRetentionNameLabel");
ivjServantRetentionNameLabel.setLocation(new java.awt.Point(1, 53));
ivjServantRetentionNameLabel.setText(" Servant Retention");
ivjServantRetentionNameLabel.setBackground(java.awt.SystemColor.control);
ivjServantRetentionNameLabel.setFont(new java.awt.Font("dialog", 2, 10));
ivjServantRetentionNameLabel.setBounds(new java.awt.Rectangle(1, 53, 100, 12));
ivjServantRetentionNameLabel.setBounds(1, 53, 100, 12);
// user code begin {1}
// user code end
} catch (java.lang.Throwable ivjExc) {
// user code begin {2}
// user code end
handleException(ivjExc);
}
}
return ivjServantRetentionNameLabel;
}
/**
代码示例来源:origin: org.jacorb/jacorb
/**
* Return the IdUniquenessNameLabel property value.
* @return java.awt.Label
*/
/* WARNING: THIS METHOD WILL BE REGENERATED. */
private java.awt.Label getIdUniquenessNameLabel() {
if (ivjIdUniquenessNameLabel == null) {
try {
ivjIdUniquenessNameLabel = new java.awt.Label();
ivjIdUniquenessNameLabel.setName("IdUniquenessNameLabel");
ivjIdUniquenessNameLabel.setLocation(new java.awt.Point(1, 27));
ivjIdUniquenessNameLabel.setText(" ID Uniqueness");
ivjIdUniquenessNameLabel.setBackground(java.awt.SystemColor.control);
ivjIdUniquenessNameLabel.setFont(new java.awt.Font("dialog", 2, 10));
ivjIdUniquenessNameLabel.setBounds(new java.awt.Rectangle(1, 27, 100, 12));
ivjIdUniquenessNameLabel.setBounds(1, 27, 100, 12);
// user code begin {1}
// user code end
} catch (java.lang.Throwable ivjExc) {
// user code begin {2}
// user code end
handleException(ivjExc);
}
}
return ivjIdUniquenessNameLabel;
}
/**
代码示例来源:origin: org.jacorb/jacorb
/**
* Return the TitleLabel property value.
* @return java.awt.Label
*/
/* WARNING: THIS METHOD WILL BE REGENERATED. */
private java.awt.Label getTitleLabel() {
if (ivjTitleLabel == null) {
try {
ivjTitleLabel = new java.awt.Label();
ivjTitleLabel.setName("TitleLabel");
ivjTitleLabel.setLocation(new java.awt.Point(12, 8));
ivjTitleLabel.setText("Policies:");
ivjTitleLabel.setBackground(java.awt.SystemColor.control);
ivjTitleLabel.setForeground(new java.awt.Color(0,0,0));
ivjTitleLabel.setBounds(new java.awt.Rectangle(12, 8, 52, 23));
ivjTitleLabel.setBounds(12, 8, 52, 23);
// user code begin {1}
// user code end
} catch (java.lang.Throwable ivjExc) {
// user code begin {2}
// user code end
handleException(ivjExc);
}
}
return ivjTitleLabel;
}
/**
代码示例来源:origin: org.jacorb/jacorb
public void setAvgValue(int value) {
if (avg == value) return;
avg = value;
if (useAvg) {
getFillLevelCanvas().setAvg(avg);
getAvgLabel().setLocation(23, getFillLevelCanvas().getYAvg()+6);
getAvgLabel().setText(""+avg);
}
}
public void setCurrentValue(int value) {
代码示例来源:origin: org.jacorb/jacorb
public void setMaxValue(int value) {
if (max == value) return;
max = value;
getFillLevelCanvas().setMax(max);
if (useAvg) {
getAvgLabel().setLocation(23, getFillLevelCanvas().getYAvg()+6);
}
getMaxLabel().setText(""+max);
}
public void setMinValue(int value) {
代码示例来源:origin: org.jacorb/jacorb
/**
* Return the Label1 property value.
* @return java.awt.Label
*/
/* WARNING: THIS METHOD WILL BE REGENERATED. */
private java.awt.Label getLabel1() {
if (ivjLabel1 == null) {
try {
ivjLabel1 = new java.awt.Label();
ivjLabel1.setName("Label1");
ivjLabel1.setLocation(10, 10);
ivjLabel1.setText("Active Object");
ivjLabel1.setBackground(java.awt.SystemColor.control);
ivjLabel1.setSize(70, 12);
ivjLabel1.setForeground(java.awt.Color.black);
ivjLabel1.setFont(new java.awt.Font("dialog", 2, 10));
ivjLabel1.setAlignment(1);
// user code begin {1}
// user code end
} catch (java.lang.Throwable ivjExc) {
// user code begin {2}
// user code end
handleException(ivjExc);
}
};
return ivjLabel1;
}
/**
代码示例来源:origin: org.jacorb/jacorb
public void setMinValue(int value) {
if (min == value) return;
min = value;
getFillLevelCanvas().setMin(min);
if (useAvg) {
getAvgLabel().setLocation(23, getFillLevelCanvas().getYAvg()+6);
}
getFillLevelCanvas().setCurrent(cur > min ? cur-min : 0);
getMinLabel().setText(""+min);
}
代码示例来源:origin: org.jacorb/jacorb
public void init(int _min, int _avg, int _max, java.awt.Color _color1, java.awt.Color _color2, boolean _useAvg, boolean _isVariable) {
min = _min;
avg = _avg;
max = _max;
useAvg = _useAvg;
getFillLevelCanvas().init(min, avg, max, _color1, _color2, useAvg);
isVariable = _isVariable;
if (useAvg) {
getAvgLabel().setText(""+_avg);
getAvgLabel().setLocation(23, getFillLevelCanvas().getYAvg()+6);
}
getMaxLabel().setText(""+_max);
getMinLabel().setText(""+_min);
getCurLabel().setText(""+_min);
}
/**
代码示例来源: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.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();
}
代码示例来源: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();
}
内容来源于网络,如有侵权,请联系作者删除!