aspose file tools*
The moose likes Beginning Java and the fly likes Designing Java App in core java as a beginer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Designing Java App in core java as a beginer" Watch "Designing Java App in core java as a beginer" New topic
Author

Designing Java App in core java as a beginer

ramandeep Dhanju
Greenhorn

Joined: Jul 13, 2012
Posts: 7
Hi Friends
I am a learner in the JAVA and i have done core java by my self. I want to make a Application in Core java in Java Swings just to give a start. I decided to make application On University System in JFrames. I know about MS SQL Server 2008 database too as i read all the database development concepts.
So i will use that as Backend.
Now my problem is how should i start. One of my friend said that make good database first.
I want help of you guys to start it. Please help me that how should i design a database and the how should i plan the application??

Thanks in advance
Greg Brannon
Bartender

Joined: Oct 24, 2010
Posts: 563
Wow, that's throwing a log of new skills together, including defining the program's purpose and requirements which you seem to have overlooked. There are tutorials on Swing (no 's' on the end) in the Java Tutorials that I would recommend before adding the complication of a database. The tutorials at this link push the use of Netbeans and its GUI Builder, but I recommend you ignore the GUI Builder part and learn to code the GUI "by hand."

As you do the Swing tutorials, you can think about what the user interface part of your program should be. Once you're comfortable with Swing and have the user interface defined (not written, just defined in your mind), you can construct the other parts of the back end, building from simple to more complex. I tend to focus on the Java part first, because I think databases are boring by themselves, but you could concentrate on the database part first. This should be a long journey of discovery and learning, so take your time and learn along the way. Stop back by when you need more help.


Always learning Java, currently using Eclipse on Fedora.
Linux user#: 501795
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 40052
    
  28
Welcome to the Ranch

Didn’t you have lectures about how to design a database?
It is difficult to tell you what to do first, but I can tell you what to do last: the GUI.
ramandeep Dhanju
Greenhorn

Joined: Jul 13, 2012
Posts: 7
Thanks campbell and Greg.

Whatever i did i did on Notepad while learning So i will do the same.
Yes Designing Database to me seem very confusing even i have read data modelling concept.
Campbell you are saying to do Database first and Greg if i am not wrong you mean do front end first.

Second definitely i will read swing again. Also i am doing it by just assuming an ideal system which a university need. I do not want it more complex by making more tables as i am a beginner.
I have planned informatin on Students(Personal info, Course info, Academic info), University(like all couses, various facilities etc),, them Faculity(Teachers, Subjects they tech, Personal info)
What else we can think of if making a unversity system.

Greg Brannon
Bartender

Joined: Oct 24, 2010
Posts: 563
I don't think Campbell and I disagree. I believe his point is that it's foolish to build an interface for an undefined database. You'll surely have to modify the interface as the database is defined and its design matures, OR your database functionality will be limited by the interface, and that's a crime. My point, perhaps poorly made, is that it's crazy to build an undefined interface using unfamiliar tools. Learn the tools (Swing), define what the interface has to be based on the WHOLE program's purpose and design, and then do the coding.
Winston Gutkowski
Bartender

Joined: Mar 17, 2011
Posts: 8419
    
  23

ramandeep Dhanju wrote:I have planned informatin on Students(Personal info, Course info, Academic info), University(like all couses, various facilities etc),, them Faculity(Teachers, Subjects they tech, Personal info)
What else we can think of if making a unversity system.

Don't forget fees.

But seriously, trying to model an entire University could take you a couple of months or more. Just from the little you've supplied, you've left out things like Buildings, Classrooms, Periods (or Timeslots), Credits, Labs, and probably a whole raft of things I've missed too. And more than that, you're going to have to define the relationships between all these things, and a lot of intersection entities before you can come up with a proper relational model.

My advice: Set your sights a bit lower. How about a specific aspect of a University, such as Student Enrollment? You'll still have plenty of things to consider, but you won't be so overwhelmed by your model.

Winston


Isn't it funny how there's always time and money enough to do it WRONG?
Articles by Winston can be found here
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 40052
    
  28
ramandeep Dhanju wrote:Thanks campbell and Greg.
You’re welcome
. . . Campbell you are saying to do Database first
That is not what I said. I only said to do the GUI last.
. . . I do not want it more complex by making more tables as i am a beginner. . .
You will almost certainly find it easier to handle with many small tables than few large tables.

Take note of what Greg said: whole program’s purpose. Work out that purpose first, and write it down. Take note of what Winston said. Start small and you can enlarge the program later. You should definitely do your work in stages. Get one piece working before adding the next piece. You should also avoid including your program logic in the display classes.
ramandeep Dhanju
Greenhorn

Joined: Jul 13, 2012
Posts: 7
Thanks Greg and Winston

Greg i am sorry for misinterpretation.
Yes i had knowledge of Jfarms I have done Applets but not JApplet. I will read again.

yes CAmplbell i got your point and i am sorry for my wrong understanding. But i did not get your last line "You should also avoid including your program logic in the display classes".
Please clarify this to me?
Winston i like your idea of considering one module.
Even i was lost from two dyas and was changing the Db Diagram again and again. So i will focus on only one module.
If i am not wrong Student enroll ment mean the whole info abt the student right??
Please clarify me this
Otherwise its helpful for start i will keep you updated
Thanks to all
Winston Gutkowski
Bartender

Joined: Mar 17, 2011
Posts: 8419
    
  23

ramandeep Dhanju wrote:If i am not wrong Student enroll ment mean the whole info abt the student right??
Please clarify me this

Well, to me Student enrollment is what happens on the first day that a Student arrives at Uni. Someone will need to take his details, find out what degree they're on, schedule the classes they need to take, and maybe arrange a mentor. That may take a bit of juggling with timetables and class sizes, which I suspect will keep you thinking for a while.

Basically, it's up to you; but I'd keep it simple to start with. Get a piece of paper and write "Student Enrollment App." on the top, and write out maybe half a dozen basic tasks that it involves. Then sit down and start work on the model; but whatever you do try not to add any more tasks until you've got your initial set working. If you find it's too little, you can always add more later on; but if you start out with "My Does-Everything App.", it'll be hard to get out of the starting blocks.

Winston
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 40052
    
  28
If you see that sort of thing, you are mixing logic and display. Don’t. The two belong in separate classes, probably actually in separate packages.
ramandeep Dhanju
Greenhorn

Joined: Jul 13, 2012
Posts: 7
Thanks Everybody

Would you please tell me that how helpful are the tools like Erwin and Visio for data modelling?

Winston Gutkowski
Bartender

Joined: Mar 17, 2011
Posts: 8419
    
  23

ramandeep Dhanju wrote:Would you please tell me that how helpful are the tools like Erwin and Visio for data modelling?

Well personally, I love Visio. It's been around for an awfully long time and doesn't impose UML on you (I grew up with Yourden and Chen).

But to be honest, the "best" one is probably going to be the one you like using most.

Winston
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Designing Java App in core java as a beginer