• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

Frame call a JFrame

 
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello to all, I have a programe for two types of users, one (teachers) where I want to use jdk1.1.8, and the other 1.3. My question is depending on the login it will determine what frame is displayed. My principal applet is compiled in 1.1.8 and so is my teachers interface, but for my other users (students) I want to use swing.
I've try this, but not advanced.
This is basically what I'm trying to do ...
Applet --> Frame -> another Frame (teachers)
-> or JFrame (students)
 
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Perhaps the Strategy pattern . . .
You might want to watch out and not mix any AWT components with Swing components. The AWT ones are heavyweight and will stomp on the lightweight Swing components.
However if you are carefull not to mix them, then compile the final product in 1.3 even though parts of it were written in 1.1.8.
No wait . . . are you trying to avoid having your teachers download the plugin or something??
 
Philip Pross
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The problem isn't what version ..... yes thats what I'm trying to avoid (for the teachers to download the plugin)
Then again, I just came across another way ....
once the login I can open a new web page with the parameters for that user in the address.
ex : http://javaranch.com/mypage.html?userid=3 Then in my applet I can read the userid.
 
reply
    Bookmark Topic Watch Topic
  • New Topic