Skip to main content

how to remove the line between Dialog title and Dialog body ?

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]
andrianiaina
Offline
Joined: 2011-05-18

When calling Dialog.show("title", "text", "ok", "cancel") then in runtime there is a line break between the Dialog title and its body. How to remove this line break because the Dialog is not very pretty to look ?

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

Set the margin of DialogTitle, DialogBody to 0.