消除对焦点默认的蓝色 [英] removing the default blue color on focus

查看:196
本文介绍了消除对焦点默认的蓝色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个创建一个自定义按钮场,当按钮焦点默认的蓝色背景快到了,我想删除蓝色背景。其实我把图像上的按钮和图像有一定的面积​​是透明的。当自定义按钮是焦点则显示蓝色背景。我想删除蓝色背景。

I have a created a custom Button field , when the button is on focus default blue background is coming , i want to remove that blue background . actually i am placing image on button and on image there are certain area which is transparent . when that custom button is on focus then blue background is displayed . i want to remove that blue background.

很多

推荐答案

覆盖方法

protected void drawFocus(Graphics graphics, boolean on) {
        if (on) {
                 //draw your own custom focus.
                }
            }

这篇关于消除对焦点默认的蓝色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆