Skip to content

A simple Java application that demonstrates dynamic layout management in Swing GUIs. Users can switch between single-column, two-column, and three-column layouts using radio buttons, with the interface updating in real-time.

License

Notifications You must be signed in to change notification settings

lb1997ccb/adaptive-layout-transformer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Adaptive Layout Transformer GUI

Overview

The Adaptive Layout Transformer GUI application demonstrates dynamic layout management in Java Swing using GridLayout and radio buttons. It allows users to switch between different column layouts dynamically.

Features

  • Dynamic Layout Switching: Users can select between 1, 2, or 3 column layouts using radio buttons.
  • GUI Components: Includes a main window (JFrame), an inner panel (JPanel) with dynamic labels, and radio buttons (JRadioButton) for layout selection.
  • Event Handling: Utilizes ItemListener to react to radio button selections and update the layout accordingly.

How to Use

  1. Launch the Application:

    • Execute AdaptiveLayoutTransformerMain.java to start the GUI.
  2. Select Layout Options:

    • Use the radio buttons labeled "1 Column", "2 Columns", or "3 Columns" to switch between different grid layouts.
  3. View Dynamic Updates:

    • Watch as the inner panel updates its layout in real-time based on the selected radio button.

Requirements

  • Java Development Kit (JDK) 8 or higher
  • IDE that supports Java development (e.g., IntelliJ IDEA, Eclipse)

Getting Started

  1. Clone the repository:

    git clone https://github.com/your/repository.git
  2. Open the project in your preferred Java IDE.

  3. Compile and run AdaptiveLayoutTransformerMain.java.

  4. Interact with the GUI to see the dynamic layout changes.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

A simple Java application that demonstrates dynamic layout management in Swing GUIs. Users can switch between single-column, two-column, and three-column layouts using radio buttons, with the interface updating in real-time.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages