Java aligning components in panels
I am trying to add components to SOUTH of a BorderLayout I need it to look like this example. ------------------------------------ | | | | | | | | | | | | |_TxtField|Button_____________Label| So I need a JTextField and a JButton aligned to the left, and a label aligned to the right. How can I accomplish this? Here is my code below, I have tried to do this using nested panels: import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; public class BlackjackGUI{ private JFrame frame; private JPanel panel, panelLeft, panelBottomLeft,