• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

about Gui combox's width?

 
jin Young
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!!!
 
Roberto Perillo
Bartender
Posts: 2271
3
Eclipse IDE Java Spring
  • 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: 2271
3
Eclipse IDE Java Spring
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic