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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

I paid SUN $200 to tell me why panels overlap...

 
Ranch Hand
Posts: 277
  • Mark post as helpful
  • send pies
  • Report post to moderator
They gave me a list of links to read up on.
I have worked 3 days and night and tried about a dozen variations. The headache is killing me.
Nothing !
The data comes back from the database. The SUN links (worth $200) waffle on.
Still Nothing !
Sheer mind bending frustration.
Some guy told me over the phone : "... oh it's only a minor thing..." , but what minor thing ?
What would stop them from overlapping ?
Why don't gridx and gridy work - might as well not be there for all the effect they have.

***********
Wonder whether it could be the HTML tag <APPLET...width height...>

***********
Hmmm, changing the width/height parameters in the html APPLET tag seems to force the panels to re-align...
However there seems to be nothing I can do to align them correctly.
[ December 11, 2002: Message edited by: achana chan ]
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
  • Report post to moderator
It would really help if you described exactly what you are trying to do... It sounds like you are working on an Applet, but are Panels inside the Applet overlapping, or is the Applet overlapping with content in the web page?

Some code describing your layout (if you're having problems with internal layout) would be very helpful in addressing the problem.
 
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
  • Report post to moderator
Nathan,
I think it is in reference to this thread.
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
  • Report post to moderator
Yep... I just saw it and thought I would put a link there too...

achana,
Another question I have is what JDK are you developing in, and what JDK are you running in... is the applet running in a default browser JDK? Try running the applet GUI inside a Frame and see if the layout gets fixed... there may be an issue with the browser's JDK implementation...

If the code in the other post is what you are talking about here, when I originally ran it with small modifications (to get it to run in a frame, and to not require classes that weren't included), it looks something like this :



If you uncomment the line in the ClientInfo class that sets GridBagLayout (like Chantel suggests in the other thread), you get something like this :



Does this help you any?

Since this thread deals specifically with the other one, I'm going to close this thread, and any future comments should be directed at the other one.
[ December 12, 2002: Message edited by: Nathan Pruett ]
 
I’m tired of walking, and will rest for a minute and grow some wheels. This is the promise of this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic