working on replacing java.awt classes