Skip navigation links
A B C E F G H I L M N O P R S V W 

A

ABOVE_BASELINE - Static variable in class net.lenni0451.commons.swing.GBC
 
ABOVE_BASELINE_LEADING - Static variable in class net.lenni0451.commons.swing.GBC
 
ABOVE_BASELINE_TRAILING - Static variable in class net.lenni0451.commons.swing.GBC
 
add(Component) - Method in class net.lenni0451.commons.swing.GBC
Add the specified component to the parent container with the constraints.
add(Component, Runnable) - Method in class net.lenni0451.commons.swing.GBC
Add the specified component to the parent container with the constraints.
The runnable will be called before the component is added to the parent container.
add(C, Consumer<C>) - Method in class net.lenni0451.commons.swing.GBC
Add the specified component to the parent container with the constraints.
The consumer will be called before the component is added to the parent container.
add(Supplier<Component>) - Method in class net.lenni0451.commons.swing.GBC
Add the component created by the supplier to the parent container with the constraints.
addLayoutComponent(String, Component) - Method in class net.lenni0451.commons.swing.layouts.FillLayout
 
addLayoutComponent(String, Component) - Method in class net.lenni0451.commons.swing.layouts.VerticalLayout
 
addNotify() - Method in class net.lenni0451.commons.swing.components.OverlayPanel
 
anchor(int) - Method in class net.lenni0451.commons.swing.GBC
Set the anchor of the constraints.

B

BASELINE - Static variable in class net.lenni0451.commons.swing.GBC
 
BASELINE_LEADING - Static variable in class net.lenni0451.commons.swing.GBC
 
BASELINE_TRAILING - Static variable in class net.lenni0451.commons.swing.GBC
 
BELOW_BASELINE - Static variable in class net.lenni0451.commons.swing.GBC
 
BELOW_BASELINE_LEADING - Static variable in class net.lenni0451.commons.swing.GBC
 
BELOW_BASELINE_TRAILING - Static variable in class net.lenni0451.commons.swing.GBC
 
BOTH - Static variable in class net.lenni0451.commons.swing.GBC
 

C

CENTER - Static variable in class net.lenni0451.commons.swing.GBC
 
ClickableMenuItem - Class in net.lenni0451.commons.swing.components
A JMenuItem which accepts a click listener in the constructor.
ClickableMenuItem(String, Runnable) - Constructor for class net.lenni0451.commons.swing.components.ClickableMenuItem
 
ClickableMenuItem(String, ActionListener) - Constructor for class net.lenni0451.commons.swing.components.ClickableMenuItem
 
ComponentUtils - Class in net.lenni0451.commons.swing.utils
 
ComponentUtils() - Constructor for class net.lenni0451.commons.swing.utils.ComponentUtils
 
create() - Static method in class net.lenni0451.commons.swing.GBC
Create a new GBC with the parent set to null.
The add methods will throw an IllegalStateException if used.
create(Container) - Static method in class net.lenni0451.commons.swing.GBC
Create a new GBC with the parent set to the specified container.
currentGridX(Container) - Static method in class net.lenni0451.commons.swing.GBC
Get the current gridx value for the specified container.
This will return the highest gridx for the last gridy.
currentGridY(Container) - Static method in class net.lenni0451.commons.swing.GBC
Get the current gridy value for the specified container.

E

EAST - Static variable in class net.lenni0451.commons.swing.GBC
 
exceptionCaught(Exception) - Method in class net.lenni0451.commons.swing.components.label.LinkLabel
 

F

fill(int) - Method in class net.lenni0451.commons.swing.GBC
Set the fill of the constraints.
FillLayout - Class in net.lenni0451.commons.swing.layouts
A layout that fills the whole parent container.
FillLayout() - Constructor for class net.lenni0451.commons.swing.layouts.FillLayout
 
fillVerticalSpace(Container) - Static method in class net.lenni0451.commons.swing.GBC
Add a filler component that will fill the remaining horizontal space.
This will align all components to the top of the container.
This will return the new gridy value.
fillVerticalSpace(Container, int) - Static method in class net.lenni0451.commons.swing.GBC
Add a filler component that will fill the remaining horizontal space.
This will align all components to the top of the container.
fillx(int, double) - Method in class net.lenni0451.commons.swing.GBC
Set the fill and weightx of the constraints.
This is a shortcut for fill(fill).weightx(weightx).
fillxy(int, double, double) - Method in class net.lenni0451.commons.swing.GBC
Set the fill, weightx and weighty of the constraints.
This is a shortcut for fill(fill).weightx(weightx).weighty(weighty).
filly(int, double) - Method in class net.lenni0451.commons.swing.GBC
Set the fill and weighty of the constraints.
This is a shortcut for fill(fill).weighty(weighty).
FIRST_LINE_END - Static variable in class net.lenni0451.commons.swing.GBC
 
FIRST_LINE_START - Static variable in class net.lenni0451.commons.swing.GBC
 

G

GBC - Class in net.lenni0451.commons.swing
A wrapper for GridBagConstraints to make it easier to use.
get() - Method in class net.lenni0451.commons.swing.GBC
 
getGap() - Method in class net.lenni0451.commons.swing.layouts.VerticalLayout
 
getHeight() - Method in class net.lenni0451.commons.swing.components.InvisiblePanel
 
getPadding() - Method in class net.lenni0451.commons.swing.layouts.VerticalLayout
 
getPreferredSize() - Method in class net.lenni0451.commons.swing.components.InvisiblePanel
 
getPreferredSize() - Method in class net.lenni0451.commons.swing.components.ScrollPaneSizedPanel
 
getSize(Dimension) - Method in class net.lenni0451.commons.swing.components.InvisiblePanel
 
getSize() - Method in class net.lenni0451.commons.swing.components.InvisiblePanel
 
getWidth() - Method in class net.lenni0451.commons.swing.components.InvisiblePanel
 
grid(int, int) - Method in class net.lenni0451.commons.swing.GBC
Set the gridx and gridy of the constraints.
gridx(int) - Method in class net.lenni0451.commons.swing.GBC
Set the gridx of the constraints.
gridy(int) - Method in class net.lenni0451.commons.swing.GBC
Set the gridy of the constraints.

H

height(int) - Method in class net.lenni0451.commons.swing.GBC
Set the gridheight of the constraints.
HORIZONTAL - Static variable in class net.lenni0451.commons.swing.GBC
 

I

insets(Insets) - Method in class net.lenni0451.commons.swing.GBC
Set the insets of the constraints.
insets(int) - Method in class net.lenni0451.commons.swing.GBC
Set the insets of the constraints to the same value for all sides.
insets(int, int) - Method in class net.lenni0451.commons.swing.GBC
Set the insets of the constraints to the same value for the top and bottom and the same value for the left and right.
insets(int, int, int, int) - Method in class net.lenni0451.commons.swing.GBC
Set the insets of the constraints.
InvisiblePanel - Class in net.lenni0451.commons.swing.components
An invisible panel with a fixed size.
Can be used to add empty space between components.
InvisiblePanel(int, int) - Constructor for class net.lenni0451.commons.swing.components.InvisiblePanel
 
ipad(int, int) - Method in class net.lenni0451.commons.swing.GBC
Set the ipadx and ipady of the constraints.
ipadx(int) - Method in class net.lenni0451.commons.swing.GBC
Set the ipadx of the constraints.
ipady(int) - Method in class net.lenni0451.commons.swing.GBC
Set the ipady of the constraints.
iterate(Component, Consumer<Component>) - Static method in class net.lenni0451.commons.swing.utils.ComponentUtils
Recursively iterate over all components of the given component and all its children.
The root component will be included in the iteration.

L

LAST_LINE_END - Static variable in class net.lenni0451.commons.swing.GBC
 
LAST_LINE_START - Static variable in class net.lenni0451.commons.swing.GBC
 
layoutContainer(Container) - Method in class net.lenni0451.commons.swing.layouts.FillLayout
 
layoutContainer(Container) - Method in class net.lenni0451.commons.swing.layouts.VerticalLayout
 
LINE_END - Static variable in class net.lenni0451.commons.swing.GBC
 
LINE_START - Static variable in class net.lenni0451.commons.swing.GBC
 
LinkLabel - Class in net.lenni0451.commons.swing.components.label
A JLabel that opens a link in the default browser when clicked.
It has the correct cursor, color and underlining for a link.
If an exception is thrown while opening the link, it will be passed to the LinkLabel.exceptionCaught(Exception) method which can be overridden.
LinkLabel(String, String) - Constructor for class net.lenni0451.commons.swing.components.label.LinkLabel
 

M

minimumLayoutSize(Container) - Method in class net.lenni0451.commons.swing.layouts.FillLayout
 
minimumLayoutSize(Container) - Method in class net.lenni0451.commons.swing.layouts.VerticalLayout
 

N

net.lenni0451.commons.swing - package net.lenni0451.commons.swing
 
net.lenni0451.commons.swing.components - package net.lenni0451.commons.swing.components
 
net.lenni0451.commons.swing.components.label - package net.lenni0451.commons.swing.components.label
 
net.lenni0451.commons.swing.layouts - package net.lenni0451.commons.swing.layouts
 
net.lenni0451.commons.swing.utils - package net.lenni0451.commons.swing.utils
 
nextColumn() - Method in class net.lenni0451.commons.swing.GBC
Set the gridx and gridy of the constraints to the next column.
nextRow() - Method in class net.lenni0451.commons.swing.GBC
Set the gridx and gridy of the constraints to the next row.
NONE - Static variable in class net.lenni0451.commons.swing.GBC
 
NORTH - Static variable in class net.lenni0451.commons.swing.GBC
 
NORTHEAST - Static variable in class net.lenni0451.commons.swing.GBC
 
NORTHWEST - Static variable in class net.lenni0451.commons.swing.GBC
 

O

OverlayPanel - Class in net.lenni0451.commons.swing.components
A panel that captures all mouse and keyboard events and paints a background color.
The background color can be translucent to make the underlying components visible.
Intended for use as an overlay/JFrame glass pane.
OverlayPanel(Color) - Constructor for class net.lenni0451.commons.swing.components.OverlayPanel
 

P

PAGE_END - Static variable in class net.lenni0451.commons.swing.GBC
 
PAGE_START - Static variable in class net.lenni0451.commons.swing.GBC
 
paintComponent(Graphics) - Method in class net.lenni0451.commons.swing.components.InvisiblePanel
 
paintComponent(Graphics) - Method in class net.lenni0451.commons.swing.components.OverlayPanel
 
paintOverlay(Graphics) - Method in class net.lenni0451.commons.swing.components.OverlayPanel
Paints the overlay on top of the background color.
preferredLayoutSize(Container) - Method in class net.lenni0451.commons.swing.layouts.FillLayout
 
preferredLayoutSize(Container) - Method in class net.lenni0451.commons.swing.layouts.VerticalLayout
 

R

RELATIVE - Static variable in class net.lenni0451.commons.swing.GBC
 
REMAINDER - Static variable in class net.lenni0451.commons.swing.GBC
 
removeLayoutComponent(Component) - Method in class net.lenni0451.commons.swing.layouts.FillLayout
 
removeLayoutComponent(Component) - Method in class net.lenni0451.commons.swing.layouts.VerticalLayout
 
removeNotify() - Method in class net.lenni0451.commons.swing.components.OverlayPanel
 

S

ScrollPaneSizedPanel - Class in net.lenni0451.commons.swing.components
A JPanel that returns the width of a JScrollPane viewport as its preferred width.
Using this panel in a JScrollPane prevents a horizontal scrollbar from appearing when the preferred width of the panel is larger than the width of the viewport.
ScrollPaneSizedPanel(JScrollPane) - Constructor for class net.lenni0451.commons.swing.components.ScrollPaneSizedPanel
 
setSystemLookAndFeel() - Static method in class net.lenni0451.commons.swing.utils.SwingTheming
Set the system look and feel for the current application.
size(int, int) - Method in class net.lenni0451.commons.swing.GBC
Set the gridwidth and gridheight of the constraints.
skipColumn() - Method in class net.lenni0451.commons.swing.GBC
Skip the current column by incrementing the gridx value.
This will not change the gridy value.
skipRow() - Method in class net.lenni0451.commons.swing.GBC
Skip the current row by incrementing the gridy value.
The gridx value will be reset to 0.
SOUTH - Static variable in class net.lenni0451.commons.swing.GBC
 
SOUTHEAST - Static variable in class net.lenni0451.commons.swing.GBC
 
SOUTHWEST - Static variable in class net.lenni0451.commons.swing.GBC
 
SwingTheming - Class in net.lenni0451.commons.swing.utils
 
SwingTheming() - Constructor for class net.lenni0451.commons.swing.utils.SwingTheming
 

V

VERTICAL - Static variable in class net.lenni0451.commons.swing.GBC
 
VerticalFileChooser - Class in net.lenni0451.commons.swing.components
A JFileChooser that displays the files in a vertical list instead of a horizontal list.
VerticalFileChooser() - Constructor for class net.lenni0451.commons.swing.components.VerticalFileChooser
 
VerticalLayout - Class in net.lenni0451.commons.swing.layouts
A layout that aligns all components vertically.
Optionally a padding and a gap between the components can be specified.
VerticalLayout() - Constructor for class net.lenni0451.commons.swing.layouts.VerticalLayout
 
VerticalLayout(int, int) - Constructor for class net.lenni0451.commons.swing.layouts.VerticalLayout
 

W

weight(double, double) - Method in class net.lenni0451.commons.swing.GBC
Set the weightx and weighty of the constraints.
weightx(double) - Method in class net.lenni0451.commons.swing.GBC
Set the weightx of the constraints.
weighty(double) - Method in class net.lenni0451.commons.swing.GBC
Set the weighty of the constraints.
WEST - Static variable in class net.lenni0451.commons.swing.GBC
 
width(int) - Method in class net.lenni0451.commons.swing.GBC
Set the gridwidth of the constraints.
A B C E F G H I L M N O P R S V W 
Skip navigation links