Setting the default component
843806Jul 23 2008 — edited Jul 23 2008hello, i want to set a button to have the initial focus when the window is displayed. I've already searched the internet and found that pack() and button.requestFocusInWindow does the job but my problem is when i use the pack method the Dimesions i set in the components are resized and therefore the gui is destroyed. Is there another way to realize components without using the pack() method? tnx