Well see, how does "how do I display x num components after an event" relate to "Can you group textboxes?" ?
Create a JPanel that is to hold these "textboxes" and place it on the GUI at the beginning.
Write a selection listener, and add it to the listbox, that then removes all components from that Panel and adds the "proper number" of text boxes to it, then calls validate() and/or repaint() on that panel.
no FW, sure by using validate() for addOns/removes JComponents on most cases works, but correct way is revalidate()...(revalidate covered validate too), in proofApp's you have to be care and hold this rule, hmmm for example some JComponents doesn't works correctly and as you expected (JComboBox missing data from custom JList ....) and other nice stars on this heavens
if you remove or add new JComponents to the Container
if you want to modified Container or its Components, and if Container and its JComponents are placed by using some LayoutManager, and this Container was once time visible then
validate();// in this case revalidate() too
repaint(); // maybe doesn't need in all cases, but just in case
Hey, so I wanna ask how I need to create a method who will remove word if in that word is 2 same chars. Example: "Potato" in this word there is a 2 "o" chars so this word will need to be removed. "Forum" in this word there is no ...
Help! I want to create a java program that finds the highest even integer among the values entered by the user. Stop asking values when a value less than 1 have been entered. If no even integer is entered, display "No Even Integer"
I am writing a java program that needs to execute shell commands, so I wrote a function that would take the command to execute as a string (ie: "mkdir ~/Folder1") and execute that command with the shell. Here is the function:
Runtime run = Runtime.getRuntime();
Process pr = ...