public class AwtUtils extends Object
Modifier and Type | Method and Description |
---|---|
static GridBagConstraints |
createGbc(int row,
int column)
Create grid bag constraints object.
|
static GridBagConstraints |
createGbc(int row,
int column,
int rowSpan,
int colSpan)
Create grid bag constraints object.
|
static JButton |
createImageButton(String resourceName)
Create image button from embedded resource.
|
static Image |
loadResourceToImage(String resourceName)
Create image from embedde resoprce.
|
public static GridBagConstraints createGbc(int row, int column)
row
- row of grid bagcolumn
- column of grid bagpublic static GridBagConstraints createGbc(int row, int column, int rowSpan, int colSpan)
row
- row of grid bagcolumn
- column of grid bagrowSpan
- number of occupying rowscolSpan
- number of occupying columnspublic static JButton createImageButton(String resourceName)
resourceName
- name of embedded resourcepublic static Image loadResourceToImage(String resourceName) throws IOException
resourceName
- name of embedded resourceIOException
Copyright © 2013. All Rights Reserved.