Skip to main content

Which gives better performance Res Edit or Hand Coding?

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
1 reply [Last post]
abuhmead1987
Offline
Joined: 2010-04-21

Dears,

I want to know if Designing the GUI using the Resource Editor better of hand coding or the contrast?

And which is the best for flexibility?

Kind Regards,

Mohammad Abu Hmead

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
vprise
Offline
Joined: 2003-11-07

While theoretically you can always hand code more efficiently the resource editor is pretty efficient since it stores binary data and has no parsing cost for form creation. However, it does pose a cost of keeping the resource file in memory (or reloading it every time to change a form) which can be costly on very low RAM devices. I think the convenience outweighs the cost by far.