devxlogo

Create a Color Using “&lt<” and “|” Operators

Create a Color Using “&lt<” and “|” Operators

This tip shows you how to create the RED color using the “import java.awt.*;class draw_red_rect extends Frame{Color col=null;public draw_red_rect() { super(); }public void init() { setLayout(null); setSize(100,100); int A=255<

devx-admin

Share the Post: