Typewriter properties set to a different color per user.

In Std 9 each user can set the properties of the typewriter and arrows etc to a different color.
This feature appears to be gone in Std XI.
I am looking for a work around or how to set it up.

Well, it certainly doesn't appear to be straightfoward in version XI. What I did was use the Add Text Comment (formerly the Typewriter tool) annotation and then set the color/font/size. Next, I had to open the Comments List, select the annotation, and right-click to select the Properties. In the Properties dialog select "Make Properties Default".

Similar Messages

  • When to set iwtUser-role and other per user schema using custom athentication?

    I have written my own authentication module and would like to set per user schema on login. Can I write iwtUser-role, iwtCalendarProvider-calendarUserPassword, etc from the authentication class?

    Yes you can, after the authentication is complete you get the profile object and then set whatever value you want to set for particular attributes you want to set ..

  • How can I set up Kerberos for PerformancePoint Per User Access?

    Hi,
    This is the setup I have: 3 Tier SharePoint farm with one WFE, one APP and one DB (contians Analysis Services and SQL Server 2012) servers.
    SharePoint 2013 Test\UAT (1 Server for Analysis services and Database Services)
    SharePoint Content   Databases
    UATSQLDBSERVERMachine
    PerformancePoint Unattended Service   Account
    <domain>\unattendedaccount_uat
    Performance Point Application Pool
    <domain>\sp_pps_uat
    COEREPORTS Application Pool
    <domain>\sp_apppoolcoe_uat
    Analysis server
    UATSQLDBSERVERMachine
    Analysis server COE Cubes Instance
    UATSQLDBSERVERMachine\MULTIDIMEN
    COE Databases Instance
    UATSQLDBSERVERMachine
    UATSQLDBSERVERMachine - MS SQL Server Service Account
    <domain>\sp_sql_uat
    UATSQLDBSERVERMachine - MS SQL Analysis Serv Serv   Acc (MULTIDIMEN)
    <domain>\sp_ssas_uat
    Can someone explain what settings I would need in Active Directory or Local Admin/Permissions. I need a decent explanation of how this works. Much of the answers people give for setting up Kerberos are for Single server setup or they have missed
    a heap of settings. To be honest I get the general gist of how it works, but I want to be clear so that I know if SPN settings and Delegates are correct or not.
    Can someone help out here?
    Thanks.
    John. 
     

    Some knowledge:
    - http://sbrickey.com/Tech/Blog/Post/Kerberos_Primer
    - http://sbrickey.com/Tech/Blog/Post/Kerberos_Authentication_for_SharePoint_2010
    - http://sbrickey.com/Tech/Blog/Post/SharePoint_and_the_Kerberos_Negotiate_provider
    Some tools:
    - http://spkerberosbuddy.codeplex.com/
    - http://spk.codeplex.com/
    - http://sdssharepointlibrary.codeplex.com/releases/view/92022
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

  • Is there a way to change the color of the Bezier Curves and points to a different color other than black  I find it perplexing while setting points and curves working on a photo that needs to be separated from it's background for placement on transparent

    Is there a way to change the color of the Bezier Curves and points to a different color other than black  I find it perplexing while setting points and curves working on a photo that needs to be separated from it's background for placement on transparent backgrounds. Any thoughts?

    Yes. Well, sort of: instead of a "path", set the pen tool to "shape" in the tool properties. Then set the fill colour to transparent, and the stroke colour to the colour you want. You can also set the stroke width.
    Not perfect, but at least you can see the path more clearly - the anchor points and handles still remain the default colour. Open the path panel, and right-mouse click the path shape to create a selection based on that shape. The Paths panel menu also allows you to create work paths based on that shape.
    Unfortunately when you try to move the handles the black thin outline appears again until you release the mouse button.
    This is one of several things that works better in Photoline: in Photoline, once the path is set to a specific colour, editing the path uses the actual colour and stroke width. which is extremely handy for creating path based selection with awkward background colours and/or a high resolution screen. In Photoline the handles and bezier points are also much, much larger, which makes it rather simpler to work with as well - especially on a higher resolution screen. And when selected the handles and points are a clear red with a black outline - again easier to spot and identify. I just works better, in my opinion.

  • How to set different color for items in selectManyCheckbox

    hi,
    I would like to change item text background color for each item on selectManyCheckbox (different for each item).
    It is only 5 items so that could be static reference or select.
    I know only how to change background for all items
    af|selectManyCheckbox::item-text {
        background:orange;
    How to select concrete item text and change color for only them?
    I found similar problem:
    css - Set background color of every individual checkbox of p:selectManyCheckbox - Stack Overflow
    but this dont work for me because I dont have in adf tr structure
    I need somethink like this:
    af|selectManyCheckbox::item-text XXXX - select here one of the item by number on list or id  {
        background:orange;

    hi,
    thanks Alejandro and Federico for answers.
    I use JDev 11.1.1.6. I dont write it in previously post because I think that is a more css then adf problem.
    I have 5 selectItem based on simple List<String> {"text1", "text2", "text3", "text4". "text5"}:
    <af:selectManyCheckbox label="List" id="smc2"
                                               layout="horizontal"
                                               value="#{bean.listInBean}"
                                               autoSubmit="true">
                          <af:selectItem label="text1" value="text1" id="si47"/>
                          <af:selectItem label="text2" value="text2" id="si43"/>
                          <af:selectItem label="text3" value="text3" id="si46"/>
                          <af:selectItem label="text4" value="text4" id="si45"/>
                          <af:selectItem label="text5" value="text5" id="si44"/>
                        </af:selectManyCheckbox>
    and I would like to color first selectItem text to orange, second to red.. etc, The list is a static list. Not would be changed.
    After Alejandro answer I build simple for each element (anyCollection contains item with two fields: textValue and label {(text1,text1), (text2,text2)...}
      <af:forEach items="#{bean.anyCollection}"
                                      var="item">
                            <af:selectItem id="si48" value="#{item.textValue}"  styleClass="yourClassName#{var.index}"
                                           label="#{item.label}"/>
                          </af:forEach>
    And now if I have my var called "item" I can write 5 css style classe yourClassName#{var.index} with different color, but there is a problem:
    Attribute styleClass is not defined for af:selectItem
    If it will be so simple I will just add 5 style classes for each selectItem
    <af:selectItem label="text1" value="text1" id="si47" styleClass="yourClassName0"/>
    <af:selectItem label="text2" value="text2" id="si43" styleClass="yourClassName1"/>
    Should I use other component then adf facer rich?

  • How to set input ready query cell is different color?

    Dear All
      Hi, everyone, hereby i have a IP question.
      i would like to know, how to set the input ready query's cell different color between those cell which is unable to change value one in workbook..?
    Example :
      For my workbook which have a input ready query,
      i have 4 rows for my input ready query report.
      For the first row which is not input ready cell and unable to change any value for the cell, then following rows's cell can be change value,
      so, i would like to make first row's color cell different with following row's cell.
      In additional, all value of cell is initial zero.
      therefore, is there any mehtod to make different color between able cell and unable cell?
    Thanks a million.
    Regards,
    WenLong.

    Cells in the input ready query result have different styles given by SAP. All rows will have one style, column headings will have one style whereas input ready cells will have one style. If you are in Excel 2003, put cursor in the input ready cell, goto format -> style, you can see one BeX style attached to that cell, apply watever color you want for that style, save the workbook. If you do this for one cell, it will be applied to all the input ready cells by default. In the same way you can give different color to the non input ready cell styles. In Excel 2007, Cell styles are available in Home -> Cell styles. Here you can see all Bex related styles.

  • How to set different colors for even odd rows in a data table

    hi,
    In my project i hav a data table. i am using jsf. i want the rows of the data table different colors for even, odd rows. can i do it just setting the row class property ? or there should be there some other way? please help.
    sailajoy

    Hope this helps
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-loose.dtd">
    <html>
    <head>
    <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
    <title></title>
    <style type='text/css'>
    .scrollContent {
    height:100px;
    overflow-x:hidden;
    overflow-y:auto;
    .scrollContent tr {
    height: auto;
    white-space: nowrap;
    .scrollContent tr td:last-child {
    padding-right: 20px;
    .fixedHeader tr {
    position: relative;
    height: auto;
    top: expression( this.parentNode.parentNode.parentNode.scrollTop + 'px' );
    div.TableContainer {
    border: 1px solid #7DA87D;
    .headerFormat {
    background-color: white;
    color: #C8D7B5;
    margin: 3px;
    padding: 1px;
    white-space: nowrap;
    font-family: Helvetica;
    font-size: 16px;
    text-decoration: none;
    font-weight: bold;
    .headerFormat tr td {
    border: 1px solid #C8D7B5;
    background-color: #666633;
    .bodyFormat tr td {
         color: #000000;
         margin: 3px;
         padding: 1px;
         border: 0px none;
         font-family: Helvetica;
         font-size: 12px;
    .alternateRow {
    background-color: #C8D7B5;
    </style>
    <style type="text/css">
    div.TableContainer {
    height: 121px;
    overflow-x:hidden;
    overflow-y:auto;
    </style>
    </head>
    <body>
    <table cellpadding="0" cellspacing="0" border="0"><tr><td><div id="TableContainer" class="TableContainer" style="height:230px;">
    <table class="scrollTable">
    <thead class="fixedHeader headerFormat">
    <tr class="title">
    <td title="Sort" align="center"><b>NAME</b> </td>
    <td title="Sort" align="center"><b>Amt</b> </td>
    <td title="Sort" align="center"><b>Lvl</b> </td>
    <td title="Sort" align="center"><b>Rank</b> </td>
    <td title="Sort" align="center"><b>Position</b> </td>
    <td title="Sort" align="center"><b>Date</b></td>
    </tr>
    </thead>
    <tbody class="scrollContent bodyFormat" style="height:200px;">
    <tr class="alternateRow">
    <td>Maha</td>
    <td>
    <input type="text" name="textfield" size="7" />
    </td>
    <td align="right"><input type="text" name="textfield2" size="7" /></td>
    <td align="right"><input type="text" name="textfield3" size="7" /></td>
    <td><input type="text" name="textfield4" size="7" /></td>
    <td align="right"><input type="text" name="textfield5" size="7" /></td>
    </tr>
    <tr>
    <td>Thrawl</td>
    <td align="right">$9,550</td>
    <td align="right">159</td>
    <td align="right">100%</td>
    <td>Co-Owner</td>
    <td align="right">11/07/2003</td>
    </tr>
    <tr class="alternateRow">
    <td>Marhanen</td>
    <td align="right">$223.04</td>
    <td align="right">83</td>
    <td align="right">99%</td>
    <td>Banker</td>
    <td align="right">06/27/2006</td>
    </tr>
    <tr>
    <td>Peter</td>
    <td align="right">$121</td>
    <td align="right">567</td>
    <td align="right">23423%</td>
    <td>FishHead</td>
    <td align="right">06/06/2006</td>
    </tr>
    <tr class="alternateRow">
    <td>Jones</td>
    <td align="right">$15</td>
    <td align="right">11</td>
    <td align="right">15%</td>
    <td>Bubba</td>
    <td align="right">10/27/2005</td>
    </tr>
    <tr>
    <td>Supa-De-Dupa</td>
    <td align="right">$145</td>
    <td align="right">91</td>
    <td align="right">32%</td>
    <td>momma</td>
    <td align="right">12/15/1996</td>
    </tr>
    <tr class="alternateRow">
    <td>ClickClock</td>
    <td align="right">$1,213</td>
    <td align="right">23</td>
    <td align="right">1%</td>
    <td>Dada</td>
    <td align="right">1/30/1998</td>
    </tr>
    <tr>
    <td>Mrs. Robinson</td>
    <td align="right">$99</td>
    <td align="right">99</td>
    <td align="right">99%</td>
    <td>Wife</td>
    <td align="right">07/04/1963</td>
    </tr>
    <tr class="alternateRow">
    <td>Maha</td>
    <td align="right">$19,923.19</td>
    <td align="right">100</td>
    <td align="right">100%</td>
    <td>Owner</td>
    <td align="right">01/02/2001</td>
    </tr>
    <tr>
    <td>Thrawl</td>
    <td align="right">$9,550</td>
    <td align="right">159</td>
    <td align="right">100%</td>
    <td>Co-Owner</td>
    <td align="right">11/07/2003</td>
    </tr>
    <tr class="alternateRow">
    <td>Marhanen</td>
    <td align="right">$223.04</td>
    <td align="right">83</td>
    <td align="right">59%</td>
    <td>Banker</td>
    <td align="right">06/27/2006</td>
    </tr>
    <tr>
    <td>Peter</td>
    <td align="right">$121</td>
    <td align="right">567</td>
    <td align="right">534.23%</td>
    <td>FishHead</td>
    <td align="right">06/06/2006</td>
    </tr>
    <tr class="alternateRow">
    <td>Jones</td>
    <td align="right">$15</td>
    <td align="right">11</td>
    <td align="right">15%</td>
    <td>Bubba</td>
    <td align="right">10/27/2005</td>
    </tr>
    <tr>
    <td>Supa-De-Dupa</td>
    <td align="right">$145</td>
    <td align="right">91</td>
    <td align="right">42%</td>
    <td>momma</td>
    <td align="right">12/15/1996</td>
    </tr>
    <tr class="alternateRow">
    <td>ClickClock</td>
    <td align="right">$1,213</td>
    <td align="right">23</td>
    <td align="right">2%</td>
    <td>Dada</td>
    <td align="right">1/30/1998</td>
    </tr>
    <tr>
    <td>Mrs. Robinson</td>
    <td align="right">$99</td>
    <td align="right">99</td>
    <td align="right">(-10.42%)</td>
    <td>Wife</td>
    <td align="right">07/04/1963</td>
    </tr>
    <tr class="alternateRow">
    <td>Maha</td>
    <td align="right">-$19,923.19</td>
    <td align="right">100</td>
    <td align="right">(-10.01%)</td>
    <td>Owner</td>
    <td align="right">01/02/2001</td>
    </tr>
    <tr >
    <td>Thrawl</td>
    <td align="right">$9,550</td>
    <td align="right">159</td>
    <td align="right">-10.20%</td>
    <td>Co-Owner</td>
    <td align="right">11/07/2003</td>
    </tr>
    <tr class="alternateRow" >
    <td><strong>TOTAL</strong>:</td>
    <td align="right"><strong>999999</strong></td>
    <td align="right"><strong>9999999</strong></td>
    <td align="right"><strong>99</strong></td>
    <td > </td>
    <td align="right"> </td>
    </tr>
    </tbody>
    </table>
    </div></td></tr></table>
    </body>
    </html>

  • How to create a column graph with colors per set of values

    I need to create with Microsoft Excel, a column graph that based on different values, each column will contain different color.
    To be precise:
    E.g.:
    - Green: If it is 0
    - Orange: If it is between 0 and 10
    - Red: If it is more than 10
    I would appreciate to help me how to do this.

    Hi EriValidata,
    According to your description, I get the result as shown in the following figure.
    Is this a correct result? If yes, this is an excel chart with conditional formatting. Please try the following steps to create the chart.
    To accomplish this task, you will need to create three additional columns of data and plot those three columns of data-and not the original column of sales data – in a stacked column chart. As shown in the figure.
    And the formula in C2 is: =IF(AND(B2>0,B2<=10),B2,0). The formula shows the value in column C if it falls between the limits in rows 0 and 10; otherwise it shows 0. The formula is filled into the range C2:E4.
    Then we select the source data with A2:A4 and C1:E4, as shown in the figure to insert a column chart. The chart now shows 3 sets of colored bars, one for each data range of interest.
    And I upload a TEST2.xlsx file on OneDrive, you can download this file via this link:
    https://microsoft-my.sharepoint.com/personal/v-lzng_microsoft_com/Documents/Shared with Everyone
    Hope it’s helpful.
    Regards,

  • A quick way to set different color for certain items in JList?

    is there a quick way of setting different color for certain items in JList?

    Either use HTML strings as the values in your JList (quickest, but may not be the most convenient, especially if your model isn't just text), or create your own ListCellRenderer (e.g. extend DefaultListCellRenderer).
    There is no such thing as "list.setItemForeground(int index, Color c)". You'll have to use one of the methods above.

  • How to set different color text in JTabe cell

    Hi
    I have been searching many forums to find how can this be done, but no success.
    I have Custom JTable with MyTableRenderer which is nothing else but alternate the color of rows(cells), CustomTableModel extends DefaultTableModel adding functionality for updateCellContent with different messages.
    I have a column in which cells i want to set these messages in different color.They are not set by user's editing, and by updating the content using the table model.
    Here is the code for that
    public void updateCellContent(HashMap<String, String> messages, int col) {
            for (int row = 0; row < this.dataVector.size() - 1; row++) {
                //This value is hardcoded for now.
                boolean isError = true;
                String filename = getFilename(row);
                String message = messages.get(filename);
                if (message != null) {
                    if (isError) {
                        setErrorMessage(message, row);
                    } else {
                        setMessage(message, row);
        private void setErrorMessage(String message, int row) {
            this.setFileStatus(message, row);
        private void setMessage(String message, int row) {
            String value = (String) this.getValueAt(row, COL_FILE_STATUS);
            ((Vector) this.dataVector.get(row)).setElementAt(value + " " + message, COL_FILE_STATUS);
            fireTableCellUpdated(row, COL_FILE_STATUS);
    public void setFileStatus(String message, int row) {
            setValueAt(message, row, COL_FILE_STATUS);
        }Thanks
    Dimitar

    I have Custom JTable with MyTableRenderer which is nothing else but alternate the color of rows(cells)If I understand you correctly a better way to do this is to override the prepareRenderer(...) method of JTable. You can search the forum for my "Table Prepare Renderer" (without the spaces) example which shows how this can be done.
    I have a column in which cells i want to set these messages in different color.Then you need to use a custom renderer for that column.
    If you need further help then you need to create a [Short, Self Contained, Compilable and Executable, Example Program (SSCCE)|http://homepage1.nifty.com/algafield/sscce.html], that demonstrates the incorrect behaviour.

  • Set different color for one JTree node

    hello,
    I managed to find how to set a color for Jtree nodes but the problem is that with my method all the nodes will b the same color whereas i'm looking to have nodes of different color depending on the situation.
    the method for setting all Jtree nodes the same color(other than black):
    tree.setCellRenderer(
    new DefaultTreeCellRenderer() {
       public Color getTextNonSelectionColor() {
         return Color.lightGray; } });I WANT TO CHOSSE EACH COLOR FOR EACH NODE
    help plz
    thanks

    You need to implement TreeCellRenderer interface
    public Component getTreeCellRendererComponent(JTree tree,
                                                  Object value,
                                                  boolean sel,
                                                  boolean expanded,
                                                  boolean leaf,
                                                  int row,
                                                  boolean hasFocus)You can know which node is rendering by check value argument. Please read DefaultTreeCellRenderer's code.

  • Ho to set different color to different Jtree Nodes

    hi,
    In a JTree I need to remark with a different color the leaves that bring
    different categories of information.
    I wrote this function to achieve this purpose:
    private void assignRenderToTrees(JTree jTree, String category) {
             // a different color depending from the category
            Color color = null;
            String ssttrr = category.substring(0, 1);
            if (ssttrr.compareTo("*") == 0) {
                color = Color.YELLOW;
             if (ssttrr.compareTo("^") == 0) {
                color = Color.BLUE;
            // the same icon to all nodes
            String pathXopen = "resources_toShowMouth/oneToothGoodMod.gif";
            URL imgURLXopen = MedidentStart.class.getResource(pathXclose);
            ImageIcon iconXopen = new ImageIcon(imgURLXopen);
            if (iconXopen != null) {
                DefaultTreeCellRenderer renderer = new DefaultTreeCellRenderer();
                renderer.setLeafIcon(null);
                renderer.setClosedIcon(iconXclose);
                renderer.setOpenIcon(iconXopen);
                renderer.setBackgroundNonSelectionColor(color);
                jTree.setCellRenderer(renderer);
            } else {
                System.err.println("Leaf icon missing; using default.");
        } // assignIconsToTree()But in this way, I don't get the selection for the leaf, depending for the category.
    Instead I get all the nodes with the same color.
    I can believe that this happen because I am getting the nodes of all the tree,
    instead the single nodes..., but I am not able to select a single node to
    assign the color...
    I would have an help to do it..
    thank you
    regards
    tonyMrsangelo.

    hi,
    thank you for your kind answer.
    You are right..., JTree are a large framework that I don't know very good.
    ..So often I try to arrange a solution witouth to know good the environment where I am working ...
    This is the reason I changed the approch to the problem in the different time when I posted my ask.
    At any rate now I reproduced the problem selecting a part of my program.
    To use tree.setCellRenderer(renderer) is I found in an example that I was not
    able to reproduce.
    I hope to know what is wrong in the code I posted...
    import java.awt.Color;
    import java.awt.Component;
    import java.awt.Dimension;
    import java.awt.FlowLayout;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTree;
    import javax.swing.event.TreeSelectionEvent;
    import javax.swing.event.TreeSelectionListener;
    import javax.swing.tree.DefaultMutableTreeNode;
    import javax.swing.tree.DefaultTreeCellRenderer;
    import javax.swing.tree.DefaultTreeModel;
    public class SSCCE_ForPeriodontalCharting extends JFrame {
        PanelArcSupSx panelArcSupSx;//
        public SSCCE_ForPeriodontalCharting() {
            panelArcSupSx = new PanelArcSupSx();
            add(panelArcSupSx);
            setSize(900, 300);
            setVisible(true);
            this.setDefaultCloseOperation(EXIT_ON_CLOSE);
        public static void main(String[] args) {
            SSCCE_ForPeriodontalCharting xxx = new SSCCE_ForPeriodontalCharting();
    } // class SSCCE_ForPeriodontalCharting
    class PanelArcSupSx extends JPanel {
        JScrollPane jScrollPane[];
        JTree jTreeForArcSS[];
        DefaultMutableTreeNode[] rootNodeArcSS;
        Dimension dimPrefSemiArcPanels = new Dimension(850, 140);
        Dimension treePrefDim = new Dimension(100, 110);
        Dimension dimMinSemiArcPanels = new Dimension(650, 90);
        String[] treesContents = {        "* aaaaa - 2",     "* bbbbb - 2",
            "^ ccccc - 2",    "ddddd - 3",     "* eeeee - 2",
            "fffff - 6",    "* ggggg - 6",     "* hhhhh - 5",
            "* iiiii - 5",   "* kkkkkkk - 1",   "^ llllll - 5",
            "^ mmmmmmm - 2",   "nnnnnnn - 4",    "^ oooooo - 4",
            "* pppppppp - 4"};
        public PanelArcSupSx() { // costruttore
            this.setMinimumSize(dimMinSemiArcPanels);
            this.setPreferredSize(dimPrefSemiArcPanels);
            setLayout(new FlowLayout());
            jScrollPane = new JScrollPane[8];
            jTreeForArcSS = new JTree[8];
            rootNodeArcSS = new DefaultMutableTreeNode[8];
            // arc sup Sx
            for (int i = 0; i < 8; i++) {
                rootNodeArcSS[i] = new DefaultMutableTreeNode("    " + i);
                jTreeForArcSS[i] = new JTree(rootNodeArcSS); // create le 8 roots
    // assignIconsToRootInTheTree(jTreeForArcSS[i]);
    jScrollPane[i] = new JScrollPane();
    jScrollPane[i].setViewportView(jTreeForArcSS[i]); // mette il nodo nel Viewport
    add(jScrollPane[i]); // mette il Viewport nel pannello
    jScrollPane[i].setPreferredSize(treePrefDim);
    // attiva gli ascoltatori ....
    jTreeForArcSS[i].addTreeSelectionListener(new TreeSelectionListener() {
    public void valueChanged(TreeSelectionEvent e) {
    activateDialogXshowTreatments();
    } // for
    fillTrees();
    expandTrees();
    } // costruttore
    private void fillTrees() {
    for (int i = 0; i < treesContents.length; i++) {
    String strNmbr = treesContents[i].substring(treesContents[i].length()-1, treesContents[i].length());
    int nmbr = Integer.parseInt(strNmbr);
    addToothNodeForArcSupSx(nmbr, treesContents[i]);
    private void expandTrees(){
    for (int i = 0; i < 8; i++) {
    jTreeForArcSS[i].expandRow(0);
    * @param toothNmbr
    * @param strTreatment
    private void addToothNodeForArcSupSx(int toothNmbr, String strTreatment) {
    DefaultMutableTreeNode newChild = new DefaultMutableTreeNode(strTreatment); // nuovo treatment da inserire
    DefaultTreeModel model = (DefaultTreeModel) jTreeForArcSS[toothNmbr].getModel();
    DefaultMutableTreeNode parentNode = (DefaultMutableTreeNode) model.getRoot();
    model.insertNodeInto(newChild, parentNode, 0); // 0 = assegnamo sempre come primo nodo
    assignColorToLeafInTheTree(model);
    } // assingTreatmentToTooth()
    private void assignColorToLeafInTheTree(DefaultTreeModel model) {
    MyCustomizedRendererForJTree renderer = new MyCustomizedRendererForJTree();
    JTree tree = new JTree(model);
    tree.setCellRenderer(renderer);
    } // assignIconsToLeafInTheTree()
    private void activateDialogXshowTreatments() {
    // do anithing
    private void assignIconsToRootInTheTree(JTree jTree) {
    // do nothing now
    } // assignIconsToTree()
    } // class PanelArcSupSx
    class MyCustomizedRendererForJTree extends DefaultTreeCellRenderer {
    @Override
    public Component getTreeCellRendererComponent(
    JTree tree,
    Object value,
    boolean sel,
    boolean expanded,
    boolean leaf,
    int row,
    boolean hasFocus) { // costruttore
    super.getTreeCellRendererComponent(
    tree, value, sel,
    expanded, leaf, row,
    hasFocus);
    DefaultMutableTreeNode node = (DefaultMutableTreeNode) value;
    // String value = (String) val;
    String text = (String) node.getUserObject();
    String prefix = text.substring(0, 1);
    System.out.println("------------------ text = " + text + " prefix = " + prefix);
    // per quanto riguarda il colore ....
    if (prefix.compareTo("*") == 0) {
    setForeground(Color.YELLOW);
    setBackground(Color.YELLOW);
    // System.out.println("colore da usare giallo ");
    } else if (prefix.compareTo("^") == 0) {
    setForeground(Color.BLUE);
    setBackground(Color.BLUE);
    // System.out.println("colore da usare blu ");
    } else {
    setForeground(Color.BLACK);
    setBackground(Color.BLACK);
    // System.out.println("colore da usare bianco ");
    return this;
    } // costruttore

  • Is it possible to set a different color to part of a cell?

    Hi all,
    I am have trouble setting cell-specific Renderer.
    I have followed the instructions in the UISwing tutorial
    and extended JTable definition to overload getCellRenderer()
    to return myRenderer
    final JTable tableView = new JTable(dataModel){
    public TableCellRenderer getCellRenderer(int row, int column) {
    TableCellRenderer colorRenderer = new ColorRenderer();
    return(colorRenderer);
    My class definition for ColorRenderer is as follows:
    class ColorRenderer extends JLabel implements TableCellRenderer {
    public ColorRenderer() {
    public Component getTableCellRendererComponent(
    JTable table, Object color,
    boolean isSelected, boolean hasFocus,
    int row, int column) {
    setForeground(Color.blue);
    return this;
    Is it possible to set a different color to part of a cell?
    eg. I have "TEST,CELL,COLOR" as a string in a cell.
    Can I set a different color to the substring "CELL"?
    Your suggestions will be accepted most gratefully!
    Thanks in advance
    -Kalpana

    You should inherit your table cell renderer from a container, for example JPanel, add different JLabels to the panel and color them separately.
    Kurta

  • Set each tab lebel in different color

    hello,
    The question just as the title. hope can set the tab control's page label in different color . My LV version is 8.0 . Thanks.
    David

    Take 'edit text'  tool form tools palette, select the entire tab label on any single page of the tab control
    Now go to the 'text settings' in the tool bar (below menu bar) and select color of your choice in the drop-down menu
    See pic to get an idea
    Regards
    Dev
    Message Edited by devchander on 01-27-2006 11:17 PM
    Attachments:
    tab.jpg ‏132 KB

  • On a chart, can we set portions of a chart with different colors

    My application involves with fuel cell conditioning during which the V-I curve with go many cycles. I want to distinguish these cycles with different colors but don't know whether it's doable because I think if we set a color, it will set the whole line with the same color. Or if we can stop the line after one cycle and start the second cycle as a new line, then it will be a new color. Anyone can give some suggestion about how it can work? Thanks in advance.
    Guangde

    By bundling multiple points together you can get different plots on a waveform graph.  And +Inf plots nothing.  I attached an example that plots a random number.  When the boolean button is switched, it switches to the other plot line, thus another color.  This was only done for 2 different colors, but the case structure and the cluster could be expanded for more than 2 colors.
    Message Edited by Ravens Fan on 08-24-2007 10:43 PM
    Attachments:
    Untitled 1.vi ‏14 KB
    Example_BD.png ‏12 KB

Maybe you are looking for

  • My Apple id is not being recognized by my phone.

    After wiping out my phone (4s) I erased everything like support page said to do to restore to iCloud. When the phone came back on allowing me to start my Iphone from original out of the box settings it says it tells me that I have to enter the Apple

  • Passing Query to CFC

    I am passing a query to a cfc. When I dump the query in the cfc it looks fine. However, when I attempt to loop over the query I get the following error: Complex object types cannot be converted to simple values. The expression has requested a variabl

  • Advice for newbie

    Hi This is my first post and hope that somebody has the patience to give some advice to a newcomer. I 'discovered' programming via the familiar (?) route of Excel to VBA and got hooked on programming and what it can do. I did some reading and it seme

  • What is your preferred import format and why?

    Just curious as to what people like to use for importing information into PowerShell. It obviously depends on the format of the information, like lists, single text fields and lists of lists. [email protected]

  • [SOLVED] network does not work at bootup

    the only way i can get the network to work is by doing dhcpcd eth0 at root. how to set it up so that it works at bootup? Last edited by stevestark (2010-08-24 22:31:18)