Applet revalidate

Joined
Nov 26, 2008
Messages
1
Reaction score
0
Hi,

I want to put something I wrote online as an Applet, but when I want to revalidate the Applet, it won't work...

Code:
public class Vergaderingen extends JApplet implements ActionListener{
....
public void init(){
        hoofdPaneel = new JPanel();
        add(hoofdPaneel);
        fillPaswoordPaneel();
}

public void fillPaswoordPaneel(){
        paswoordPaneel = new JPanel();
        paswoordPaneel.setLayout(new GridBagLayout());
        ....
        hoofdPaneel.add(paswoordPaneel);
        setSize(new Dimension(600,600));
}

//After the password and username are correctly put in, fillInhoudPaneel is called:
public void fillInhoudPaneel(){
        JPanel inhoudPaneel = new JPanel();
        inhoudPaneel.setLayout(new GridBagLayout());
        ....
        ....
        hoofdPaneel.remove(0);
        hoofdPaneel.add(inhoudPaneel);
        hoofdPaneel.repaint();
        hoofdPaneel.revalidate();
}
The last part seems a little bad, but it's the only way I was able to make it work on eclipse. But it still doesn't work online.... Any ideas?

I'd like to give you the url of the applet, but since I can't post it, PM me if you want it :) (if I can even post it on a PM)


Thanks in advance!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,222
Members
46,809
Latest member
moe77

Latest Threads

Top