Example usage for javax.swing.table JTableHeader setSize

List of usage examples for javax.swing.table JTableHeader setSize

Introduction

In this page you can find the example usage for javax.swing.table JTableHeader setSize.

Prototype

public void setSize(int width, int height) 

Source Link

Document

Resizes this component so that it has width width and height height .

Usage

From source file:nl.phanos.liteliveresultsclient.gui.ResultsWindows.java

public void ChangeFont(int fontSize) {
    JTableHeader header = jTable1.getTableHeader();
    header.setSize(header.getWidth(), fontSize + 5);
    jTable1.setFont(new java.awt.Font("Lucida Grande", 0, fontSize)); // NOI18N
    SerieLabel.setFont(new java.awt.Font("Lucida Grande", 0, fontSize)); // NOI18N
    SerieLabel.setSize(SerieLabel.getWidth(), fontSize + 5);
    jPanel1.setSize(SerieLabel.getWidth(), fontSize + 5);
    jTable1.setRowHeight(fontSize + 5);/*w  ww  .  j av a2  s.c  o m*/
    logoLabel.setBounds(this.getWidth() - icon.getIconWidth(), this.getHeight() - icon.getIconHeight(),
            icon.getIconWidth(), icon.getIconHeight());
    header.setFont(new java.awt.Font("Lucida Grande", 0, fontSize)); // NOI18N
    clockLabel.setFont(new java.awt.Font("Lucida Grande", 0, fontSize)); // NOI18N
    clockLabel.setBounds(0, this.getHeight() - (fontSize + 15), fontSize * 30, (fontSize + 5));
    repaint();
}