File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Making Java GUI code open source? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Making Java GUI code open source?" Watch "Making Java GUI code open source?" New topic

Making Java GUI code open source?

stephen fang

Joined: Mar 02, 2006
Posts: 1
Hi I am a beginner to Java. I was wondering if this was possible.

Say I write a calculator applet to host on my website for other users to use. Can I make just the GUI code open source so users can modify the appearance of the applet and then save the GUI code to their usernames on the web server, so the next time they logon, the changed calculator appearance will be stored on the web server already. However, the core code should remain the same so new users who sign up won't be using some else's Calculator GUI code.
marc weber

Joined: Aug 31, 2004
Posts: 11343

Hi stephen, welcome to JavaRanch!

Just to clarify what you mean by "open source"...
  • Are you talking about users customizing the app by selecting certain preferences (for example, picking options for background colors, button style, display style, etc.)?
  • Or are you talking about users actually re-writing the Java source code themselves?
  • The second of these is closer to what is typically meant by "open source," but I suspect that you are envisioning the first.

    In any case, much of what you're describing sounds like server-side programming (e.g., servlets), which is significantly more involved than putting an applet on your website. How far along are you? Do you already have a start on this calculator applet?
    [ March 02, 2006: Message edited by: marc weber ]

    "We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
    I agree. Here's the link:
    subject: Making Java GUI code open source?
    It's not a secret anymore!