Class BetterCardLayout

java.lang.Object
java.awt.CardLayout
angry3vilbot.bankingapp.BetterCardLayout
All Implemented Interfaces:
LayoutManager, LayoutManager2, Serializable

public class BetterCardLayout extends CardLayout
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.
See Also:
  • Constructor Details

    • BetterCardLayout

      public BetterCardLayout()
  • Method Details