I am kind of new to Java Programming and I am trying to make a window that contains two buttons and a text area, as seen in the image below.
The problem I encountered though was positioning the components. I tried using GridLayout and separating the window into 9 rows and 16 cells, but then found I couldn’t make components occupy more than a cell. I know I should be using GridBagLayout but I don’t know how exactly. Help would be appreciated. 🙂
I am kind of new to Java Programming and I am trying to make
Share
You have a number of choices. Instead of trying to layout the whole component in one, try using a compound layout, where by you layout sections of the UI in separate panes and focus on the individual requirements of each section…