• Post Reply Bookmark Topic Watch Topic
  • New Topic

JLabel problem  RSS feed

 
Indranil Guha Roy
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi guys,
i got some problem with putting the values into empty JLabel field.Following is the code segment.i am trying to put some values in empty JLabel field after retriving from database.it is retriving from database fine but not putting into JLabel field.

namet=new JLabel("",JLabel.CENTER);
aget=new JLabel(" ",JLabel.CENTER);
emailt=new JLabel(" ",JLabel.CENTER);

pane.add(namel);
pane.add(agel);
pane.add(email);

namet.setText(str3);
aget.setText(str4);
emailt.setText(str8);

plz help....
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Indranil Guha Roy,

This is a Servlet forum.
You might want to try the Swing forum.

-Ben
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!