[JAVAGUI] separate the method to retrieve de background/foreground component color