I want to change the color, of the jbutton, when pressing on.

Hey,
There was a mistake in my last topic what I meant was that I want to change the color, of the jbutton, when pressing on, after pressed.he has to get his old colour. Now I already can change between the colours, but not, when i press on it, and i keep it pressed. It stays the standard-colour: gray.
Best regards
Stefan Parijs

use this method to setr color
JButton1.setBackground(java.awt.Color.pink);
for event use the mousePressed or mouseDragged as the case you desire, there are other events too like mouseClicked,mouseMoved, mouseReleased,mousewEntered,m mouseExited
check any method that suit your requirement
best of luck

Similar Messages

  • Want to change the country when the account balance is not 0

    My account has balance of $0.41. I want to change the country, but it can't be. I can't purchase products of less than 0.99$. So what should I do?

    Contact iTunes Support - http://apple.com/emea/support/itunes/contact.html - and ask them to clear your balance.

  • I want to change the size and color of text in call out boxes and text boxes. How can I do this? Jack

    I want to change the size and color of text in call out boxes and text boxes. How can I do this? Jack

    Highlite the text inside the text box and then press Ctrl+E.

  • Hi there, I want to change the background-color of the browser, when a popup-picture is shown. This picture pops up by clicking a hyperlink in the text...can anyone help me please...thanks a lot

    Hi there, I want to change the background-color of the browser, when a popup-picture is shown. This picture pops up by clicking a hyperlink in the text...can anyone help me please...thanks a lot

    Hi,
    CSS is interpreted by your browser, so server cache seems unlikely in htis case. There is however some hierarchy in CSS, so parts of the APEX CSS, theme CSS or page CSS might overwright or block yours.
    Does changing the CSS on runtime affect your page? Eg, run the following in your browser console and see if your page turns black: $('#uBodyContainer').css("background-color","black")
    Also try moving up your css in the hierarchy labeling it as important:
    div#uBodyContainer { 
      background-color:#000000 !important;  
    See:Assigning property values, Cascading, and Inheritance
    Regards,
    Vincent
    http://vincentdeelen.blogspot.com

  • I want to change the color of the firefox button, the menu button is normaly orange what file/line in the .xpi do i need to edit to change it

    I just want to change the color of the button but there so many files so much code, and i just cant find a page that will tell me please help

    You can change the color by using the App Button Color add-on - https://addons.mozilla.org/firefox/addon/app-button-color/

  • How do I change the color of a scanned tiff file.  It is currently a black image and I want to change the color.

    How do I change the colora of a scanned tiff file.  The image is currently black and I want to change the color.  Thank you.

    You can use the Temperature slider in the Adjust Image pane to apply a tone.
    Walt

  • I want to change the color of these glasses to black

    I haven't played around with photoshop in years but I'd like to get back into image manipulation. I want to change the color of the glasses to black. I want them to look like a regular black pair of ray bans wayfarers. I want it to look realistic. I also want to change the color of the lens along with the frame. For reference this is what a regular pair of ray ban wayfarers look like:
    Please advise me on what to do. You don't have to get into complete basics for me but I will ask for more help if I have any further questions.

    That would normally be very straight forward, but with the glasses being so bright, I found I had to have two hits at it.
    What you would normally do is open a Hue Saturation layer > click on the hand icon and ten sample the glasses, which would target that colour range.  You might need to drag out the sliders on the hue rails at the bottom of the H/S Properties panel to get all the greens.  Then you would either drag the Hue slider if you wanted to change the colour, or in this case, move the saturation slider all the way to left.
    That would remove the colour, so you'd then move the Lightness slider to the left to darken it towards full black, but it this case you are still left with a fairly bright grey.  So you need to select the glasses - I used Color range, followed by adding some Smoothing in Refine edge, and with that selection place, add a Curves layer.  Combining the Curves and Hue/Sat layers does the job.

  • Want to change the Background Color of Selected Tab

    Hi All,
    I want to change the Background Color of Selected Tab of the tabstrip visible in Content Admin Role (Browse, Overview etc.).
    I have changed the Background Color of Selected Tab - Tabstrips-Complex Elements through Theme Editor, but that did not take effect.
    Only the other webdynpro components tabstrips took effect.
    Regards,
    Vishal

    Hi Andre,
    I don't know if you have already figured out how to change the background color of the tabstrip, but I will explain how we have done it.
    You might have tried to change the background color in "Tabstrip" (under the menu "Complex Elements") in Theme Editor. When you change the property "Background color of selected/unselected tabs", this will not change the color of the images on the tabstrip (ex. the triangle on the side of the tab). These images are on the server. We copied these images and then made changes to them, before we uploaded them again through the Theme Editor.
    The path to find the images is /usr/sap/~/JC01/j2ee/cluster/server0/apps/sap.com/irj/servlet_jsp/irj/root/portalapps/com.sap.design.urdesigndata/themes/portal/the name of your theme/common/tablist
    If this didn't work for you, you might have to change the properties in "Pattern Containers" (under Complex Elements") in Theme Editor. The tablist properties are under the header "Tab Container".
    I think it should work for you then. We also found that there was some problems when we tried to view the changes in Firefox, but haven't figured out how to solve this.
    /Ellen

  • I have a macbook pro 15 inch mid 2012 and I want to change the hard drive, what specifications do I need to search for?

    I have a macbook pro 15 inch mid 2012 and I want to change the hard drive, what specifications do I need to search for?

    Does a Seagate - 1TB Internal Serial ATA III/Serial ATA II Solid State Hybrid Drive for Laptops - Multi with the following specifications may work??
    Height
    4 inches
    Width
    2.75 inches
    Weight
    3.5 ounces
    Color Category
    Multi
    Minimum System Requirements
    PC: Windows XP, Vista, 7 or 8; MacBook®, MacBook Pro or Mac Mini: Intel®
    processor; OS X; Linux; internal Serial ATA III or Serial ATA II support

  • Want to change the default size of compobox

    Hi,
    I want to change the default size of combobox in BorderLayout.How to change or it's possible to change?

    I have tried.But it doesn' effect.Please advice me.private javax.swing.JPanel getJPanel43() {
         if (ivjJPanel43 == null) {
              try {
                                    ivjJPanel43 = new javax.swing.JPanel();
                                    ivjJPanel43.setName("JPanel4");
              ivjJPanel43.setBorder(new javax.swing.border.EtchedBorder());
              ivjJPanel43.setLayout(new java.awt.BorderLayout());
              ivjJPanel43.setBackground(new java.awt.Color(220,222,248));
              ivjJPanel43.setBounds(796, 24,260, 295);
                                    ivjJPanel4t = new javax.swing.JPanel( new BorderLayout());
              ivjJPanel4t.setBackground(new java.awt.Color(220,222,248));
              ivjJLabel13t = new JLabel("Enter Firm", JLabel.CENTER);
              ivjJPanel4t.add( ivjJLabel13t, BorderLayout.NORTH );
              ivjJPanel5t = new javax.swing.JPanel();
                                    ivjJPanel5t.setLayout(null);
                                     getJComboBox30().setBounds(new Rectangle(100,100,150,200));
                                     ivjJPanel5t.add( getJComboBox30());
                                     ivjJPanel5t.setLayout(new BorderLayout());
    ivjJPanel5t.setBackground(new java.awt.Color(220,222,248));
                                            ivjJLabel14t = new JLabel("Firm ");
                                            ivjJPanel5t.add( ivjJLabel14t, BorderLayout.WEST );
                                            // ivjJTextField17t = new javax.swing.JTextField();
                                            ivjJPanel5t.add(getJComboBox30(), BorderLayout.CENTER);
                                            ivjJPanel4t.add(ivjJPanel5t, BorderLayout.CENTER);
                                                                   

  • I want to change the white letters on the tool bars to black-how?

    I am elderly and having white letters on a pale grey background on the toolbar strains my eyes. I would like to change the letter color to black, but cannot find a way to do this.

    If you have a new email address then create a new mail account for that email address.
    In Thunderbird:
    File > New > select 'Existing mail account'
    or
    Menu Icon > New Messages > select 'Existing mail account'
    when creating the mail account, make sure you select the type of mail account you require...Pop or IMAP
    more info here:
    https://support.mozilla.org/en-US/kb/automatic-account-configuration?esab=a&s=new+mail+account&r=0&as=s
    If you have the same email address but want to change the server it uses.
    If you currently have an IMAP mail account and you are wanting to close it, you would need to get a copy of any emails into Local Folders first.
    Synchronise the folder for offline use, then in offline mode get a copy of emails into Local Folders.
    If you have a pop mail account, the emails are already on your computer.
    To change the server, but not email address:
    you will need to know your server settings first.
    Thenright click on mail account name in Folder Pane and select 'Settings'
    select the Server sEttings for the account
    or Tools > Account Settings > Server Settings for the account
    Change as necessary
    server name:
    Port:
    Connection Security:
    In the left Pane, at the bottom Select 'Outgoing Server (SMTP)
    click on 'Add'
    create the new outgoing server entering the server details
    username: = full email address
    then click on OK
    then select the account in the left Pane
    at the bottom on the right side:
    Outgoing Server (SMTP)
    click on the drop down selectionand locate the new outgoing server.
    then click on OK to save changes.

  • I want to change the appearance of my homepage how do i do it?

    Question
    i want to change the appearance of my homepage how do i do it?It shows the basic full window in a bright white,when i have the glow of green with dark colors,it just throws all the appearance off.How can i fix this?

    Hi dab07,
    What home page are you referring to? If you use google or other providers as your homepage, they offer some customization. You will need to review their help content for details.
    If you are talking about the actual appearance of Firefox, you can change this quite easily. Just take a look at [[Using themes with Firefox]].
    Hopefully this helps!

  • I want to change the privacy settings on my e-mail, I provided the password once and now it opens without one

    I want to change the security settings on my e-mail. I provided a password once and now it opens without one. I want to keep my messages private.
    == This happened ==
    Every time Firefox opened
    == When I updated.

    Websites remembering you and automatically log you in is stored in a cookie
    Tools > Options > Privacy > Cookies: "Show Cookies"
    See also [[Cookies]]

  • I want to change the order that my 9 email accounts are listed on the left sidebar (folderpane?).

    Mac Snow Leopard
    TB 24.5.0
    Suggestions have pointed me towards finding prefs.js file, but I can't find it (library/mozilla, libary/application support/mozilla not there nor in search function)
    Tried with showing hidden files too.
    Really a pain as I need the more active accounts on top opened but not enough room with less active accounts stuck in the middle.
    No RSS feeds, local folders on bottom OK.
    Just want to change the order but can't seem to find the solution.
    Free smile to whoever helps me out! Thanks

    Use this add-on.
    https://addons.mozilla.org/en-US/thunderbird/addon/manually-sort-folders/

  • I want to change the security answers but have noticed the email address is a hotmail one.  I cannot remember the password and frankly it keeps telling me that the account doesn't exists.  So how can I change that to my personnal email?

    I want to change the security answers on my account but have noticed that the email address I listed is a hotmail one which I cannot get into.  How do I change this as I only see an edit button for logging into iTunes but not one where I can change in the security answers.  Thankyou

    You need to contact Apple to get the questions reset. Click here, phone them, and ask for the Account Security team, or fill out and submit this form.
    (94157)

Maybe you are looking for

  • Check the total sizes of total attachments not allow more than 9 mb when adding attachments to a PDF

    My clients requested the form has the validation when I add attachments to a PDF, the total sizes of these  attachments not more than 9 Mb. I can just check the size of each attachment but I cannot check the total sizes of the attachment.  I am not s

  • File format for username/password file for -vcusersfile command line option

    In what format do I specify username and password in a file that I can use for the -vcusersfile command line option?

  • Why is the CMD-TAB app switcher still unable to properly focus apps?

    On my MacBook Pro running OSX Lion 10.7.5, and on previous versions of OSX, I've noticed a very strange defect in the way the graphical environment switches applications. To reproduce the problem, I open three apps (it does not seem to matter what ap

  • Pacman 3.0.5-3

    How to start I excuse my english! #pacman -Syu :: Synchronizing package databases... current is up to date extra is up to date community is up to date :: Starting full system upgrade... local database is up to date #pacman -S any_application Now I ca

  • DB2 Down

    Dear Experts, Yesterday morning we got our DB2 was shutdown itself due to database crash, after going through db2diag.log we found that the issue in on the TSP01 table (spooling file). However, after db2 was restarted the table seems to be OK, there