Cambio de interfaz de usuario en la aplicación Swing en todas las plataformas

My Swing Application's GUI is built using Window Builder Pro GUI editor. Layouts used are MigLayout y la AbsoluteLayout. Application is developed using Windows Machine, So UI is well aligned and neat in Windows, but when I run the same application in Mac OS X, Application's Frame couldn't accommodate the components inside its bounds. I mean, size of Components inside the frame changes across platforms. When I give extra space(Increased frame bounds), it looks nice in Mac but weird in Windows. ¿Hay alguna forma de tener Frame or Panel to grow with respect to its contents or Components.

preguntado el 31 de enero de 12 a las 08:01

2 Respuestas

Don't use the absolute layout. Layout managers are used precisely to avoid the kind of problems that you're facing.

Respondido el 31 de enero de 12 a las 12:01

+1, Exactly, seems like you just stole my answer, hehe just kidding :-) Regards - cOw nIcE

¿Qué tal MigLayout? I have used it everywhere. Are they similar to Absolute Layout? - Avergonzado

If it suits your needs, go with it. It's a well-known layout manager. - JB Nizet

Asumiendo que usaste AbsoluteLayout because none of the existing layout managers suited your needs,

Echa un vistazo a Creación de un administrador de diseño personalizado and use one instead of AbsoluteLayout.(Before that make sure none of the present layout managers suit your need)

Respondido el 31 de enero de 12 a las 13:01

- I dont' like the color of my car; - Here's a brief guide on how to build your own car paint factory so you can create the color you want! - Denis Tulskiy

@DenisTulskiy I specified, Do this only in case you dont want to use ANY OF THE EXISTING COLOUR for your car :) Do you have any other option?? - COD3BOY

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.