Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Java Frame.setSize()

  • 15-05-2001 9:47pm
    #1
    Closed Accounts Posts: 286 ✭✭


    I've got a java app with a frame which is setSize( 500, 500 ) in the main method. when i load it its not the full size, i lose 8 pixels in width and 27 in height, is this normal, are they allocated for the border and title bar ?
    If so its really annoying.

    Thanks

    Mr. Chuffy


Comments

  • Registered Users, Registered Users 2 Posts: 2,281 ✭✭✭DeadBankClerk


    app?

    applet?

    if its an applet and u are using applet viewer it does rob some pixels from you, but in html it works fine.

    dont know about applications tho.


  • Closed Accounts Posts: 286 ✭✭Kev


    Its actually both, my main class extends Applet but includes a main() method which instanciates an object of itself so it can be run as an application or as an applet.
    i was running it as an application when it was robbing me pixels.


  • Closed Accounts Posts: 345 ✭✭harVee


    Have you got the pack(); command in your main method. If so take it out. It might make a difference (then again it might not).


  • Closed Accounts Posts: 286 ✭✭Kev


    No theres no pack call.


Advertisement