Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Few questions from beginner

  1. #1
    Junior Member
    Join Date
    Nov 2012
    Location
    Jasło, Poland
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Few questions from beginner

    Hello everybody!
    At the beginning I'm sorry for all mistakes I'll made in my post, if something is unclear please write me, I'll explain it. I'm from Poland and I know that my english is not as good as I would like

    I have many experience in programming web portals, I know PHP, JavaScript, Mysql database and few others. I have a knowledge about Pascal and C++. I have written few bigger projects in these languages, but I would like to try something else. Java looks nice and I would like to learn it. In my opinion beginners should learn by reading another and writing theirs own code (in this way I've learnt PHP and JavaScript). I decided to write a SMALL game in Java (like a football manager). But I would like to write it with graphic library Swing.

    1) My first question is: application like my game should be written in clean Swing or using NetBeans Swing GUI Builder (I need to have in this game plenty of buttons, dialog boxes and many other) ? In my opinion beginners should learn programming by writing, not by locating elements and programming them, am I right ?
    2) Second question is about storing data. For example I would like to have 5 teams with 11 players. Each playes should have few skills. How should I store that information? In XML files in hidden folder ? But what if somebody will find it and change values ? Is any method to code this files ? Or is another way to do this ?


    I hope that I didn't make many mistakes and I'm sorry for chaotic style of my statement. I'm sure that somebody can replay for my questions. Thanks in advance !


  2. #2
    Grand Poobah
    Join Date
    Mar 2011
    Posts
    1,545
    My Mood
    Grumpy
    Thanks
    0
    Thanked 167 Times in 158 Posts

    Default Re: Few questions from beginner

    1. My personal opinion is that code generated by GUI builders are the spawn of Satan. They produce a lot of incomprehensible code that is hard to read by experienced programmers, let alone learners. If you want to learn Swing then learn to write the code yourself.

    2. Database or look into Serialization.
    Improving the world one idiot at a time!

  3. #3
    Junior Member
    Join Date
    Nov 2012
    Location
    Jasło, Poland
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Few questions from beginner

    Thank you for your reply

    1. So it works like a WYSIWYG editors in HTML? I expected that... Ok, so I'll learn Swing without any GUI builders.
    2. Database like a MySQL or PostgreSQL? But it requires access to internet or install SQL database on client's computer, doesn't it?

Similar Threads

  1. Beginner: some questions
    By norenberg in forum Java Theory & Questions
    Replies: 3
    Last Post: August 4th, 2012, 05:57 PM
  2. A few questions
    By elatechris777 in forum Java Theory & Questions
    Replies: 2
    Last Post: May 5th, 2012, 06:33 PM
  3. Few questions
    By CSUTD in forum What's Wrong With My Code?
    Replies: 1
    Last Post: October 11th, 2011, 09:23 PM
  4. Many questions
    By SharpT in forum What's Wrong With My Code?
    Replies: 11
    Last Post: January 18th, 2011, 09:56 PM
  5. [SOLVED] Some serious questions,
    By Time in forum What's Wrong With My Code?
    Replies: 3
    Last Post: May 17th, 2010, 02:52 AM