Package angry3vilbot.bankingapp
Class BetterCardLayout
java.lang.Object
java.awt.CardLayout
angry3vilbot.bankingapp.BetterCardLayout
- All Implemented Interfaces:
LayoutManager,LayoutManager2,Serializable
A custom CardLayout that ensures the layout is updated correctly on different display scales.
This class extends the default CardLayout and overrides the show method to revalidate and repaint the parent container.
This is useful for ensuring that the layout is displayed correctly on high-DPI displays or when the display scale changes.
This class extends the default CardLayout and overrides the show method to revalidate and repaint the parent container.
This is useful for ensuring that the layout is displayed correctly on high-DPI displays or when the display scale changes.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.awt.CardLayout
addLayoutComponent, addLayoutComponent, first, getHgap, getLayoutAlignmentX, getLayoutAlignmentY, getVgap, invalidateLayout, last, layoutContainer, maximumLayoutSize, minimumLayoutSize, next, preferredLayoutSize, previous, removeLayoutComponent, setHgap, setVgap, toString
-
Constructor Details
-
BetterCardLayout
public BetterCardLayout()
-
-
Method Details
-
show
- Overrides:
showin classCardLayout
-