{"id":23209016,"url":"https://github.com/wishvarajaguru/decoratedcomponentsproject","last_synced_at":"2025-06-18T18:07:48.361Z","repository":{"id":268385942,"uuid":"903649857","full_name":"WishvaRajaguru/DecoratedComponentsProject","owner":"WishvaRajaguru","description":"The DecoratedComponentsProject is a lightweight Java Swing library designed to simplify the creation of visually appealing UI components.","archived":false,"fork":false,"pushed_at":"2025-02-27T12:07:21.000Z","size":4403,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T12:09:49.445Z","etag":null,"topics":["image-processing","java","jpanel","smooth-rendering","swing","swing-components","swing-gui"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WishvaRajaguru.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-15T07:06:16.000Z","updated_at":"2025-02-27T12:07:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"de90b2e7-e1d3-41ac-81e8-485c370c1faf","html_url":"https://github.com/WishvaRajaguru/DecoratedComponentsProject","commit_stats":null,"previous_names":["wishvarajaguru/decoratedcomponentsproject"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/WishvaRajaguru/DecoratedComponentsProject","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WishvaRajaguru%2FDecoratedComponentsProject","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WishvaRajaguru%2FDecoratedComponentsProject/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WishvaRajaguru%2FDecoratedComponentsProject/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WishvaRajaguru%2FDecoratedComponentsProject/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WishvaRajaguru","download_url":"https://codeload.github.com/WishvaRajaguru/DecoratedComponentsProject/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WishvaRajaguru%2FDecoratedComponentsProject/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260606475,"owners_count":23035351,"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":["image-processing","java","jpanel","smooth-rendering","swing","swing-components","swing-gui"],"created_at":"2024-12-18T18:13:41.633Z","updated_at":"2025-06-18T18:07:43.348Z","avatar_url":"https://github.com/WishvaRajaguru.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🎨 About DecoratedComponentsProject\n    \nThe DecoratedComponentsProject is a lightweight Java Swing library designed to simplify the creation of visually appealing UI components. The library currently provides two powerful components:\n\n- DecoratedPanel\n- DecoratedImagePanel\n\nThis library is a perfect choice for developers looking to enrich their Swing applications with enhanced visuals without compromising performance.\n\n\u003chr/\u003e\n\u003cbr/\u003e\n\u003cbr/\u003e\n\u003cbr/\u003e\n\n## ✨ Features\n\n⁜ IDE drag \u0026 drop designing support (Netbeans).\n\u003cbr/\u003e\n⁜ Easily understandable property customization.\n\n🖼️ \u003cb\u003e DecoratedPanel \u003c/b\u003e\n\n- Customizable rouded corners and background colors.\n\n🌄 \u003cb\u003e DecoratedImagePanel \u003c/b\u003e\n\n- Display images seamlessly with advanced scaling options.\n- Smooth rendering for high-resolution images.\n\u003cbr/\u003e\n\u003cbr/\u003e\n\n## 🚀 Getting Started\n\nInstallation\n\nSimply download the  \u003ci\u003e.jar\u003c/i\u003e file and Add the library to your project.\n\u003cbr/\u003e\n\u003cbr/\u003e\n\n## Usage\n\nThe usage is pretty self explanatory since it is easy with Netbeans IDE. (Explained usage instructions will be added sooner!)\n\u003cbr/\u003e\n\n### DecoratedPanel\n\n- Create a new DecoratedPanel Object and set border radius as needed:\n\n```java\n    import com.rajaguru.DecoratedPanel;\n    import javax.swing.*;\n\n    public class Main {\n        public static void main(String[] args) {\n            JFrame frame = new JFrame(\"DecoratedPanel Example\");\n            DecoratedPanel panel = new DecoratedPanel();\n            panel.setBackgroundColor(Color.BLUE);\n\n            //To set Top-Left Radius\n            panel.setArchTopLeft(100);\n\n            //To set Top-Right Radius\n            panel.setArchTopRight(100);\n\n            //To set Bottom-Right Radius\n            panel.setArchBottomRight(100);\n\n            //To set Bottom-Left Radius\n            panel.setArchBottomLeft(100);\n    \n            frame.add(panel);\n            frame.setSize(800, 800);\n            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n            frame.setVisible(true);\n        }\n    }\n```\n\n\u003cbr/\u003e\n\n### DecoratedImagePanel\n\n- Create a new DecoratedImagePanel Object and set the Image:\n\n```java\n    import com.rajaguru.DecoratedImagePanel;\n    import javax.swing.*;\n    import javax.swing.ImageIcon;\n    \n    public class Main {\n        public static void main(String[] args) {\n            JFrame frame = new JFrame(\"DecoratedPanel Example\");\n            DecoratedImagePanel panel = new DecoratedImagePanel();\n\n            //Add Image to panel\n            panel.setImageIcon(new ImageIcon(getClass().getResource(\"path\")));\n    \n            frame.add(panel);\n            frame.setSize(800, 800);\n            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n            frame.setVisible(true);\n        }\n    }\n```\n\n- Set the border radius for DecoratedImagePanel:\n\n```java\n            //MAKE SURE TO SET THIS PROPERTY TRUE TO ACTIVATE THIS FEATURE\n            panel.setRoundedCorners(true);\n\n            //To set Top-Left Radius\n            panel.setArchTopLeft(100);\n\n            //To set Top-Right Radius\n            panel.setArchTopRight(100);\n\n            //To set Bottom-Right Radius\n            panel.setArchBottomRight(100);\n\n            //To set Bottom-Left Radius\n            panel.setArchBottomLeft(100);\n```\n\n- To center image within the panel:\n\n```java\n            panel.setCenterImage(true);\n```\n\n- To Fit the image to the container:\n\n```java\n            panel.setFitContent(true);\n```\n\n- To Contain the Image withint the conrainer (New):\n- This feature can be used along-side \u003cb\u003ecenterImage\u003c/b\u003e function as well.\n\n```java\n            panel.setContainContent(true);\n```\n\n- To Enable Smooth Rendering of the image:\nThis feature may slow down the loading process based on the performance of your workstation. How ever this will get rid of that laggy edges of the image if you need it.\n\n```java\n            panel.setSmoothDecoration(true);\n```\n\u003cbr/\u003e\n\u003cbr/\u003e\n\n## 🛠️ Built With\n\n- Java Swing\n- JDK 8+\n\u003cbr/\u003e\n\n## 🧑‍💻 Author\n\n- Wishva Rajaguru @ wishvarajaguru@gmail.com\n\u003cbr/\u003e\nConnect with me on \u003ca href=\"\"\u003e GitHub \u003c/a\u003e!\n\u003cbr/\u003e\n\n## 📜 License\n\nThis project is licensed under the MIT License. See the \u003ca href='LICENSE'\u003eLICENSE \u003c/a\u003e file for details.\n\u003cbr/\u003e\n\n## 🙌 Support\n\nIf you find this project helpful, please ⭐ the repository and share it with others!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwishvarajaguru%2Fdecoratedcomponentsproject","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwishvarajaguru%2Fdecoratedcomponentsproject","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwishvarajaguru%2Fdecoratedcomponentsproject/lists"}