Results 1 to 4 of 4

Thread: 2 part

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2002
    Location
    USA
    Posts
    432

    2 part

    Ok

    1:) How can i only have the X button and not the max and min buttons on my Application



    2:) anyone know where i can get a example where i can have Java read an XML file ?

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    #1 - Use the setResizable() method, and pass in false. Works in Swing, can't speak for AWT if that's what you are looking for.

    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2002
    Location
    USA
    Posts
    432
    Yes was talking about Swing

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2002
    Location
    USA
    Posts
    432
    got some more

    How can i make the JComboBox list open Up and not Down?


    i have this code but it sucsk know a better way to set the screen location?

    Code:
          Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
          Dimension frameSize = frmMain.getSize();
          if (frameSize.height > screenSize.height)
          {
           frameSize.height = screenSize.height;
          }
           if (frameSize.width > screenSize.width)
          {
           frameSize.width = screenSize.width;
          }
           frmMain.setLocation((screenSize.width - frameSize.width)  / 2 -80,(screenSize.height - frameSize.height) / 3);
         }

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