Click here to Skip to main content
15,901,666 members

Survey Results

Are you a current, past or future Java developer?   [Edit]

Survey period: 7 Apr 2008 to 21 Apr 2008

Coming or going? Entrenched or just wandering by?

OptionVotes% 
I'm just starting Java4716.85
I'm currently developing exclusively in Java145.02
I'm developing in Java as well as other technologies7627.24
I'm moving away from Java11139.78
I'm not a developer. I'm just lurking.3111.11



 
Generaltrying to add a JLabel to a custom JPanel Pin
thecodedemon16-Apr-08 20:42
thecodedemon16-Apr-08 20:42 
I'm trying to add a new JLabel to a custom JPanel, from a method within the JPanel itself. Problem is, while debugging, I can see the label in the components list, but it isn't displayed on the panel itself. Below is the method that should be adding the label. Can anyone see or explain why this isn't working right?


<br />
public void AddText( String text )<br />
{<br />
    JLabel newText = new JLabel( text );<br />
<br />
    // new label is made, add it to the display and the internal list<br />
    if( Fselect )<br />
    {<br />
        this.TextListFRONT.add( newText );<br />
    }<br />
    else if( Bselect )<br />
    {<br />
        this.TextListBACK.add( newText );<br />
    }<br />
       <br />
    this.add( newText, BorderLayout.CENTER );<br />
    this.validate();<br />
<br />
}<br />


A soft glow comes from the pit in the darkness.
The clicking noise become faster - and louder.
A wind begins to stir up from the pit, as the
creature flexes it's wings, preparing for flight.
You stare into the pit, and hear a voice say
in your mind, "If you survive the encounter,
declare it to the world."

The Code Demon Rises.

GeneralPoll moved Pin
Chris Maunder14-Apr-08 4:17
cofounderChris Maunder14-Apr-08 4:17 
GeneralLike everyone else said Pin
Christian Graus14-Apr-08 3:24
protectorChristian Graus14-Apr-08 3:24 
QuestionPoll for the wrong website Pin
Christian Wulff13-Apr-08 23:51
Christian Wulff13-Apr-08 23:51 
GeneralRe: Poll for the wrong website Pin
David Lane14-Apr-08 1:31
David Lane14-Apr-08 1:31 
GeneralRe: Poll for the wrong website Pin
toxcct14-Apr-08 1:43
toxcct14-Apr-08 1:43 
GeneralRe: Poll for the wrong website Pin
toxcct14-Apr-08 1:42
toxcct14-Apr-08 1:42 
Generalthis poll sucks Pin
izmoto13-Apr-08 22:19
izmoto13-Apr-08 22:19 
GeneralNever too late to add the missing option Pin
warlie13-Apr-08 22:03
warlie13-Apr-08 22:03 
GeneralRe: Never too late to add the missing option Pin
#realJSOP14-Apr-08 2:47
professional#realJSOP14-Apr-08 2:47 
GeneralRe: Never too late to add the missing option Pin
tgrt14-Apr-08 2:55
tgrt14-Apr-08 2:55 
GeneralRe: Never too late to add the missing option Pin
PSU Steve14-Apr-08 3:07
professionalPSU Steve14-Apr-08 3:07 
GeneralRe: Never too late to add the missing option Pin
Rachel Mant14-Apr-08 3:21
Rachel Mant14-Apr-08 3:21 
GeneralRe: Never too late to add the missing option Pin
Todd Gibson14-Apr-08 3:40
Todd Gibson14-Apr-08 3:40 
GeneralRe: Never too late to add the missing option Pin
ghle14-Apr-08 4:08
ghle14-Apr-08 4:08 
GeneralRe: Never too late to add the missing option Pin
GibbleCH14-Apr-08 4:15
GibbleCH14-Apr-08 4:15 
GeneralRe: Never too late to add the missing option Pin
azizi_ra21-Apr-08 19:44
azizi_ra21-Apr-08 19:44 
GeneralI didn't and don't develop in Java and probably won't in the future... Pin
M.Vo.13-Apr-08 21:53
M.Vo.13-Apr-08 21:53 
GeneralPreviously used java Pin
WillemM13-Apr-08 20:44
WillemM13-Apr-08 20:44 
GeneralNO Pin
ghle13-Apr-08 20:12
ghle13-Apr-08 20:12 
GeneralRe: NO Pin
Member 393854813-Apr-08 20:57
Member 393854813-Apr-08 20:57 
GeneralRe: NO Pin
ed welch13-Apr-08 21:14
ed welch13-Apr-08 21:14 
GeneralRe: NO Pin
toxcct14-Apr-08 1:47
toxcct14-Apr-08 1:47 
GeneralMissing option Pin
tosch13-Apr-08 19:45
tosch13-Apr-08 19:45 
GeneralRe: Missing option Pin
BadKarma13-Apr-08 20:40
BadKarma13-Apr-08 20:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.