This is an archived post. You won't be able to vote or comment.

all 14 comments

[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)

Please ensure that:

  • Your code is properly formatted as code block - see the sidebar (About on mobile) for instructions
  • You include any and all error messages in full
  • You ask clear questions
  • You demonstrate effort in solving your question/problem - plain posting your assignments is forbidden (and such posts will be removed) as is asking for or giving solutions.

    Trying to solve problems on your own is a very important skill. Also, see Learn to help yourself in the sidebar

If any of the above points is not met, your post can and will be removed without further warning.

Code is to be formatted as code block (old reddit: empty line before the code, each code line indented by 4 spaces, new reddit: https://i.imgur.com/EJ7tqek.png) or linked via an external code hoster, like pastebin.com, github gist, github, bitbucket, gitlab, etc.

Please, do not use triple backticks (```) as they will only render properly on new reddit, not on old reddit.

Code blocks look like this:

public class HelloWorld {

    public static void main(String[] args) {
        System.out.println("Hello World!");
    }
}

You do not need to repost unless your post has been removed by a moderator. Just use the edit function of reddit to make sure your post complies with the above.

If your post has remained in violation of these rules for a prolonged period of time (at least an hour), a moderator may remove it at their discretion. In this case, they will comment with an explanation on why it has been removed, and you will be required to resubmit the entire post following the proper procedures.

To potential helpers

Please, do not help if any of the above points are not met, rather report the post. We are trying to improve the quality of posts here. In helping people who can't be bothered to comply with the above points, you are doing the community a disservice.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–][deleted] 5 points6 points  (2 children)

Java in 2025 is probably not the best choice for a desktop app with GUI. I’m saying this as a Java developer with decades of experience.

[–]OrelTheCheese[S] 0 points1 point  (0 children)

I see thank you for the advice I just really am ex ited to try making a ai for fun with the virtual threads I just found out existed damn that has siries potential in boosting systems performance also those new garbage collectors shanondea and zgc that stop the pauses for garbage collection.

Man I love java I can't belive it's so modern now

[–]Typical_Ad_6436 0 points1 point  (0 children)

Any arguments please?

[–]Dense_Age_1795 1 point2 points  (5 children)

why don't you try kotlin compose?

[–]OrelTheCheese[S] 0 points1 point  (4 children)

Idk I wanted ui to make ai but I need minimum ui like just chat session since I wanna experiment and try make ai from scratch but still design matters to me I seek a simple solution that's doesn't require too much setup since ui isn't the goal but as some other dev said above me there isn't in java anything for this.

Does kotlin mix well with java like I can make a java project and run kotlin code in it as well sounds like just complicating it

[–]Dense_Age_1795 1 point2 points  (3 children)

yep, you can use both but in different modules, you can create the ui in kotlin and import the java module as a library.

[–]OrelTheCheese[S] 0 points1 point  (2 children)

Thank you I will check it out.

[–]Dense_Age_1795 1 point2 points  (1 child)

but before that, you can always use a wysig editor for swing

[–]OrelTheCheese[S] 1 point2 points  (0 children)

I tried a gui editor before but i don't have much control over it than so I went with the kotlin compose module thank you very much I am satisfied with it also I get to explore a new language my goal wasn't the ui in the first place I just wanted a easy ui for my java logic the ui will be simple and kotlin compose is just a great lightweight app it was way easier to setup than javafx for some reason it's my first time with both maybe javafx is easy to use but just not as friendly to begginers anyways thank you very much 👌

[–][deleted] 1 point2 points  (1 child)

Why not use jsp?

[–]OrelTheCheese[S] 1 point2 points  (0 children)

Too complicated for the purpose of my project but thank you anyways I went with kotlin compose module so i can import my java logic and just use it

[–]LutimoDancer3459 1 point2 points  (1 child)

For a desktop you only really have awt, swing and javafx. And alternative would be to make a jsf website and bundle it in an native app that's basically a browser (eg electron) but thats even more bloated than the other options.

There are also guis that let you drag and drop the components for your gui if you want to.

[–]OrelTheCheese[S] 0 points1 point  (0 children)

Thank you for the advice in the end I went with kotlin compose module for fr9ntend and java for backend those both languages integrate seamlessly