aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes gridlayout with combo box Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "gridlayout with combo box" Watch "gridlayout with combo box" New topic
Author

gridlayout with combo box

Dustin Schreader
Ranch Hand

Joined: May 25, 2009
Posts: 74
I'm new to using gridlayout and combo boxs. I would like to get a combo box with three options, Saint Mary's hospital, Methodist, and both. Once an option is selected a search (textfield) will look through that certain list for certain names. This is what I have so far and I'm just trying to figure out how to get the combo box to appear.

Greg Brannon
Bartender

Joined: Oct 24, 2010
Posts: 563
And you're using this code you've found as a model? Explain how this code is related to what you're trying to do.

Explain what's wrong with the code you've posted, how it's not doing what you want, error messages received, and why you think that may be happening, and we can help you fix it.


Always learning Java, currently using Eclipse on Fedora.
Linux user#: 501795
Dustin Schreader
Ranch Hand

Joined: May 25, 2009
Posts: 74
ok well, I decided to go with a different format because I like the gui better. I copied it from another source so now i'm trying to figure out how to get the drop down box in the upper left side and I do not need a button, I would like to have SMH, RMH, Both used as the pavilion when they are selected without having to click an apply type of button.
Greg Brannon
Bartender

Joined: Oct 24, 2010
Posts: 563
Thanks for explaining that this isn't your code.

Why don't you try writing the code? There may be parts of what you've posted that you can use as examples for what will be in your program, including general guidance in how to code a GUI, but I recommend starting with your own program and adding what you need to it rather than taking someone else's code and modifying it to suit your needs, especially if you're trying to learn the language.

I'm not comfortable helping you modify someone else's code into something you'll call your own without knowing the originator is OK with it.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39828
    
  28
I think this question would sit better on our GUIs forum. Moving.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: gridlayout with combo box