Jump to content

Figuring out JApplet structure

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
4 replies to this topic

#1
denarced

denarced

    Programmer

  • Members
  • PipPipPipPip
  • 182 posts
So here's how I plan to do it:
JApplet with BorderLayout
BorderLayout.NORTH has a couple of buttons
BorderLayout.CENTER has a JPanel with CardLayout

So what's my problem ?

CardLayout consists of unique cards, which in this case are different screens of my applet-cellphone. It is necessary for any single "card" to be able to change another card to be visible. I tried giving each card it's own actionlistener but it gets complicated and fast.

Does anyone know this kind of situation?
Seems like this is a normal kind of problem since a lot of programs have different "screens" ?

As always, help is much appreciated

#2
Turk4n

Turk4n

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 3,847 posts
Well smartest would be to visit my tutorial...

My tutorial
http://forum.codecal...le-version.html

Or take a view inside Javas API library !
JApplet (Java 2 Platform SE v1.4.2)
BorderLayout (Java 2 Platform SE v1.4.2)
Posted Image

#3
denarced

denarced

    Programmer

  • Members
  • PipPipPipPip
  • 182 posts

Turk4n said:

Well smartest would be to visit my tutorial...

My tutorial
http://forum.codecal...le-version.html

Or take a view inside Javas API library !
JApplet (Java 2 Platform SE v1.4.2)
BorderLayout (Java 2 Platform SE v1.4.2)

hmm .. is there a reason for the links to version 1.4.2 .. personally I always use the latest version ..
and yeah, I checked your tutorial .. nothing new there
even thou I noticed the sarcasm btw

#4
Turk4n

Turk4n

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 3,847 posts

denarced said:

hmm .. is there a reason for the links to version 1.4.2 .. personally I always use the latest version ..
and yeah, I checked your tutorial .. nothing new there
even thou I noticed the sarcasm btw

Well, the JApplet and Borderlayout is a "thing" from the 1.4.2 JDK, even if you use the newer the old ones are still useful plus no new JApplet or Borderlayout things within the newer JDK's only improvement and enhancements(speed most and durability).

P.S - I didn't make any sarcasm, just your imagination...
D.S - I suggested my tutorial as reference due to I have no clue what or whatever so your gonna do or so. Hence my clueless sentences...
Posted Image

#5
denarced

denarced

    Programmer

  • Members
  • PipPipPipPip
  • 182 posts

Turk4n said:

Well, the JApplet and Borderlayout is a "thing" from the 1.4.2 JDK, even if you use the newer the old ones are still useful plus no new JApplet or Borderlayout things within the newer JDK's only improvement and enhancements(speed most and durability).

P.S - I didn't make any sarcasm, just your imagination...
D.S - I suggested my tutorial as reference due to I have no clue what or whatever so your gonna do or so. Hence my clueless sentences...

hah, no sarcasm .. my mistake .. can't remember the last time I made a mistake concerning sarcasm .. hopefully last thou ..

anyway, I solved this problem on my own. I'll try and represent the solution here for future reference when I have the time