How to set the default the highlight/shawdow colors for BevelBorder?

Is there a way of setting/changing the default highlightOuter/Inner and shawdowOuter/Inner colors of a BevelBorder?
I assume that these values are defaulted from the LookAndFeel settings and that there most be a way of changing these like one does for other defaulted values. For example:
UIManager.getDefaults().put("TabbedPane.shadow",new Color(190,220,255));
to set the TabbedPane shadow color.

This is the JDK1.4.1 source code. So it doesn't look like there is any way to change the default since it is based on the components background color:
    public Color getHighlightOuterColor(Component c)   {
        Color highlight = getHighlightOuterColor();
        return highlight != null? highlight :
                                       c.getBackground().brighter().brighter();
    public Color getHighlightInnerColor(Component c)   {
        Color highlight = getHighlightInnerColor();
        return highlight != null? highlight :
                                       c.getBackground().brighter();
    public Color getShadowInnerColor(Component c)      {
        Color shadow = getShadowInnerColor();
        return shadow != null? shadow :
                                    c.getBackground().darker();
    public Color getShadowOuterColor(Component c)      {
        Color shadow = getShadowOuterColor();
        return shadow != null? shadow :
                                    c.getBackground().darker().darker();
    }Of course you can specifiy the color in the BevelBorder constructor.

Similar Messages

  • How can I change the default fill and stroke colors for new shapes?

    As you can see in the following screen recording, after I change the stroke and fill color, all my subsequent rectangles are created respecting these new colors. But then when I delete all the rectangles, choose the rectangle shape tool once again, and start creating new rectangles, they start getting created with another color I had used some time ago (and I don't know how did it become the default color).
    http://tinypic.com/r/64jrwp/6
    So how can I change the defaults, so that the fill color is say #ddd, and the shape has no stroke at all?
    Thanks.

    When you have the shape tool selected you will see in the tool bar below - file edit etc a fill and stroke. This is where you can change the colours.
    You can keep drawing your shapes like you did in the video but then select the rectangle and change the colour from this tool bar. The reason it changes will be because you changed the colours you were using (foreground / background) that display in the left side tool bar.

  • How to set a default value in a form, for a current record.

    Hello,
    I have created a form to store the details of an employee, details include employee id, name and lan id. I am wondering if it's possible to set the default value for an e-mail address. The e-mail address would be in the format '[email protected]'. So If I press 'create', I am directed to a form.
    In the forename field, if i type 'stewart'
    In the surname field, if I type 'Young'
    Then in the e-mail field, I should see '[email protected]'
    Furthermore, if I change 'stewart' to 'stuart', while still in the form, the e-mail address field is automatically updated to '[email protected]'
    Would anyone be able to help with this problem?

    Hi,
    to do this you need kind of interactivity in your form.
    You can achieve this either by:
    1) using JavaScript onchange-events on forename and surname items, or
    2) use the AJAX Computations option of ApexLib, see: http://www.oracle-and-apex.com/ajax-computations-rich-client-feeling/
    brgds,
    Peter
    Blog: http://www.oracle-and-apex.com

  • How to set one default "reply-to" email address for multiple accounts

    I have an iPhone 3GS. I have my own domain name which I want to use as my primary "public" email address. It is forwarded from the hosting ISP to my ATT/Yahoo email address. I also have a Gmail account. I would like recipients to see that it comes from my domain ([email protected]), but since it is actually going through ATT/Yahoo, I can only see how to set the "From" field to either my ATT/Yahoo account or my Gmail account addresses. Is this even possible?
    Essentially, I don't directly access "[email protected]", but that's where I want it to appear to come from, regardless of where it actually originated.
    Any ideas?
    Thanks,
    Mark

    You get e-mails just fine, but do you have rights to log into the e-mail server at myfirstandlastname.com? If you can do that (check with your hosting ISP to find out if they will let you), then you can just set up the iPhone to use that e-mail server to send your mail. It's possible to set up an iPhone IMAP account to get mail from gmail, but use a separate non-gmail SMTP server to send outgoing mail, all within the same iPhone e-mail account.
    If you can get this working, then you won't need to mess with reply-to headers. Your e-mail will not only look like it got sent from myfirstandlastname.com -- it actually WILL be sent from there and all replies will automatically go there and then be forwarded as usual to your ATT/Yahoo address. No one will know that ATT/Yahoo is involved, and both your sent and received e-mail will show up in the same single e-mail account on the iPhone.
    I do this all the time with my e-mail. My account is really at gmail, but the e-mail address says it came from mycollege.edu. My old college offers me an alumni forwarding-for-life account. They only forward mail, though; they don't hold it. They do also run an SMTP server, though, and that's what I use to make my outgoing e-mail look as if it came from mycollege.edu.

  • Can I set a default font and font color for the text field properties?

    I am setting up applications, some of the information I fill in prior to sending it to the client; I would like that text to always be in a specific font and color so it is clear to the client what information I filled in for them when they are reviewing the document.
    Thank you

    Not at this time, but I've asked the product team to consider adding it as a feature. Thanks for the suggestion.

  • How to set as default current year & period in variant

    Hi SAP Guru,
    Can anyone help me on how to set as default the current year and period in variant.  I want to do a background job for our program using save variants.  But I need the period and year to always be assigned what ever is the current year and period.
    Hope someone can help.
    Thanks
    Daboi

    - Create variables for variants: use transaction STVARV. You should create one variable for fiscal year with type 'parameter', one for period with type 'parameter', one for fiscal year 'select option' and one for period 'select option'.
    - when saving your variants for the different programs, fill the checkbox 'Selection variables' in the attributes for fiscal year and period; use the button 'selection variables' for choosing the variables created in STVARV.
    - When closing the period, you should use STVARV for changing the variables. All the variant using the variant variables will then automaticaly use the new value.

  • How to set a Default Value in the drop down on Account Creation ?

    Hi,
    i have to set a default value in the drop down as soon as a User in a particular business role clicks on New Account. I have written the following code in do_prepare_output method. But this code is executed in the 2nd server round trip after entering some value or pressing enter. so i am not getting as soon as user clicks on the New Account.
    How to set that default value when user clicks on New Account ? and where should i code ?
      IF lv_icwc_profile = 'ZCSALESPRO' or lv_icwc_profile = 'Z_SALESPRO' .
      try.
                  lr_entity ?= me->typed_context->header->collection_wrapper->get_current( ).
                  lv_current = lr_entity->create_related_entity(
                                                  iv_relation_name = 'BuilRolesRel' ).
                                 lv_current->set_property(
                                    iv_attr_name = 'PARTNERROLE'
                                    iv_value     =  'BUP002' ).
                   CATCH cx_sy_ref_is_initial cx_sy_move_cast_error
                   cx_crm_genil_model_error.
                   return.
            ENDTRY.
    Thanks and Regards
    Raman Khurana

    Hi,
    I have some idea abt it, it is also used in account life cycle.
    Please refer SAP note 1097651, Defaulting a life cycle stage.
    Let me know if useful.
    rgds,
    Vinay

  • How to set a default value for a drop down list box and then apply cascading based on the default value in Infopath 2010.

    Hello Everyone
    I have two drop downs. Both are coming from look up fields from two lists. i want to set a default value(first list item) for the first drop down list box and then apply cascading based on the default value for the next drop down list box. I found one article(http://www.bizsupportonline.net/infopath2010/display-first-item-drop-down-list-box-infopath-2010.htm)
    where in i can set a default value but i can't apply cascading based on that default value. Any suggestions would be highly appreciated.
    Thanks
    Ramanjulu Naidu N

    Hey Ramanjulu,
    Take a look at the below article which I believe will answer your question.
    http://basquang.wordpress.com/2010/03/29/cascading-drop-down-list-in-sharepoint-2010-using-infopath-2010/
    Daniel Christian (MCTS)

  • How to set and retrive the index log path stored by parameter LOG_DIRECTORY

    how to set and retrive the index log path stored by parameter LOG_DIRECTORY.

    http://download-west.oracle.com/docs/cd/B19306_01/network.102/b14213/lsnrctl.htm#sthref72
    http://download-west.oracle.com/docs/cd/B19306_01/network.102/b14213/cmctl.htm#sthref239

  • Does anyone know how to set alerts in the iCloud calendar of Outlook 2010 for PC?

    Does anyone know how to set alerts in the iCloud calendar on Microsoft Outlook 2010 for a PC?  Outlook gives me a warning message and does not allow me to save alerts for calendar events created in iCloud calendar.  It will allow me to save events in the non-iCloud calendars.

    Ignore what office says, when the warning comes up saying that the reminder will not work click on yes,
    I just tested it and i had the reminder on my ihpone in outlook and also as i had the calendar open in safari it popped up on there too ( I wasn't aware it did that)

  • How to set focus on the last row of JTextPane

    how to set focus on the last row of JTextPane?
    import javax.swing.*;
    import javax.swing.text.html.*;
    import java.awt.*;
    import java.awt.event.*;
    public class MyGUITest extends JPanel implements ActionListener
    {   public static void main(String[] args)
        {   SwingUtilities.invokeLater(new Runnable()
             {   public void run()
              {    JFrame f = new JFrame("My GUI");
                  MyGUITest GUI = new MyGUITest();
                  GUI.setOpaque(true);
                  f.setContentPane(GUI);
                  f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                  f.pack();
                  f.setLocationRelativeTo(null);
                  f.setVisible(true);
        JTextPane txtP;
        JButton add;
        HTMLEditorKit hek;
        HTMLDocument hd;
        String txt;
        MyGUITest()
        {     this.setLayout(new BorderLayout());
         this.setPreferredSize(new Dimension(400,200));
         txtP = new JTextPane();
         txtP.setEditable(false);
         txtP.setContentType("text/html");
         txtP.setText("");
         hek = new HTMLEditorKit();
         txtP.setEditorKit(hek);
         hd = new HTMLDocument();
         txtP.setDocument(hd);
         JScrollPane sTxtA = new JScrollPane(txtP);
         add = new JButton("add");
         add.addActionListener(this);
         sTxtA.setBorder(BorderFactory.createTitledBorder(""));
         this.add(sTxtA, BorderLayout.CENTER);
         add(add, BorderLayout.SOUTH);
         new Thread(new Runnable()
         {   public void run()
             {   while(true)
              {   try
                  {     Thread.sleep(100);
                  }catch(InterruptedException ex)
                  {     ex.printStackTrace();
                  appendText("This is <b>HTML</b> text");
                  //add.doClick();
         }).start();
        public void actionPerformed(ActionEvent e)
        {     txt = "<b>asd</b>";
         try
         {   hek.insertHTML(hd, hd.getLength(), txt, 0, 0, null);
         }catch(Exception ex){   ex.printStackTrace();   }
        public void appendText(String txt)
        {     try
         {   hek.insertHTML(hd, hd.getLength(), txt, 0, 0, null);
         }catch(Exception ex){   ex.printStackTrace();   }
    }thanks~

    anIdiot wrote:
    im not sure what is the caret location...So don't youthink you should have looked for it in the API?
    anyway, i want the scroll bar to scrolled down automatically when the output is displayed.
    normally, the scroll bar is scrolled down automatically when a new text is inserted, but it doesnt work on this timeGo through camockr's http://tips4java.wordpress.com/2008/10/22/text-area-scrolling/
    db

  • How can i change the default application to vlc player for playing any videos on my macbook?

    How can i change the default application to vlc player for playing any videos on my macbook?

    1. Control click the file you want to open.
    2. Click Get Info.
    3. Under open with, pick the App you want to be default.
    4. Click Change All Button.
    5. Confirm your decision.
    You have to do this with every file that has a different extension. You can't change the default for every file with a different extension in a single operation.

  • How to set Border in the Excel using UTL_FILE ?

    Hi all,
    Any one aware of
    How to set Border in the Excel using UTL_FILE ?
    Am doing excel creation from a stored procedure.
    Thanks
    Dora

    Hello Dora,
    if you need more than simple csv: at Re: How to save a query result and export it to, say excell? you can find links to different solutions. At least the package behind the second link supports defining your own formats (and has a tutorial how to do it).
    Regards
    Marcus

  • How to set a default value in Select one choice.

    Hi
    I'm using ADF BC, in that how to set a default value in select one choice.
    pls. help on this.
    regards

    set the default value on the underlying EO or VO attribute
    john

  • How to set a default value to t-list when creating t-list programmatically

    hi,
    I'm creating a t-list programmatically
    by calling
    n = populate_group('groupname');
    populate_list('form.list','groupname');
    In this case how to set a default value for the t-list
    thanks
    rani

    I am not sure how it works in Web Dynpro for ABAP, but in Web Dynpro for Java to set default drop down value you will have to set the value for particular attribute (which is linked to the dropdown element)  in the context
    like
    wdContext.currentContext<nodeName>Element.set<FieldName>(<defalut value>)
    This generally done in Initialization method of the controller.

Maybe you are looking for

  • Cannot open indd file in either CS5 or CS5.5

    I downloaded CS5.5 on my laptop this afternoon. I then opened a CS5 file, worked on it, then saved. Now I cannot open the file in either CS5 or CS5.5. Is says InDEsign may not support the file format, the file is missing, or it is opened in anaother

  • HELP!!! No one answers my posts. Itunes freezes computer

    My itunes has suddenly decided not to let me import anymore. I have tried multiple CD's. It will start importing, get through one or two songs and freeze up the whole computer so I have to cold start it. It does this when i load songs to my folders t

  • Delivery Cost in MIGO of Service PO

    Hi, User has created service PO with the freight condition. He created the service entry sheet against the PO. so for each service entry sheet in PO history delivery cost quantity  generated. now he did the MIRO for delivery cost using the full deliv

  • JAX-WS -- Force a wsimport generated ws client to use http POST method

    I've used wsimport to generate a JAX-WS client for a wsdl and xsd bindings that were provided to me. The basic implementation goes something like this. URL serviceUrl = ...url to the live web service's wsdl (this will change often and needs to be dat

  • Upgrade 9iAs to 10gAS

    Helo All, I have a query hope to get solved over here I have installed 9iAS (9.0.2) and 9iDB on a single machine on win2k platform. Now I would like to upgrade my 9iAS to 10g since im getting some problems and prevailing bugs in 9iAS. My Question her