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 8 of 8

Thread: Will Java suit my project ?

  1. #1
    Junior Member
    Join Date
    Nov 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Will Java suit my project ?

    Hi all,

    About me : I'm a beginner, I have some basis in C++, some in Java, I have some object-oriented notions, and eventually random knowledge with php/html, msl, or even ahk, etc.

    I'd like to realize a project. It should be simple, but I need to know if Java is the most suitable for that, or if I could consider a better/easier solution as I'm a beginner.


    The idea :

    A 'simple' program displaying a window with different timers. Eventually with colored progress bars. Each timers will have a button "Start timer now", and I could check/uncheck timers so they don't appear on the window. Pretty fun stuffs.

    It looks reasonably doable, but I'm almost nowhere with graphic interfaces. I used Netbeans a few times, and I'm not exactly sure their graphics tools will let me make something optimal and as I wish. (Plus, I didn't like that I couldn't modify/move some of the generated code)


    So, where would you start if you had to do that ? I'm sure "Java can do that", but I don't feel like I have a start-point, unless I stick to those Netbeans tools.. which are maybe perfect but I'm not convinced atm.
    So, what are your thoughts ? Also if you have any tutorial link related to my project, that'd be super great!


    Thanks


  2. #2
    Think of me.... Mr.777's Avatar
    Join Date
    Mar 2011
    Location
    Pakistan
    Posts
    1,136
    My Mood
    Grumpy
    Thanks
    20
    Thanked 82 Times in 78 Posts
    Blog Entries
    1

    Default Re: Will Java suit my project ?

    Plus, I didn't like that I couldn't modify/move some of the generated code
    You can move.

    Instead of being dependent on the IDE's, why don't you have a look at Swing Tutorials?
    Trail: Creating a GUI With JFC/Swing (The Java™ Tutorials)
    Anyone who stops learning is old, whether at twenty or eighty. Anyone who keeps learning stays young. The greatest thing in life is to keep your mind young.

    - Henry Ford

  3. The Following User Says Thank You to Mr.777 For This Useful Post:

    curmudgeon (December 1st, 2012)

  4. #3
    Junior Member
    Join Date
    Nov 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Will Java suit my project ?

    Oh okay, I see better what a Swing is now (I would've called it a Window) :-P .
    I'll have a go with these tutorials and my project started, will be back to you if I'm stuck

    By the way, 2 quick questions : can I do the following with Swings ?
    1) Get rid of the Minimize/Maximize/Close bar to implement these 'inside' the window, and gain space ?
    2) Make that window always active, so it doesn't get covered by other windows ?
    Ty

  5. #4
    Super Moderator helloworld922's Avatar
    Join Date
    Jun 2009
    Posts
    2,895
    Thanks
    23
    Thanked 619 Times in 561 Posts
    Blog Entries
    18

    Default Re: Will Java suit my project ?

    1. Yes, make your windows Frameless

    2. Yes, setAlwaysOnTop(boolean)

  6. #5
    Think of me.... Mr.777's Avatar
    Join Date
    Mar 2011
    Location
    Pakistan
    Posts
    1,136
    My Mood
    Grumpy
    Thanks
    20
    Thanked 82 Times in 78 Posts
    Blog Entries
    1

    Default Re: Will Java suit my project ?

    Quote Originally Posted by helloworld922 View Post
    1. Yes, make your windows Frameless

    2. Yes, setAlwaysOnTop(boolean)
    Setting always on top will only keep the windows on top of your application, not all of the applications running at particular time.
    Anyone who stops learning is old, whether at twenty or eighty. Anyone who keeps learning stays young. The greatest thing in life is to keep your mind young.

    - Henry Ford

  7. #6
    Super Moderator helloworld922's Avatar
    Join Date
    Jun 2009
    Posts
    2,895
    Thanks
    23
    Thanked 619 Times in 561 Posts
    Blog Entries
    18

    Default Re: Will Java suit my project ?

    Setting always on top will only keep the windows on top of your application, not all of the applications running at particular time.
    I'm not quite sure what you mean by this, setAlwaysOnTop will put the window above all other windows not marked as always on top, including windows from other applications. There is undefined behavior if multiple windows open are marked to be always on top. Some systems don't support setAlwaysOnTop, check using isAlwaysOnTopSupported.

  8. #7
    Think of me.... Mr.777's Avatar
    Join Date
    Mar 2011
    Location
    Pakistan
    Posts
    1,136
    My Mood
    Grumpy
    Thanks
    20
    Thanked 82 Times in 78 Posts
    Blog Entries
    1

    Default Re: Will Java suit my project ?

    Quote Originally Posted by helloworld922 View Post
    I'm not quite sure what you mean by this, setAlwaysOnTop will put the window above all other windows not marked as always on top, including windows from other applications. There is undefined behavior if multiple windows open are marked to be always on top. Some systems don't support setAlwaysOnTop, check using isAlwaysOnTopSupported.
    By this I mean, this will only keep the window on top of all those windows which are part of the application, not all other windows related to other applications.

    --- Update ---

    Quote Originally Posted by helloworld922 View Post
    I'm not quite sure what you mean by this, setAlwaysOnTop will put the window above all other windows not marked as always on top, including windows from other applications. There is undefined behavior if multiple windows open are marked to be always on top. Some systems don't support setAlwaysOnTop, check using isAlwaysOnTopSupported.
    By this I mean, this will only keep the window on top of all those windows which are part of the application, not all other windows related to other applications.
    Anyone who stops learning is old, whether at twenty or eighty. Anyone who keeps learning stays young. The greatest thing in life is to keep your mind young.

    - Henry Ford

  9. #8
    Super Moderator helloworld922's Avatar
    Join Date
    Jun 2009
    Posts
    2,895
    Thanks
    23
    Thanked 619 Times in 561 Posts
    Blog Entries
    18

    Default Re: Will Java suit my project ?

    Quote Originally Posted by Mr.777 View Post
    By this I mean, this will only keep the window on top of all those windows which are part of the application, not all other windows related to other applications.
    That's not the behavior I noticed on my computer, and shouldn't be the intended behavior. I'm using Windows 7 and Java 7.

Similar Threads

  1. Random suit and card with arrays
    By SilentNite17 in forum What's Wrong With My Code?
    Replies: 7
    Last Post: March 1st, 2012, 10:28 AM
  2. Replies: 0
    Last Post: August 30th, 2010, 07:34 AM
  3. Replies: 2
    Last Post: August 1st, 2010, 06:29 AM
  4. [SOLVED] I Need some help for a java project
    By george in forum Algorithms & Recursion
    Replies: 8
    Last Post: April 24th, 2010, 11:12 AM
  5. Java project
    By monika88a in forum AWT / Java Swing
    Replies: 5
    Last Post: January 20th, 2010, 12:10 AM