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

Thread: Eclipse : Please Help

  1. #1
    Junior Member
    Join Date
    Feb 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Eclipse : Please Help

    Hello Everyone,
    I'm new to the forum. Here is some quick background on my computer and programming experience to better help provide a solution.

    Computer:
    2010 13.3in MBP
    OSX Mountain Lion
    Running Eclipse (newest version)

    Programming Experience:
    Beginner. I took half of a semester of Python and I just started a Java class.

    In my class we are always asked to exceed out program requirements. I have already done the program. It allows you to input 5 integers into dialog boxes. It uses if statements to tell you what the largest and smallest numbers are. It always tells you if the largest is divisible by the smallest. It displays all of the results into a single message box. That was the requirements. Done. I want to add color to my messagebox and the dialog boxes and I don't know how. My Java book is confusing me as to how to add color and the web searches I've done are fruitless. Could anyone help?

    Question (restating it): I want to add color to the message box and the dialog boxes. How do I do it?

    Thank you for reading. Any help is appreciated.


  2. #2
    Super Moderator curmudgeon's Avatar
    Join Date
    Aug 2012
    Posts
    1,130
    My Mood
    Cynical
    Thanks
    64
    Thanked 139 Times in 134 Posts

    Default Re: Eclipse : Please Help

    What GUI library are you using as this is critical towards helping find a solution? What have you tried to do to solve this? What specifically do you mean by adding color? Color where? What is a "messagebox"?

    And most perplexing to me, what does this question have to do with Eclipse? Eclipse is just an IDE that allows you to create, compile and run Java programs, and should have little to do with the type of questions you're asking.

  3. #3
    Junior Member
    Join Date
    Feb 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Eclipse : Please Help

    I'm sorry if this is in the wrong area. I'm new and I wasn't sure where to put it. I don't know what library I am using. Whatever is standard with Eclipse? I haven't tried anything because I haven't found a source that tells me how to accomplish it. Sorry - the actual code for what I termed a message box is:

    JOptionPane.showMessageDialog

    I want to make the box a different color than its default.

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    SW Missouri
    Posts
    20,154
    Thanks
    49
    Thanked 2,158 Times in 2,131 Posts

    Default Re: Eclipse : Please Help

    A good place to see what can be done with a class is to read the API docs for it. Here is a link:
    Java Platform SE 7

    Find the class in the lower left, click on it and the doc will be shown in the main frame.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Replies: 24
    Last Post: August 4th, 2014, 12:49 PM
  2. Replies: 1
    Last Post: October 20th, 2012, 12:21 PM
  3. My Eclipse
    By vats.upadhyaya in forum JDBC & Databases
    Replies: 0
    Last Post: July 18th, 2012, 12:24 AM
  4. Beginners Eclipse Tutorial. How to run first java application on Eclipse?
    By JavaPF in forum Java Code Snippets and Tutorials
    Replies: 13
    Last Post: June 24th, 2011, 12:26 AM

Tags for this Thread