Hello!
Having some odd issues using a GridBagLayout, where I have components in odd places, or on top of other components.
Any suggestions would be brilliant. :]
Code:public void addComponent(Container contentPane){
setContentPane(contentPane);
GridBagConstraints c = new GridBagConstraints();
contentPane.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
//display = new JTextArea("k");
//display.setSize(FRAME_WIDTH, FRAME_HEIGHT / 2);
//display.setVisible(true);
//c.fill = GridBagConstraints.HORIZONTAL;
//c.gridx = 0;
//c.gridy = 0;
//c.gridwidth = 3;
loanAmountLabel = new JLabel("Loan Amount");
c.fill = GridBagConstraints.HORIZONTAL;
c.insets = new Insets(10, 10, 10, 10);
c.gridx = 0;
c.gridy = 1;
c.gridwidth = 1;
contentPane.add(loanAmountLabel, c);
interestRateLabel = new JLabel("Interest Rate");
c.fill = GridBagConstraints.HORIZONTAL;
c.gridx = 1;
c.gridy = 1;
c.gridwidth = 1;
contentPane.add(interestRateLabel, c);
loanPeriodLabel = new JLabel("Loan Period");
c.fill = GridBagConstraints.HORIZONTAL;
c.gridx = GridBagConstraints.RELATIVE;
c.gridy = 2;
c.gridwidth = 1;
contentPane.add(loanPeriodLabel, c);
loanAmount = new JTextField();
c.fill = GridBagConstraints.HORIZONTAL;
c.gridx = 0;
c.gridy = 2;
c.gridwidth = 1;
contentPane.add(loanAmount, c);
interestRate = new JTextField();
c.fill = GridBagConstraints.HORIZONTAL;
c.gridx = 1;
c.gridy = 2;
c.gridwidth = 1;
contentPane.add(interestRate, c);
loanPeriod = new JTextField();
c.fill = GridBagConstraints.HORIZONTAL;
c.gridx = 2;
c.gridy = 2;
c.gridwidth = 1;
contentPane.add(loanPeriod, c);
}

