Jump to content

Hey guys,

 

So I recently upgraded from Ubuntu 16.04lts to 18.04lts. (Simply because i wanted to)

I have also recently been developing a software in Java which is where the issue seems to be??

 

So the software is destined for Windows deployment, but the behavior of the software has been linear between Linux and Windows (Except for one feature, but that's an unrelated linux issue destined for another post eventually)

 

The issue that I'm having basically is this,

At runtime, the GUI of my software opens in it's maximized window state using the property JFrame.MAXIMIZED_BOTH.

On Windows, it loads just fine, maximized an all, same for Ubuntu 16.04lts. But on my fresh install of 18.04 a few things happen.

For one the window does not open maximized, for two the window isn't resizable (I configured this view TO BE resizable), and for three the option to maximize the window isn't in the top bar of the frame, it simply offers minimize to dock and close. The were not issues on 16.04, not an issue on windows. I'm testing with the same exact source files across the board.

On 18.04 if I reduced Preferred, and minimum sizes and disable then reenable resiablilty, at call time the window is maximized, but there is no actual frame, i.e. no exit button, no minimize etc.

 

For the front end part I am using Netbeans form creator, and this is not an issue I've experienced before. Is this an issue with GNOME or si there something I need to change?

 

If additonal info is needed or clarification is needed, please ask.

Thanks in advance

Link to comment
https://linustechtips.com/topic/960763-jframe-behavior-is-strange/
Share on other sites

Link to post
Share on other sites

Alright so I kind of figured it out.

I set the minimum size to 1920 x 1080, and for some reason the combination of this along with the maximum everything and such broke the frame but only on 18.04. I set the new minimum to 960x540 and it seems to be working just fine now. 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×