Esempio n. 1
0
  private void initMyComponents() {

    orderLabel.setFont(new Font("fans serif", Font.BOLD, 14));
    orderLabel.setText("" + order.getOrderNumber());
    dateLabel.setFont(new Font("Georgia", Font.PLAIN, 14));
    dateLabel.setText("" + order.getDate());

    orderPanel.setBorder(BorderFactory.createMatteBorder(0, 0, 0, 0, typBrun));
    datePanel.setBorder(BorderFactory.createMatteBorder(0, 0, 0, 0, typBrun));
  }
Esempio n. 2
0
 /** Creates new form ProductPanel */
 public OrderPanel(Order o) {
   order = o;
   initComponents();
   initMyComponents();
   this.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, typBrun));
   this.repaint();
   this.revalidate();
 }