Win a copy of AWS Security this week in the Cloud/Virtualization forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

about Gui combox's width?

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,ranches,prolem come again.
At first, i planed to user textfield as the search condition fileld "Name" and "Location". Recently, i searched some archived topics, also see some ranches user the combox as search condition.
Then the problem comes.That is both "Name" and "Location" has length of 64.In the future, mybe name and/or location with 64 chars, JCombobox seems it can not set width, the width will be the largest item.If i place the two comboxes to one line, when these speacial data , the GUI will be very strange, would any rancher will give me some idea?

Thanks in advance!!!
 
Bartender
Posts: 2292
3
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, I have one idea: use JTextField!
 
jin Young
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Roberto,
Thanks a lot for your quick response.
When i start to work one the assignment, I plan to user JTextField as your advice. According to the data, I thought it will be a better solution using JCombox. Also, I found JCombox solution here.
How they resolved this problem?


Thanks again.
 
Roberto Perillo
Bartender
Posts: 2292
3
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey, my buddy.

I thought it will be a better solution using JCombox.



Hum... I don't really know how the problem you addressed was solved; I didn't go through this since I used JTextFields. But... what if the database to be used in production (let's suppose this is a real scenario) has, like, 500,000 records? In terms of GUI, in my opinion, having a JComboBox would not be a very good solution...
 
jin Young
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Roberto,

Thanks for you kindy reply.It will be my solution.
 
I was her plaything! And so was this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic