CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: Custom JDialog

  1. #1
    Join Date
    Mar 2000
    Posts
    123

    Custom JDialog

    Is it possible to get the same dialog graphics for messages (!), confirmations (?), etc. for custom dialogs as you get on the predefined dialogs?


  2. #2
    Join Date
    Mar 2000
    Location
    Kaysville, UT
    Posts
    228

    Re: Custom JDialog

    Those icons are just gifs that are loaded by the predefined dialogs. I don't remember where they are located, but you can find them. One thing you can do is create a JLabel or ImageIcon from the gif you want to use and add it to your custom dialog.


    "There's nothing more dangerous than a resourceful idiot." ---Dilbert
    BWAHAHAHAHAHAHA! ---Murray

  3. #3
    Join Date
    Mar 2000
    Posts
    123

    Re: Custom JDialog

    So there's no system defined function/variable I can 'get' them from?


  4. #4
    Join Date
    Mar 2000
    Location
    Kaysville, UT
    Posts
    228

    Re: Custom JDialog

    Not that I am aware of. There may be, but I don't know. I've always done it the way I mentioned.

    "There's nothing more dangerous than a resourceful idiot." ---Dilbert
    BWAHAHAHAHAHAHA! ---Murray

  5. #5
    Join Date
    Mar 2000
    Posts
    123

    Re: Custom JDialog

    Thanks, I'll try your method.


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