How to disable the highlight i get on a JButton when it's helddown\pressed?

couldn't find it anywhere..is there a way to disable the blueish highlight i get when it's pressed?or is the only option to make a glass pane over it?

setUI of the JButton and override paintButtonPressed with an empty method:JButton button = new JButton ("Click");
button.setUI (new MetalButtonUI () {
    protected void paintButtonPressed (Graphics g, AbstractButton b) { }
});Suitable for Metal L&F only.
May I ask the reason behind this requirement?
db

Similar Messages

  • How to stop the cursor from moving on its own when file button is pressed and then each button drops down until it stops on the far right

    wireless keyboard and mouse were switched with a usb mouse and keyboard and problem still persisted
    Problem is off and on with no set time
    problem occurs with or without internet connection
    using mt lion and have not gone to maverick

    Could you provide some more information? Is this in any specific application or all applications? Have you tried a restart? Have you installed anym new software recently?

  • I have changed the apple ID (email, but on my iphone , the icloud is stil asking me to log in whit the old email.And it is poping-up on every 10 seconds.I never used icloud, and i dont want to use it.I just dont know how to disable the icloud.

    i have changed the apple ID (email) but on my iphone , the icloud is stil asking me to log in whit the old email.And it is poping-up on every 10 seconds.I never used icloud, and i dont want to use it.I just dont know how to disable the icloud.

    If you see that pop up you enabled icloud. Whether you want or do not want now to use it irrelevant until you actually disable activation lock.
    In order to do that you have to change your apple id back to do that just long enough to sign in and back out. System will ask you to verify, don't.
    Just sign in on the prompt you getting and then logout. Once done, change apple id to what you have now and verify. Then decide if you want to
    use icloud (who does not want to be able to track their phone if lost or stolen).

  • How to disable the previously entered user ID's that automatically appear. For example ; when logging into email , first letter of user ID promts the previously used email user IDs... Want to disable this feature---How can ot be done ?

    Question
    How to disable the previously entered user ID's that automatically appear. For example ; when logging into email , first letter of user ID prompts the previously used email user IDs... Want to disable this feature---How can it be done ?

    *Click the (empty) input field on the web page to open the drop down list
    *Highlight an entry in the drop down list
    *Press the Delete key (on Mac: Shift+Delete) to remove it.
    *http://kb.mozillazine.org/Deleting_autocomplete_entries
    * Tools > Options > Security: Passwords: "Saved Passwords" > "Show Passwords"
    * Tools > Options > Privacy > History: "Remember search and form history"
    * https://support.mozilla.com/kb/Remembering+passwords
    * https://support.mozilla.com/kb/Form+autocomplete

  • How to disable the status icon in Skype 4 for Andr...

    Dear Skypers,
    How to disable the status icon in Skype 4 for Android phones?
    The guide on this following support page not working anymore: https://support.skype.com/en/faq/FA12359/how-do-i-enable-or-disable-the-status-icon-in-skype-4-for-a...
    Older version has the option to disable Skype Status and get rid of the Skype icon on Android status bar. But latest 4.4.0.31835 could not disable Skype Status in notifications settings. :/
    Device: Google Nexus 4
    Android: 4.3 JWR66Y
    Skype: 4.4.0.31835
    Please bring back the option to disable the Skype icon on Android status bar. This is the main reason I uninstall Skype. :/
    Kudos to the team, the apps is really smooth and fluid to use. Would be nice if you guys are following the Android Design Principles and using Google Cloud Messaging for push notification to improve User Experience and battery life.
    Kind regards,
    /chrone
    everytime i get ahead, i feel more dead.
    Solved!
    Go to Solution.
    Attachments:
    how to get rid of skype icon on android status bar.png ‏46 KB

    Long click on this notification a sub menu having field "App info" would appear goto App Info. You can goto there by "Manage Apps">"Skype" also. 
    Uncheck Option "Show Notifications" A dialog will open. Don't worry about notifications for now just click OK. Now the notification icon skype has also been removed. 
    Now simply check "Show notification again". After doing this you would get notifications but skype icon would not be shown in the status bar anymore.
    Issue: this is just a trick you need to repeat this every time sign out and sign in again. Mostly you don't do that so no need to worry.

  • How to disable the EO cache in AM ?

    My customer share AM defination codes between two applications,and let EO coexist in multi AMs.And they have build a lot of codes.I wonder if this will exist trouble.
    from the support documents, I know the AM has an EO cache. after one client update an EO,if second client get the EO from the same AM,It will get it from the cache. What I want to know:
    1.if the EO also exists in another AM2 in same Application,can the AM2 cache refresh data according to the AM1 update?
    2.if AM2 can't be refreshed,how to disable the AM2 EO cache,then let all query directly to database ?

    I need to clearify the scenario,this is really happening in a customer project,I just have a chance to review the codes today.
    A team develops a system, they use AM1 to IUD data,B team also want to use the data,they have a separate app,and dont' want to define from EO to VO again,but A team don't want B team take the insert and update ability to A database, so they develop a simplify AM2,and give the source codes to B team.
    I feel what they do is not right,but they must put it online and have no time to listen to me.Currently I want to find some fast way to avoid the data unconsistency risk.
    But I dont know if am2 alone in an app,what the app should do to get refreshing data which is updated by another app.
    BTW, from the customer concern,they could not create AM2 from AM1.because the AM1 and AM2 will not coexist in same app.

  • How to Disable the Lead selection Action on aTable n How to Refreh a Page

    HI....
    1)How to Disable the Lead selection Action on aTable n How to Refreh a Page r web dynpro application.
    In my case i have a table n user enters data on multiple rows in table , n i have some input fields outside of table for those Inputs fields am settiing the data  at the screen initilization(in Init() moethod by hard code).the problem is whenever the is clicking in th 2nd row of a table the Lead Selection is triggerig and the data in the Input Fields outside the table is not displayinig.
    So by removing the lead Selection Action of a table i thought i can reslove this,
    2) How to refresha page(like we click F5 on key board),is it can be done thru code in web dynpro application
    Regards
    Rajesh

    Hi,
    You did not explained what is your functionality or coding in leadselection. Is that action on leadselection is necessary for you?.
    1)If you just want to remove the action then go to table properties and remove the action for leadselection.
    2)If you still want to continue with your leadselect action, then what you can do is.. write the code in leadselection action to again set the input fields which are out from table.  That is what you did in your init method.
    Page Refreshing
    3) What do you mean by page refreshing? is that refreshing your table only or both the table and input fields. 
         What I understood is you are allowing the user to enter values in table and soon after pressing a button the values should be saved and the data in input fields shld be deleted.  For this if you only invalidate the node then the user entered data will be lost. 
    So what you do is after getting the input data from the user add it to a ArrayList and then invalidate the node which clears the data in input field. Finally bind the Arraylist to your node.  see the following code. This is a concept make changes according to your requirement
    ArrayList list1=new ArrayList();
    wdContext.nodeAbc().bind(list1);
    IPrivateExcelviw.IAbcElement ele = wdContext.createAbcElement();
      ele.setNo(wdContext.currentAbcElement().getNo());
      ele.setName(wdContext.currentAbcElement().getName());
      ele.setMarks(wdContext.currentAbcElement().getMarks());
      list1.add(ele);
      wdContext.nodeAbc().invalidate();
    wdContext.nodeAbc().bind(list1);
    Revert me if you have any doubts
    Regards
    Raghu
    Edited by: Raghunandan Madarikuruva on Oct 16, 2008 8:07 AM

  • How to disable the minimize button on the JFrame?

    Does anyone know how to disable the "Minimize" button on the JFrame (Window)?

    Why bother using a JFrame at all? Just extend JDialog, and there won't be a minimize button to worry about at all. The only drawback is that a JDialog doesn't put an icon in the taskbar, so you have to move/close other windows until you can see the JDialog window on the desktop.
    The windowMinimized stuff doesn't let you stop what the window is doing -- you just get an event telling you what happened.

  • How to disable the maximize and minimize button of JDialog

    How to disable the maximize and minimize button of JDialog. I have an application which has JDialog box, but in that i should not have maximize and minimize button.If any one come across this problem and got a solution please helpout me.

    Btw, isn't it a little strange to ask thisquestion...
    Actually, I thought it was meant to be sardonic...
    Dialogs don't have those buttons, so the question
    n should be to the OP how did he/she get them in the
    first place? Cuz they aren't using JDialog to do it,
    unless it's something to do with a specific look &
    feel.I somehow missed that, good point :-)

  • How to disable the list of websites viewed under the history tab ..?

    How to disable the list of websites viewed under the history tab..?
    I want to remember the history of websites viewed but I do not want to appear under the history when I open a new website. I can see that only 15 websites can be viewed under the history tab
    Please do the needful at the earliest
    Thanks & Regards
    Srinivas

    srinivsd,
    Thanks for getting in touch with Mozilla Support! If you want to '''COMPLETELY''' disable your browsing history, take a look at https://support.mozilla.org/en-US/kb/settings-privacy-browsing-history-do-not-track#w_never-remember-history. That will allow you to disable history tracking in Firefox.
    However, if this is not what you were asking, please let me know and I will assist you further.
    Thanks!

  • How to disable the Unified CCX Historical Reports Scheduler

    Hello All,
    I'm trying to see if there is a way to disable the Historical Reports Scheduler from Auto-Starting when I boot up the PC (*i.e. My user PC).
    The PC is running Windows XP, and the CCX Historical Reports App is running version 8.0(2.13).
    I checked for it in services.msc program and also in each user's "StartUp" folder but cannot find where it is getting started from. Anyone know how I can prevent this from Auto-Starting? I don't actually have any reports scheduled and I really on use the Unified CCX Historical Reports app once in a while...
    Any thoughts or suggestions would be much appreciated!
    Thanks in Advance,
    Matt
     

    Hey Carlo, thanks for the reply.
    Excellent, that did it! Thanks alot, very much appreciated... I couldn't remember the command to bring up that utility. I've been using Linux for the last few years for the most part and got a little rusty with some of the Windows stuff, so thanks!
    Thanks Again,
    Matt

  • How do I disable the automatic startup on HP Photosmart Premier when I turn my computer on?

    Someone else posted ths question a month ago, but still no answers.  Anyone?
    How do I disable the automatic startup on HP Photosmart Premier when I turn my computer on?
    Windows XP, SP3 operating system recently re-installed so I also reinstalled my printer software.  Now, for some reason, each time I turn my computer on, my HP Photosmart C4100 all-in-one photosmart premier software opens.  It is not in my startup.  This slows down my computer terribly, which is why I never used the program before my re-install.  How can I disable this feature?  I only print, I don't use it for photos.
    Any help here is appreciated.

    Run msconfig.exe from the start button (type in msconfig).  When it comes up go to the Startup tab and find and deselect the HP product you do not want to start.  Save and reboot computer.  Now try.
    Say thanks by clicking the Kudos Thumbs Up to the right in the post.
    If my post resolved your problem, please mark it as an Accepted Solution ...
    I worked for HP but now I'm retired!

  • How to disable the Super User menu - (Right click windows icon menu) - Server 2012 R2 - RDS

    Greetings all,
    Can anyone please advise how to remove the Administrator / Super User menu that appears when you right click the Windows Icon (old start button) in Server 2012 R2 - for RDS users. I have searched and been able to disable access to each of these menu items (Control
    Panel, Event Viewer, Run, etc). But I am searching for a way to completely remove the menu. This menu also appears when you use Win-X shortcut.
    Hope someone can help.
    Terry

    Hi Terry,
    You can try following points, might helpful in your case. Go to 
    C:\Users\Default\AppData\Local\Microsoft\Windows 
    there you will see file called WinX 
    Right click this file and copy then go to
    C:\Users\YOUR_USERNAME\AppData\Local\Microsoft\Windows 
    then paste the file into the folder.
    NOTE: replace YOUR_USERNAME with your actual username. 
    Hope it helps!
    Thanks.
    Dharmesh Solanki
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • I have an older mac and it wants me to update to itunes 10 but my mac is too old and I cant figure out how to disable the update

    I have an older mac and it wants me to update to itunes 10 but my mac is too old and I cant figure out how to disable the update so I can use the store.

    If Software Update is offering the update then it would be compatible with your model.  Unfortunately, you haven't provided us with any information on your hardware that would enable us to determine if it really is too old.
    If you really wish to disable the update alert then the next time Software Update opens, select the update in the list then select "Ignore update" from SU's Update menu.

  • How do I disable the sound effect on my MacBook Air when adjusting the volume

    how do I disable the sound effect on my MacBook Air when adjusting the volume

    Thanks Ralph, that fixed it, I did uncheck that box earlier however I had not restarted the computer. Thanks again.

Maybe you are looking for