Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lb1997ccb/adaptive-layout-transformer
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.
https://github.com/lb1997ccb/adaptive-layout-transformer
adaptive-layouts gridlayout java java-8 jframe jpanel swing
Last synced: 13 days ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/lb1997ccb/adaptive-layout-transformer
- Owner: lb1997ccb
- License: mit
- Created: 2024-06-26T09:13:24.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-06-26T10:55:16.000Z (7 months ago)
- Last Synced: 2024-11-19T10:57:07.956Z (2 months ago)
- Topics: adaptive-layouts, gridlayout, java, java-8, jframe, jpanel, swing
- Language: Java
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:```bash
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](./LICENSE) file for details.