• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Address Bar Component

 
Ranch Hand
Posts: 296
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The typical web browser has an address bar which allows you to view sites you have previously visited by clicking the arrow at the end of the bar.
This looks like a combination text field and choice(combo box) to me.
Is it possible to create this component in Java with the AWT?
Has it been done already?
I assume that a JComboBox doesn't really have this ability, but I don't do much Swing anyway.
Drew
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you are using SWING just use an Editable JComboBox. But in AWT I am not sure.
 
Drew Lane
Ranch Hand
Posts: 296
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No, I'm not using Swing. It really needs to be AWT for what I'm doing.
But just out of curiosity, if I make the JComboBox editable, does that make ALL the selections editable or just the first?
Drew
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The only part that is editable is what is selected. So basically, everything is editable. But it has to be selected. Just like the Address Bar of IE/Netscape/Mozilla/etc.
 
reply
    Bookmark Topic Watch Topic
  • New Topic