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: How do I create a Java messagebox an on form messagebox? Stuck

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

    Default How do I create a Java messagebox an on form messagebox? Stuck

    How do I create a Java messagebox an on form messagebox? Stuck

    I know how to create a regular popup messagebox as below:

    JOptionPane.showMessageDialog(this, "Couldn't log in");

    But I don't know how to create one as below, I'm stuck on how we create this sort of messagebox..

    NJPoR.jpg


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: How do I create a Java messagebox an on form messagebox? Stuck

    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Member andbin's Avatar
    Join Date
    Dec 2013
    Location
    Italy
    Posts
    443
    Thanks
    4
    Thanked 122 Times in 114 Posts

    Default Re: How do I create a Java messagebox an on form messagebox? Stuck

    Quote Originally Posted by aLOTAmistakes View Post
    But I don't know how to create one as below, I'm stuck on how we create this sort of messagebox..
    The dialog you have showed seems a "custom" dialog, that you can create extending JDialog and creating its UI using a mix of components and eventually more layout managers.
    The pink area where there is the error message, can be a simple JLabel (with appropriate styles). And it can be made visible when there is the error.

    All this has nothing (by itself) to do with JOptionPane. To develop a similar dialog you need knowledges on components, layout managers and also requires a bit of "logic". Nothing more.
    Andrea, www.andbin.netSCJP 5 (91%) – SCWCD 5 (94%)

    Useful links for Java beginnersMy new project Java Examples on Google Code

Similar Threads

  1. How would I create this solution algorithm using pseudocode? Im stuck..
    By meghere in forum What's Wrong With My Code?
    Replies: 3
    Last Post: February 14th, 2013, 01:52 AM
  2. java programmers form website create with PHP
    By clickondeepu in forum Member Introductions
    Replies: 0
    Last Post: January 10th, 2013, 05:40 AM
  3. Is there a way I could create/get a program that outputs a form in BBC?
    By Elite Cow in forum Java Theory & Questions
    Replies: 5
    Last Post: October 11th, 2011, 01:01 PM
  4. How do i create Sub Form
    By hadhebola in forum Object Oriented Programming
    Replies: 1
    Last Post: July 16th, 2010, 08:21 AM
  5. Java Swing :Back Button from one form to another form
    By srinivasan_253642 in forum AWT / Java Swing
    Replies: 1
    Last Post: December 26th, 2009, 09:51 AM