Re: [UFO-devel] Text and buttons...
Status: Beta
Brought to you by:
schmidtjf
From: Johannes S. <sch...@us...> - 2005-09-13 08:24:56
|
On Monday 12 September 2005 22:25, Mobius wrote: [...] > button_prev = new UButton("Prev"); > button_prev->setPreferredSize(UDimension(button_size, 28)); > load_window->getContentPane()->add(button_prev); > > button_next = new UButton("Next"); > button_next->setPreferredSize(UDimension(button_size, 28)); > load_window->getContentPane()->add(button_next); [...] > Is there a function that automatically centers the text in a button? Try this: button_prev->setHorizontalAlignment(AlignCenter); Regards, Johannes |