Is it possible to set different look and feel for different components?

java, look-and-feel, swing

Solution

I have a number of components on panel and I want to apply different look and feel to different components. Is it possible?

Yes is possible, don't do it, because most of Look and Feel have got different

Color, Font, Foreground, Background

Size or PreferredSize on the screen

use another methods from API for LayoutManager

implemented various methods in the JCOmponents APIs e.g. Color, Font, Foreground, Background

simple answer ---> is possible to create a awfull mess on the screeen

I'd suggest to use todays Java Look and Feels, most of them have various colors themes, part of them seperates themes and with option to change Colors themes, then there you can mixing built-in themes or/and with Color themes for each of JComponents

I think that with success you can to set Color, Font, Foreground, Background only, Look and Feels required basic knowledge about how JComponents and/with LayoutManagers together works

Problem

I have a number of components on panel and I want to apply different look and feel to different components. Is it possible?

Original source

Related problems