public class GUIUtils
extends java.lang.Object
Constructor and Description |
---|
GUIUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
centerFrame(java.awt.Frame frame) |
static java.awt.Dimension |
getAvailableScreenSize()
returns available screensize accounting for task bars and menu bars
|
static javax.swing.JFileChooser |
getFileDialog(java.lang.String title,
java.lang.String[] description,
java.lang.String[] extension)
create a dialog with specified filters
|
static java.awt.Dimension |
getJTableNativeSize(javax.swing.JTable table) |
static void |
makeGridBagLayout(java.awt.Container parent,
int rows,
int cols)
Updates a GridbagLayout with the desired number of rows and columns.
|
static void |
maximizeFrame(java.awt.Frame frame) |
static void |
setDialogLookAndFeel()
Sets look and feel for test dialogs
|
static void |
updatePacBioLookAndFeel()
method to update some aspects of l&f of the app
|
static void |
updateScrollbarsLAF()
sets scrollbar width to half standard
|
public static void centerFrame(java.awt.Frame frame)
public static void maximizeFrame(java.awt.Frame frame)
public static java.awt.Dimension getJTableNativeSize(javax.swing.JTable table)
public static void makeGridBagLayout(java.awt.Container parent, int rows, int cols)
parent
- parent container, e.g. JPanelrows
- new number of rowscols
- new number of columnspublic static void setDialogLookAndFeel()
public static void updatePacBioLookAndFeel()
public static void updateScrollbarsLAF()
public static java.awt.Dimension getAvailableScreenSize()
public static javax.swing.JFileChooser getFileDialog(java.lang.String title, java.lang.String[] description, java.lang.String[] extension)
Copyright © 2010-2014 Pacific Biosciences. All Rights Reserved.