• Post Reply Bookmark Topic Watch Topic
  • New Topic

Choice Button Problem

 
Peter Phung
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The list of choices in my choice button is very long, so part of it appears off screen. Does anyone know of a solution?
Thanks,
Pete.
p.s. i'm using jdk 1.0 for browser compatibility
------------------
"Reality is an illusion
brought on by a lack of
drink, drugs and smut"
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How many items do you have in your Choice? If you replaced it with a List component you don't have to worry about the menu going off the edge of the screen. ( I think they have fixed this problem in newer versions of Java by making the menu a fixed size and adding a scrollbar if there are more items. ) Also, you don't have to go with Java 1.0 for applets. Most browsers support 1.1, and you get quite a few more things in 1.1 than 1.0 ( more bugs fixed, 1.1 event model, etc. ).

-Nate
 
Peter Phung
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm programming in 1.0 because of the requirements of the company i'm doing my work placement with. They are using older versions of browsers so i'm forced to use 1.0. Do ypu know of any way to solve this problem?
------------------
"Reality is an illusion
brought on by a lack of
drink, drugs and smut"
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can't you replace the Choice with a List?
 
Peter Phung
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A list would screw up my layout if I make it obvious that it's a list, and the user may not understand what to do with it, if only one value is showing. I have however, been told that I can use Java 1.1 but i don't know if it will make a difference.

I would be grateful for any suggestions that you may have.
------------------
"Reality is an illusion
brought on by a lack of
drink, drugs and smut"
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the choice is only slightly going off the screen, you may be able to save some size by changing the size of the font of the Choice...


Otherwise, I would change my layout and use a List that displays more than one item...

-Nate
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!