how to coustomise JOptionPane

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ramola
    New Member
    • Sep 2007
    • 35

    how to coustomise JOptionPane

    hi,

    I was wondering if i can customise a JOptionPane ???
    ex : A JOptionPane by default has a background color gray........... .. can i change it ?? can i put some images in the background ?

    Its necessary coz............ in my game i cant afford having a JOptionPane tht looks sad .........I want to be catchy !!!


    kind regards,
    Malavika
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by malavikarane
    hi,

    I was wondering if i can customise a JOptionPane ???
    ex : A JOptionPane by default has a background color gray........... .. can i change it ?? can i put some images in the background ?

    Its necessary coz............ in my game i cant afford having a JOptionPane tht looks sad .........I want to be catchy !!!


    kind regards,
    Malavika
    Apart from JOptionPanes you can also use JFrames and JDialogs ...

    Comment

    • Ramola
      New Member
      • Sep 2007
      • 35

      #3
      Originally posted by r035198x
      Apart from JOptionPanes you can also use JFrames and JDialogs ...
      so does tht mean " I cant customize JOptionPanes ".......... ...

      kind regards ,
      Malavika

      Comment

      • r035198x
        MVP
        • Sep 2006
        • 13225

        #4
        Originally posted by malavikarane
        so does tht mean " I cant customize JOptionPanes ".......... ...

        kind regards ,
        Malavika
        Read the API specs for it to see how much you can do with them.

        Comment

        • Ramola
          New Member
          • Sep 2007
          • 35

          #5
          Originally posted by r035198x
          Read the API specs for it to see how much you can do with them.
          thanks alot !
          will let u know the development ! :)

          Apart from tht ( r035198x ) i was wondering if u could plz.....plz.. look into another thread called ' jmf ' .......

          Its a very stupid thing tht i might be missing in ' jmf ' ............if u colud plz pointit out to me !

          kind regards,
          Malavika

          Comment

          • dipti000
            New Member
            • Aug 2013
            • 1

            #6
            can use
            UIManager.put(" OptionPane.back ground",Color.R ED);

            Comment

            Working...