java - Can I apply a Swing look and feel to AWT widgets? -


i'm developing on legacy java desktop application mixing swing , awt controls. can apply system , feel swing controls of course, can same awt ones? if not, can implement bridge in way?

the basic answer "no". awt components backed native os components, either directly (via os supplied libraries) or indirectly (via awt based native components). it's possible awt linked "older" component libraries of components won't match current os "look , feel", using newer component libraries.

in either case, can't effect how these components (and not through swing's , feel api).

ok, might little hear say, the story of awt says "java's guitoolkit had use native widgets provided host window system, whether windows, motif, or mac. mimicking look-and-feel in java wasn't enough; had real native components."


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -