Border and font setting for the same cell

I have writen a label in an excel cell using a font that I created (called "wf" - see code below).
I also want to put a left thick border to the same cell.
How can I do that?
ps: I call this function from "main":
private static void writeDataSheet(WritableSheet s)
WritableFont wf = new WritableFont(WritableFont.ARIAL, 10, WritableFont.BOLD);
WritableCellFormat cf = new WritableCellFormat(wf);
Label l = new Label(1,0,"Last Name",cf);
s.addCell(l);
What code should I add to the upper function in order to set a left thick border to my cell?

this issue has been solved

Similar Messages

  • Different LOVs in af:query and af:form for the same VO attribute

    Hi,
    We need to display different LOVs in af:query and af:form for the same attribute in VO.
    Is it possible to use LOV Switcher for this ?
    What condition can we use in LOV Switcher attribute to check if it is View Critearia row or VO row ?

    We have a VO attribute "User" which needs to be displayed as LOV in a Search Panel ( af:query component created using View Critearia ) and in a af:form.
    When this VO attribute is displayed in search panel, in LOV, we need to show all users.
    When this VO attribute "User" is displayed in a form for editing, in LOV, we need to show only active users.
    For this, we created two LOVs "ActiveUsersLOV" ( which shows only active users ) and "AllUsersLOV" ( which shows all users ) on VO attribute "User".
    LOVSwitcher attribute should return "ActiveUsersLOV" if the LOV is displayed in form and "AllUsersLOV" if the LOV is displayed in search panel.

  • How do your turn off the "black and White" setting for the visually impaired?

    How do you turn off the "black and White" setting for the visually impaired?  Also known as the "tripple Click"

    Settings>General>Accessibilty>White on black--> Off

  • I am subscribed to Photoshop only and I want to know if I can change my subscription to have your new offer of Lightroom and Photoshop together for the same price I am paying for Photoshop alone?

    I am subscribed to Photoshop only and I want to know if I can change my subscription to have your new offer of Lightroom and Photoshop together for the same price that I am paying for Photoshop alone?

    Contact sales support by web chat. They can cancel your current subscription and transfer you to the new one if you are within certain criteria. Otherwise you may need to wait until your subscription runs out and then sign up later.
    Mylenium

  • Using a button and a textfield in the same cell of a table

    I have been struggling with this problem for ages, please someone help...
    I am trying to implement a table similar to NetBeans property sheet editor where you have a textfield and a button with "..." in the same table cell. The button is used to invoke a custom editor.
    I have most things working, custom renderers, custom editors and such.
    However, the focus interactions on the table seem completely screwed. Clicking in the editor causes the cell to switch to editing mode as expected. Pressing cursor down or tab, which should close the editor and move focus to the next cell down does not work - the editor closes but the focus disappears to a completely different component elsewhere on my GUI.
    My textfield and button are on a JPanel, and I return that JPanel when getTableCellEditorComponent is called.
    If I switch out the JPanel and instead return the textfield, the focus works as normal.
    I've even looked at the NetBeans source but I can't work out what their trick is.
    Any tips would be gratefully received.
    TIA.

    Thanks for your time, Jeanette...
    Here is a bare-bones example of the problem I'm having. I'm running on JDK1.4 and JDK1.3.1_02.
    I've tried some tricks (hacks) with getNextFocusableComponent and requestDefautFocus and such but with no success.
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.table.*;
    * This example shows a keyboard/focus navigation problem when using a JPanel
    * as a table cell editor. The JPanel contains a textfield and a button.
    * Click in the editor to invoke it, and tab-off (or press cursor down). The
    * edit ends, but the focus disappears rather than moving to the next cell in
    * the table.
    * Change the line that returns the panel to return a text field instead, and
    * all is well.
    public class Test
      public static void main( String[] args )
        new Test();
      public Test()
        JFrame f = new JFrame();
        f.setContentPane( new TablePanel() );
        f.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
        f.setSize( 800, 600 );
        f.setVisible( true );
      class TablePanel extends JPanel
        TablePanel()
          setLayout( new BorderLayout() );
          JTable table = new JTable();
          table.setDefaultEditor( Object.class, new MyEditor() );
          table.setModel(
            new DefaultTableModel(
              new Object[][]
                {null, null},
                {null, null},
                {null, null},
                {null, null}
              new String[] { "A", "B" } ) );
          add( table, BorderLayout.CENTER );
      class MyEditor extends AbstractCellEditor implements TableCellEditor
        private JComponent myEditorPanel;
        private JTextField myTextField;
        MyEditor()
          myEditorPanel = new MyEditorPanel();
          myTextField = new JTextField();
        public Object getCellEditorValue()
          return null;
        public Component getTableCellEditorComponent( JTable table, Object value,
                                                      boolean isSelected,
                                                      int row, int column )
          return myEditorPanel;   // Problems...
    //      return myTextField;   // Keyboard and focus as expected
      class MyEditorPanel extends JPanel
        JTextField tf;
        MyEditorPanel()
          setLayout( new BorderLayout() );
          tf = new JTextField();
          add( tf, BorderLayout.CENTER );
          add( new JButton( "edit" ), BorderLayout.EAST );

  • Stetting up FTP and SFTP adapters for the same interface

    Experts-
    I have a situation in which client has a requirement to setup both FTP and SFTP adapters (from adapetive adapters) for the same interface. They want to have a copy of file locally and also want a file to be sent out securly using SFTP. In my interface which was previously developed they have used one business system and added FTP and SFTP to the same. If try to add new Receiver Agreement it will say that the object already exists as the Interface Mapping is same.
    Please send me any suggestions which would resolve my problem

    Hi Hari,
    As you cannot create two Receiver agreement using only one receiver interface , please create a new receiver Interface, add that in interface determination step and then assing a different channel to new receiver agreement.
    If your requirement is to store the file ,i would suggest write the file in your unix directory using NFS( /usr/sap...). then run a AFT job (if already set up in your landscape) to transfer file securly to target destination.Not sure if its feasible in your case otherwise you can use  SFTP for the secure transfer.
    Best Regards
    Srinivas

  • 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.

  • Font setting for the line headings of a numbered list

    I have been setting up Word files which are in outline form with A., 1., a., etc. as the numbering. In Word, the line heading (A., 1., etc.) take on the font and size that I use for the line text. In Pages, it seems to be stuck on a default size that is larger than I want (seems to be 10) and Times New Roman font, which I don't like. I can highlight the line text and change its size and font but the the heading remains the same. I can't find anything in Preferences about this. Is there a control somewhere?
    Message was edited by: Sonic10

    I'm not sure I understand what you want to do, but it sounds like it is something you can solve by creating a new template.
    1. Modify the styles in the Style Drawer in a file so they look like you want them to look.
    2. Save the file as a template.
    3. Use that template to create new files.

  • How can I differentiate between iPad and iPhone iMessages for the same contact?

    I have my sister in law's email and phone number all in the same contact. She iMessages me from both her iPad and her phone. They come up as two different iMessage conversations, but they both are under her name. When I go to text her I don't know if I'm sending it to her iPhone or iPad. Anyone know if there's anyway to differentiate? Sometimes looking at what was previously said in the conversation helps but I can't always remember (nor do I know which device he was messaging me from in the previous convo). Thanks all

    Try scrolling to the top of the conversation and tapping Contact.  You will then see the originating address highlighted in blue on the contact.  If the iPad and iPhone are creating two different conversations, chances are if the email address is highlighted it's coming from the iPad; if the phone number is highlighted it's coming from the iPhone (although not necessarily).  To know for sure you would have to ask her to check Settings>Messages>Send & Receive and tell you which is checked under "Start new conversations from" on both devices to know for sure.

  • Can i have sync and async listeners for the same queue ?

    Hello,
    I am a novice in JMS. Wondering experts over here could throw in some light !
    Can I set both synchronous and asynchronous listeners for a perticular queue.
    eg: pseudo code.
    status; // default to start
    run()
    setListener(Q1); // listener sets status to stop
    while(1)
    waitForUserPrompt(value1);
    switch(value1)
    a: fun1();
    break;
    b: fun2();
    break;
    fun1()
    while(status != stop)
    stay in loop.
    fun2()
    // synchronously wait for "stop"
    receive(Q1);
    // wait and do following important code!
    }

    Hi,
    I don't know in Chrome, but in Safari (pc or mac) you can open icloud.com twice on two different tab or windows and open one with contact and the other in Mail without messing up.  What kind of mess to do you experience?
    There is no other options to do what you want to do.  You need to click on the little top cloud to switch from one to another.
    Beside, I don't understand why even 2 open tab would help more than having to switch via the cloud icon.  I may need to cut/paste some info from contact or calendar from time to time, but switch via the cloud icon is not really painfull.

  • Inconsistent behavior in TestStand and TestStand UI for the same sequence file

    Solved!
    Go to Solution.

    I tried both the TopLevelVI and testexec.exe; but both of them were giving the same error. I never tried any other UI than Labview. 
    Because the same sequence was working without any issue on some other system, I uninstalled and reinstalled TestStand 4.0 and same sequence is now working fine, in TestStand, testexec.exe, TopLevelVI – basically everywhere. I am not sure what was wrong with TestStand in my system, but definitely something wasn’t correct. 
    Thank you for all the responses.
    Vidula
    Message Edited by Vidula S. on 08-26-2009 10:28 AM

  • Command to see host and static nat for the same object together

    I have researched this but cannot find an answer.  ASA running version 8.5.
    When you create the config using object NAT you enter the commands as follows
    object network <object name>
       host x.x.x.x
       nat (inside,outside) static y.y.y.y
    When the config is displayed it separates the host and nat commands in two different sections of the config as follows
    object network <object name>
       host x.x.x.x
    object network <object name>
       nat (inside,outside) static y.y.y.y
    Is there a command that will display it all together (like it was typed in)?  Show NAT is something like what I am after but without all of the extra info such as translate_hits, untranslate_hits etc. I need this information but cleaning up the output of a show nat is going to be tough.
    Any suggestions?  
    Thanks.

    Sorry, show nat detail is what I meant in the original post in place of show nat.   Show nat detail still has all of the extra info I was trying to avoid.  Guess I will be editing a text file.
    Thanks for the reply.

  • PO issued for one vendor and GRPO another for the same

    Hai members,
                      I have a problem, is it possible , to select a different vendor for the PO reaised for different vendor,
    i.e.,
    Po raised  for 20 items against the Vendor   XYZ
    But goods received
    XYZ-   10
    ABC-   10

    Suda,
               At us the criteria  is
    One Vendor may have  several companies
    Once we produce order to him , he will dispatch the goods from either of the companies he had or from the both
    but the PO purchase order comes from only in one name of the vendor
    Suppose i had produced
    100 Pcs order for  Some  Vendor -
       XYZ
    But he may dispatch the same goods that we have ordered
    from either of the comapnies he had i.e., XYZ, 123, ABC
    but the PO is same
    I think you got it Suda, please help me........ Thanks in advance

  • I pre-ordered and album, it took my money and now the date has come and is asking for the same amount but i dont have it because it already took it... what can i do? or am i just already screwed

    i have no clue what to do, i'm thinking i just totally got screwed over with these products again. but i waited so long for this album and not i cant get it. so i'm a little angry. i just would really like to know if i could do anything.. at all. and i physically have a song from the album i bought a long time ago but that doesnt even show in my purchase history...

    Check your purchase and bank/credit card history. I preordered the Rival Sons' Great Western Valkyrie a couple of months ago and was charged for three individual songs at £0.79 each as they were released one-by-one and then the balance of £5.62 when the album was finally published last week. You should not have been charged twice.
    tt2

  • Tableview : inputfield and other stuff in the same cell ?

    Hi everybody!
    I wonder how I could do the following :
    in a tableview, using iterator, have a cell with both :
    - a free text (html)
    - an inputfield
    the result would be a table like that :
    Item       |       Weight         |         Length
    10000125   |  = [inputfield] kg   | = [inputfield] m
    10000132   |  = [inputfield] kg   | = [inputfield] m
    Huh? Would be fine, like!
    Maybe someone could help me ?
    Because I know how to insert the input field :
    DATA col1_inputField TYPE REF TO CL_HTMLB_INPUTFIELD.
    CREATE OBJECT col1_inputField.
    p_replacement_bee      = col1_inputField.
    and also the free text :
    p_replacement_bee = CL_HTMLB_TEXTVIEW=>FACTORY( text = html_output ).
    ... but how to mix them together ?
    Thanks a lot for you all for all past and coming help!
    François

    Hi Francois,
    this can easily be achieved with a bee table. You can do something like this:
    DATA: if_input  TYPE REF TO CL_HTMLB_INPUTFIELD,
          if_text   TYPE REF TO CL_HTMLB_TEXTVIEW.
    if_input = CL_HTMLB_INPUTFIELD=>FACTORY( id = p_cell_id
                                             id_postfix = '_input'
                                             type = 'INTEGER' ).
    if_text = CL_HTMLB_TEXTVIEW=>FACTORY( id = p_cell_id
                                          id_postfix = '_text'
                                          text = 'my text' ).
    DATA: whole_cell TYPE REF TO CL_BSP_BEE_TABLE.
    CREATE OBJECT whole_cell.
    whole_cell->ADD( if_input ).
    whole_cell->ADD( if_text ).
    p_replacement_bee = whole_cell.
    Please also have a look at weblog:
    /people/brian.mckellar/blog/2003/10/31/bsp-programming-htmlb-tableview-iterator
    Regards,
    Rainer

Maybe you are looking for

  • Table for IBase Component

    Hi, Can anyone tell me the table where the IBase Component is Stored?Howz it related to the Support Desk Message through Tables? Thanks in advance, Sivagami.R

  • Question about "Linked" pictures and how to get rid of them?

    I have recently upgraded from a 2011 MacBook Pro to a 2013 MacBook Pro and there is a picture under Users & Groups when you go to change the display picture under "Linked" that I can't get rid of, while that isn't really an issue even though I would

  • Problem Backup ( error 4027)

    Dear all, I am facing some problem in SAP Backup through DB13. Backup has failed at the end. But through SQL Server enterprise manager backup is working fine backup option also working. I have tried few option such as insert new tape for backup, sele

  • LabVIEW feature request: tunnel array concatenation

    I am requesting a LabVIEW feature that would be very convenient. The following situation is very common: I have a source of information, say an array of numbers, in a for-loop. When the for-loop has finished, I normally end up with a 2D-array (becaus

  • I'm getting an error code E_AUTH_NOT_READY

    I'm getting an error code E_AUTH_NOT_READY What is this? I have a Nook and I had to change email address and now my Nook is not on my Adobe account and I can't download books from my public library.