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.
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
Joined: May 25, 2009
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.
Joined: Oct 24, 2010
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.