2

I'm building an app to record orders and generate invoice for those orders. I use a jSeparator to separate the client info from the order info. But i want to increase the height of the Separator and change its colour also. Any help would be appreciated.

I have already tried using the setSize() Method but it doesn't work. I used netbeans drag and drop to design it so the initComponents method sets up all Swing components .

public GenInvoice() {
    initComponents();
    setLocationRelativeTo(this);
    jSeparator1.setSize(this.getWidth(), 4);
}
Tiago Martins Peres
  • 14,289
  • 18
  • 86
  • 145
Dro
  • 21
  • 1
  • 3

1 Answers1

-2

You can use setBounds(); instead of setSize(); and there you will place it too.

prooxey
  • 14