本文整理了Java中java.awt.Label.setText()
方法的一些代码示例,展示了Label.setText()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Label.setText()
方法的具体详情如下:
包路径:java.awt.Label
类名称:Label
方法名:setText
暂无
代码示例来源:origin: wildfly/wildfly
private void showMsg(String msg) {
err_msg.setText(msg);
err_msg.setVisible(true);
}
代码示例来源:origin: wildfly/wildfly
public void viewAccepted(View v) {
List<Address> mbrs=v.getMembers();
System.out.println("View accepted: " + v);
member_size=v.size();
if(mbr_label != null)
mbr_label.setText(member_size + " mbr(s)");
members.clear();
members.addAll(mbrs);
}
代码示例来源:origin: wildfly/wildfly
public void viewAccepted(View v) {
if(v != null && mbr_label != null)
mbr_label.setText(v.size() + " mbr(s)");
if(panel != null)
panel.adjustNodes(v.getMembers());
}
代码示例来源:origin: wildfly/wildfly
panel.addMouseMotionListener(this);
setVisible(true);
mbr_label.setText(member_size + " mbrs");
graphics=panel.getGraphics();
selectColor();
代码示例来源:origin: net.imagej/ij
void updateLabels() {
label1.setText(""+((int)minHue));
label2.setText(""+((int)maxHue));
label3.setText(""+((int)minSat));
label4.setText(""+((int)maxSat));
label5.setText(""+((int)minBri));
label6.setText(""+((int)maxBri));
}
代码示例来源:origin: org.scijava/j3dutils
@Override
public void showStatus( String status ) {
if (label != null) {
label.setText(status);
}
}
代码示例来源:origin: google/sagetv
static void setSplashText(String x)
{
Label tempL = splashText;
if (tempL != null)
tempL.setText(x);
if (Sage.DBG) System.out.println("Splash: " + x);
SageTV.writeOutWatchdogFile();
}
代码示例来源:origin: apache/activemq-artemis
public void viewAccepted(View v) {
List<Address> mbrs=v.getMembers();
System.out.println("View accepted: " + v);
member_size=v.size();
if(mbr_label != null)
mbr_label.setText(member_size + " mbr(s)");
members.clear();
members.addAll(mbrs);
}
代码示例来源:origin: apache/activemq-artemis
public void viewAccepted(View v) {
List<Address> mbrs=v.getMembers();
System.out.println("View accepted: " + v);
member_size=v.size();
if(mbr_label != null)
mbr_label.setText(member_size + " mbr(s)");
members.clear();
members.addAll(mbrs);
}
代码示例来源:origin: org.apache.activemq/artemis-jms-client-all
public void viewAccepted(View v) {
List<Address> mbrs=v.getMembers();
System.out.println("View accepted: " + v);
member_size=v.size();
if(mbr_label != null)
mbr_label.setText(member_size + " mbr(s)");
members.clear();
members.addAll(mbrs);
}
代码示例来源:origin: apache/activemq-artemis
public void viewAccepted(View v) {
if (v != null) {
if (mbr_label != null)
mbr_label.setText(v.size() + " mbr(s)");
}
if(panel != null)
panel.adjustNodes(v.getMembers());
}
代码示例来源:origin: apache/activemq-artemis
public void viewAccepted(View v) {
if (v != null) {
if (mbr_label != null)
mbr_label.setText(v.size() + " mbr(s)");
}
if(panel != null)
panel.adjustNodes(v.getMembers());
}
代码示例来源:origin: net.imagej/ij
void updateSize() {
//double inSpacing = Tools.parseDouble(((TextField)fields.elementAt(0)).getText(),0.0);
double outSpacing = Tools.parseDouble(((TextField)fields.elementAt(0)).getText(),0.0);
int count = 0;
boolean lineSelection = fields.size()==2;
if (lineSelection) {
count = (int)Tools.parseDouble(((TextField)fields.elementAt(1)).getText(), 0.0);
if (count>0) makePolygon(count, outSpacing);
}
String size = getSize(inputZSpacing, outSpacing, count);
message.setText("Output Size: "+size);
}
代码示例来源:origin: org.apache.activemq/artemis-jms-client-all
public void viewAccepted(View v) {
if (v != null) {
if (mbr_label != null)
mbr_label.setText(v.size() + " mbr(s)");
}
if(panel != null)
panel.adjustNodes(v.getMembers());
}
代码示例来源:origin: net.imagej/ij
public static void update() {
if (gd!=null && gd.isShowing()) {
Vector choices = gd.getChoices();
if (choices==null || choices.size()<4)
return;
Choice counterChoice = (Choice)choices.elementAt(3);
int counter = getCounter();
int count = getCount(counter);
counterChoice.select(counter);
((Label)gd.getMessage()).setText(""+count);
}
}
代码示例来源: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: net.imagej/ij
public boolean dialogItemChanged(GenericDialog gd, AWTEvent e) {
if (IJ.isMacOSX()) IJ.wait(100);
if (slices1!=1) slices2 = gd.getNextBoolean()?slices1:1;
if (frames1!=1) frames2 = gd.getNextBoolean()?frames1:1;
keep = gd.getNextBoolean();
if (!IJ.isMacro()) staticKeep = keep;
((Label)gd.getMessage()).setText(getNewDimensions());
return true;
}
代码示例来源:origin: net.imagej/ij
public boolean dialogItemChanged(GenericDialog gd, AWTEvent e) {
if (IJ.isMacOSX()) IJ.wait(100);
if (channels1!=1) channels2 = gd.getNextBoolean()?channels1:1;
if (slices1!=1) slices2 = gd.getNextBoolean()?slices1:1;
if (frames1!=1) frames2 = gd.getNextBoolean()?frames1:1;
keep = gd.getNextBoolean();
((Label)gd.getMessage()).setText(getNewDimensions());
return true;
}
代码示例来源: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);
}
内容来源于网络,如有侵权,请联系作者删除!