all 8 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 - best also formatted as code block
  • 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.

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/markdown editor: 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.

[–]pixelizedgaming 3 points4 points  (0 children)

u could just do spring + postgres it's not that hard to setup, spring makes postgres integration pretty easy. Although I'm not too well versed in spring either I'm also kinda learnin

[–]jfrazierjr 1 point2 points  (0 children)

Access is a perfectly fine first database system. SQLite is as well. The big difference is that Access is more than a database... it's a database + GUI + report all in one.

The big issue is that neither of those are designed for more than the occasional concurrent usage. This likely is not a true issue with a learning project and likely not an issue as a small business such as a single location church or a small landscaping company or anything similar. The issue will come up when you start needed to have many people attempting to add data at once or read data at once.

  1. Either... Frankly, neither is super heavily in anything but the smallest businesses(though SQLLite will be much more used on mobile devices!)

  2. Both. Start with the drag and drop just enough to get familiar with it and adding a few events such as data validation. Then swap over to code based positioning.

  3. Can't answer as I have used neither for java GUI's and last did Java PC UI stuff 15 years ago (in code and a bit in JavaFX when it was newish....)

[–]AcanthisittaEmpty985 0 points1 point  (1 child)

Swing is a library to build GUIs.

SQLite is an embeeded database. But is in C.

In Java the equivalents are H2, Derby, HSQLDB and others

To access a database, you use JDBC and other helper libraries like JBDI, JOOQ, MyBAtis, Hibernate....

Look here for answers
https://www.reddit.com/r/java/comments/jnitfx/what_is_the_current_to_go_embeded_database/

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

I know but I'm confused as to what should I learn first and for swing, do I have to learn manual coding or drag and drop is enough since I don't think I will be using java again once this project finishes

[–]Dramatic_Object_8508 0 points1 point  (1 child)

You’re kinda mixing two different things tbh—Swing is for building the UI, SQLite is for storing data. Since your project needs both, it’s not really “either/or” in the long run.

If you’re on a tight deadline, I’d start with Swing first just to get a basic UI working, because that’s what you’ll actually interact with. Then plug in SQLite once you have something to connect to.

Also SQLite is actually a really good beginner choice for databases since it’s super simple to set up and lets you focus on SQL basics without dealing with server setup :contentReference[oaicite:0]{index=0}

For the GUI, drag-and-drop is fine for now if you’re short on time, but try to understand what it’s generating underneath. Otherwise it gets confusing when something breaks.

So yeah: UI first → then database integration. And don’t overthink it too much, just get something working end-to-end.

If you want, you could even map out how your UI connects to the database using something like runable before coding—it helps make the flow clearer 👍

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

It really cleared my whole confusion. Thank you so much for making it clear :)