setMaximumSize not working in java

后端 未结 4 1214
萌比男神i
萌比男神i 2020-12-19 10:06

I hava a java program with a JFrame

I am using absolute positioning

here is my main function

public static void main(String[] args) {
    ape         


        
4条回答
  •  感情败类
    2020-12-19 10:27

    see http://forums.sun.com/thread.jspa?threadID=5342801:

    It's a known bug:

    • http://bugs.sun.com/bugdatabase/view_bug.do;?bug_id=6200438
    • http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4744281
    • http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4320050

    Maybe you could use

    Ape.setResizable(false)
    

    instead?

    PS: It's a convention to give classes names that start with a capital letter and variables ones with a small letter, not vice versa.

提交回复
热议问题