hi, im trying to create a java program for a assignment, in which i need four windows with buttons along the top that say, main page, client, residential and commercial, when you click one of the buttons it goes to said window, and inside i need to have panels with panels.
this is my main concern, i cant seem to figure out how to have multiple panels in one window. i need to make it so client, has a client information panel, a search panel and a results panel.
if anyone could help that would be greatly appreciated.
this is the basic code i have so far
package Assignment2;
import java.awt.Color;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.*;
import javax.swing.*;
import java.awt.*;
/*
* Author: John Stuby
* ID: 000457330
*/
public class clientWindow
{
//attributes
private JTextField textTF;
//Constructors
public JPanel createClientWindow()
{
JPanel clientPanel = new JPanel();
JLabel clientLabel = new JLabel("Client Management Screen",SwingConstants.CENTER);
clientLabel.setForeground(Color.blue);
clientLabel.setFont(new Font("Copperplate Gothic Bold",Font.BOLD,38));
clientPanel.add(clientLabel);
return clientPanel; //returns the clientPanels
}
}
