{"id":22304990,"url":"https://github.com/talhat298/javafxwebexplorer","last_synced_at":"2026-04-20T10:05:46.403Z","repository":{"id":266294405,"uuid":"897947581","full_name":"TalhaT298/javaFXWebExplorer","owner":"TalhaT298","description":"his project is a simple JavaFX application that works on both desktop and web environments using JPro. It demonstrates JavaFX's capability to run in modern browsers seamlessly.","archived":false,"fork":false,"pushed_at":"2024-12-03T14:45:32.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-26T00:44:35.045Z","etag":null,"topics":["css","gradle","java","javafx","jpro"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TalhaT298.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-03T14:18:57.000Z","updated_at":"2024-12-03T14:50:35.000Z","dependencies_parsed_at":"2024-12-03T15:30:38.538Z","dependency_job_id":"80429d08-f070-4b37-a127-c46c75adefcd","html_url":"https://github.com/TalhaT298/javaFXWebExplorer","commit_stats":null,"previous_names":["talhat298/javafxwebexplorer"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TalhaT298%2FjavaFXWebExplorer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TalhaT298%2FjavaFXWebExplorer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TalhaT298%2FjavaFXWebExplorer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TalhaT298%2FjavaFXWebExplorer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TalhaT298","download_url":"https://codeload.github.com/TalhaT298/javaFXWebExplorer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245568581,"owners_count":20636803,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["css","gradle","java","javafx","jpro"],"created_at":"2024-12-03T19:09:18.255Z","updated_at":"2026-04-20T10:05:46.312Z","avatar_url":"https://github.com/TalhaT298.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JavaFX WebApp Starter\r\n\r\nThis project demonstrates how to create a simple JavaFX application that runs both on desktop and in the browser using JPro. It's a great starting point for developers looking to build JavaFX applications with cross-platform capabilitie\r\n\r\n🛠️ **Technologies Used**\r\n- **JavaFX**: Used for building the user interface of the application.\r\n- **JPro**: Allows JavaFX applications to run in web browsers.\r\n- **Gradle**: Used for build automation and dependency management.\r\n\r\n\r\n### **Java (App.java)**\r\nThis file contains the main JavaFX code that initializes the application, sets up the primary stage, and adds the user interface components.\r\n\r\n```java\r\npackage com.example;\r\n\r\nimport javafx.application.Application;\r\nimport javafx.scene.Scene;\r\nimport javafx.scene.control.Button;\r\nimport javafx.scene.layout.StackPane;\r\nimport javafx.stage.Stage;\r\n\r\npublic class App extends Application {\r\n    @Override\r\n    public void start(Stage primaryStage) {\r\n        Button button = new Button(\"Click Me!\");\r\n        button.setOnAction(e -\u003e System.out.println(\"Button clicked!\"));\r\n\r\n        StackPane root = new StackPane(button);\r\n        Scene scene = new Scene(root, 400, 300);\r\n\r\n        primaryStage.setTitle(\"JavaFX Web App\");\r\n        primaryStage.setScene(scene);\r\n        primaryStage.show();\r\n    }\r\n\r\n    public static void main(String[] args) {\r\n        launch(args);\r\n    }\r\n}\r\n  ```\r\n### **Gradle Build Script (build.gradle)**\r\nHere's the complete `build.gradle` configuration:\r\n\r\n```groovy\r\nplugins {\r\n    id 'java'\r\n    id 'application'\r\n}\r\n\r\nrepositories {\r\n    mavenCentral()\r\n}\r\n\r\ndependencies {\r\n    implementation 'org.openjfx:javafx-controls:20.0.1'\r\n    implementation 'com.jpro:jpro-web:2023.1.0'\r\n}\r\n\r\napplication {\r\n    mainClass = 'com.example.App'\r\n}\r\n```\r\n🔧 **How to Run**\r\n\r\n1. **Clone the Repository**  \r\n   Clone this project to your local machine:\r\n   ```bash\r\n   git clone https://github.com/your-username/javafx-webapp-starter.git\r\n   cd javafx-webapp-starter\r\n   ```\r\n2. **Install Dependencies**  \r\n   Ensure you have Java 17+ installed. Add dependencies using Gradle:\r\n   ```bash\r\n   gradle build\r\n   ```\r\n3. **Run the Application**\r\n\r\n   - **Desktop Mode**:\r\n     ```bash\r\n     gradle run\r\n     ```\r\n\r\n   - **Web Mode**:\r\n     ```bash\r\n     gradle jproRun\r\n     ```\r\n     Open your web browser and navigate to [http://localhost:8080](http://localhost:8080).\r\n📝 **Customization**\r\n\r\n- **Add UI Components**: Modify `App.java` to include more UI elements as needed.\r\n- **Styles**: Customize `application.css` to change the appearance of the app.\r\n- **Web Configuration**: Adjust the `jpro-web` settings for better integration with web servers.\r\n\r\n💡 **Future Enhancements**\r\n\r\n- **Responsive Design**: Implement CSS rules for better mobile and tablet support.\r\n- **User Interaction**: Add more interactivity, such as keyboard shortcuts or additional buttons.\r\n- **Database Connectivity**: Integrate a database to enable data storage and retrieval.\r\n\r\n\r\nMake sure to replace `https://github.com/your-username/javafx-webapp-starter.git` and `https://github.com/your-username` with your actual repository URL and GitHub profile link.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftalhat298%2Fjavafxwebexplorer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftalhat298%2Fjavafxwebexplorer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftalhat298%2Fjavafxwebexplorer/lists"}