CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2001
    Location
    NC, USA
    Posts
    10

    Simple Message Box -- Do I have to create a new class?

    Hi --
    I have a Java app that shows a print dialog box so that the user can change the printer settings. Right before this pops up, I need to put a message box that reminds the user of what settings they need to use. Is there a simple way to do this (like the alert() in javascript)... or will I have to create a new class & create the message box myself?
    I'd appreciate any advice -- thanks!


  2. #2
    Join Date
    Jun 1999
    Location
    Eastern Florida
    Posts
    3,877

    Re: Simple Message Box -- Do I have to create a new class?

    You should probably go ahead and write the class you need. It is something that you'll want to reuse in future programs, so make it general purpose and you'll thank yourself in the future.

    Norm
    Norm

  3. #3
    Join Date
    Sep 1999
    Location
    Madurai , TamilNadu , INDIA
    Posts
    1,024

    Re: Simple Message Box -- Do I have to create a new class?


    Checkout JOptionPane.showMessageDialog()


  4. #4
    Join Date
    Feb 2001
    Location
    NC, USA
    Posts
    10

    Re: Simple Message Box -- Do I have to create a new class?

    Thanks -- it looks like the JOptionPane.showMessageDialog() is what I need because this just needs to be a short little message with an OK button.
    Thanks!


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured