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.
- 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.
-
Launch the Application:
- Execute
AdaptiveLayoutTransformerMain.java
to start the GUI.
- Execute
-
Select Layout Options:
- Use the radio buttons labeled "1 Column", "2 Columns", or "3 Columns" to switch between different grid layouts.
-
View Dynamic Updates:
- Watch as the inner panel updates its layout in real-time based on the selected radio button.
- Java Development Kit (JDK) 8 or higher
- IDE that supports Java development (e.g., IntelliJ IDEA, Eclipse)
-
Clone the repository:
git clone https://github.com/your/repository.git
-
Open the project in your preferred Java IDE.
-
Compile and run
AdaptiveLayoutTransformerMain.java
. -
Interact with the GUI to see the dynamic layout changes.
This project is licensed under the MIT License. See the LICENSE file for details.