I currently created a GUI using the GridLayout in order to have JLabels and JTextFields side-by-side. However, below the button, I would like to have a FlowLayout or something to display the results of the calculation. Is it possible to have two layouts on one GUI?
public void actionPerformed (ActionEvent event){
String eventName = event.getAction Command();
if (eventName.equa ls("calcPED")) {
FlowLayout experimentLayou t = new FlowLayout();
contentPane.set Layout(experime ntLayout);
When I do the following, the JLabels and JTextFields appear disarranged after the button is clicked. Any suggestions ?
public void actionPerformed (ActionEvent event){
String eventName = event.getAction Command();
if (eventName.equa ls("calcPED")) {
FlowLayout experimentLayou t = new FlowLayout();
contentPane.set Layout(experime ntLayout);
When I do the following, the JLabels and JTextFields appear disarranged after the button is clicked. Any suggestions ?
Comment