Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!
    Bookmark Topic Watch Topic
  • New Topic

Urgent application ok .....applet not ok  RSS feed

Posts: 8
  • Mark post as helpful
  • send pies
  • Report post to moderator

Any of you guru's have an idea about the following.
by the way...just passed the SCJP with 88% but it hasnt helped me with this monkey:-(

Ive been developing a program that gives the user a tree structure on the left hand side of the display and depending on what they select from this tree, a different set of options on the rhs.

The problem is..... it all works fine as an application.
But when i deliver it as an applet i have the following problems on the rhs of the display.

1) Jtextfields are NOT editable??? i can click on them and they seem to get focus but cant edit the dam things.
2) the background colo(u)r for the jPanels, JTextField, Combi Boxes etc are all grey in the applet only. To overcome this I have to explicitly setOpaque to false for every component.

As I have works fine as an application.

I have been randomly repainting things in different ways with no luck.

I cant help thinking this is one of those one liners that'll fix everything.

Anyone got any ideas???

Got to deliver this in 26 1/2 hours.....doh.

Thats 1/2 hour gone.........26 hour till i get fried:-/

Please help ASAP

Many thanks

ps using removeAll, the add(JPanelWithNewDisplayStuff)
Then various combinations of validate revalidate paint repaint to update the display.
Posts: 9469
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please don't crosspost.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!