To change Font of a Particular Node in a tree structure

IS there any way to set Visual attribute property to a particular node_lable on Heirachical tree Structure.
e.g.
Main Office has Two Branch Offices(Office1 and Office2). and Office1 has Three Sub Branches(sub1,sub2 and sub3).If I am working from Office1, and I want to print Organisation Structure with Office1 with font_weight as Bold.

Enhancements IF applied they will be available only in new releases of Forms, which probably be 11i. It's not possible to have it in Forms 6i.
Froms 6i it's already out of support (has minimum support I think).
Regards,
Tony

Similar Messages

  • Hierachical tree - Highlight particular node's in Tree

    Is there any way to bold or change the colour of particular nodes in a tree?
    We know and use the node icon to distinguish between them but ideally would want to bold some to highlight areas
    I can not see how to do this looking at the documentation but may be wrong.
    Thanks

    Thanks thats what i thought but hoped i was wrong.

  • Change font size of JTree nodes dynamically

    hi,
    I have a requirement to change the font size of nodes in a JTree as and when the user wants.
    I have implemented a custom renderer for the JTree, but right now i have a fixed font size for all the nodes.
    How can I change the font size of JTree at runtime??
    thanks.

    I haven't done this, but it seems like
    public Component getTreeCellRendererComponent(...Object value,...) {
    Component c = super.getTreeCellRendererComponent(...);
    if (value!=null &&
    value instanceof(String) &&
    ((String)value).startsWith("A")) {
    c.setFont(bigFont);
    else c.setFont(littleFont);
    }It seems that this code is just making the font size of nodes begining with "A" bigger and the rest smaller.
    It doesn't solve my problem.
    I want to have something like a font chooser by which user can choose the font size they want for the JTree.
    any help ??

  • Changing Font Coloured of Particular Block & Disabled Items.

    Hi there all,
    I have 5/6 blocks in a form.
    1. I want to change the background and foreground colour of particular block.
    2.I have few items which are disabled.Can we change the foreground colour of that ?
    Looking forward for suggestion, as how one can go about it.
    Thanks in Advance.
    Regards,
    Ajeet

    I've not read the paper but the word 'Loop' in your post got me worried about whether the solution is the most appropriate. I'm sure it's valid for the requirements in the paper but it looks like here all fields have to be set to the same colour. In that case it's more appropriate to assign a Visual Attribute to all fields and change the properties of that one object.
    James.
    Message was edited by:
    James Healy
    Just seen the date of the original post. I suspect I'm too late!

  • How to select a particular node in a tree?-want suggestions urgent

    i've to make a tree showing "c:\" folder structure of the system. Initially i'm adding the folders in c:\ only tothe tree. And i'm adding the subfolders when ever i select a particular folder. I'm opening the subfolders and inner subfolders of it and so inside like that. now i'm closing the window . i want the tree to reopen with the previously opened level when ever i again run the program. On closing i'm storing the last selected node using tree.getMaxSelectionPath() . And on reopen i'm setting it as tree.setSelectionPath(tree.getMaxSelectionPath()).
    But it is not opening the entire path. it is opening uptop one level only. what to do. Needs suggestion urgently.
    Thnaks for suggestons.

    Hi again,
    I am sorry, I cannot help in another way than looking at the documentation, because I have currently no JDK available here. If expandPath(...) doesn't work, you can try to get all the nodes of that path and expand them from the root node downwards, perhaps that will work.
    greetings Marsian

  • Fetch the index of the node in a tree

    hi,
    i am using a recursive tree structure,
    i need to get the index value of a selected node in a tree structure,
    can any one help me?
    thanks in advance,
    Regards,
    Meyyappan

    Hello Ganesh,
    in that case, just call
      lr_node_tmp = context_element->get_node().
      lr_parent_element = lr_node_tmp->get_parent_element().
      lr_parent_node = lr_parent_element->get_node().
    Best regards,
    Thomas

  • How can i change the particular node color in Jtree?

    I have constructed the tree.i dont know how to set the color for the particular node then how can i change the particular node icon depends on some conditions like if we will give the input whether it is available in jtree that node icon only changed.Anyone please help me as soon as possible.

    hi,
    i saw that tutorial.from that book i dont get the particular node cell renderer.i got a cell renderer for tree only.i attached my code in this mail.pls see and help me if u will do
    mport pack.Prop;
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Component;
    import java.awt.Container;
    import java.awt.Font;
    import java.io.BufferedReader;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.util.Properties;
    import java.util.Set;
    import java.util.StringTokenizer;
    import java.util.Vector;
    import javax.swing.Icon;
    import javax.swing.ImageIcon;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JScrollPane;
    import javax.swing.JTree;
    import javax.swing.UIManager;
    import javax.swing.text.Position;
    import javax.swing.tree.DefaultMutableTreeNode;
    import javax.swing.tree.DefaultTreeCellRenderer;
    import javax.swing.tree.DefaultTreeModel;
    import javax.swing.tree.MutableTreeNode;
    import javax.swing.tree.TreeCellRenderer;
    import javax.swing.tree.TreePath;
    public class ReadProperty3 extends JFrame{
    String str,key;
    static JTree tree;
    static Vector v;
    StringTokenizer st;
    static DefaultMutableTreeNode root;
    DefaultMutableTreeNode t;     
    public Object[] o;
    public static void main(String[] args) throws IOException {
    ReadProperty3 r = new ReadProperty3();
    Prop p=new Prop();
    JFrame f=new JFrame();
    p.show();
    Object[] o=v.toArray();
    int startRow = 0;
    String prefix =p.s;
    TreePath path = tree.getNextMatch(prefix, startRow, Position.Bias.Forward);
    //if(prefix.equals(root.getChildAt(0).toString()))
    if(prefix.equals("2000"))
         System.out.println("Node 2000 found");
         else if(prefix.equals("3000"))
              System.out.println("Node 3000 found");
         else if(prefix.equals("4000"))
              System.out.println("Node 4000 found");
         else
              System.out.println("Node not found");
         for(int i=0;i<v.size();i++)
              //((DefaultTreeModel)tree.getModel()).reload();
              DefaultTreeCellRenderer ren=(DefaultTreeCellRenderer)tree.getCellRenderer();
              Icon openIcon = new ImageIcon("C:/apache-tomcat-5.5.12/webapps/jsp-examples/images/execute.gif");
              Icon closedIcon = new ImageIcon("C:/apache-tomcat-5.5.12/webapps/jsp-examples/images/execute.gif");
              Icon leafIcon = new ImageIcon("C:/apache-tomcat-5.5.12/webapps/jsp-examples/images/read.gif");
              if(o[0].equals(p.s))
                   ren.setBackgroundSelectionColor(Color.MAGENTA);
                   ren.setBackgroundNonSelectionColor(Color.YELLOW);
                   //ren.setTextSelectionColor(Color.YELLOW);
                   //ren.setTextNonSelectionColor(Color.BLUE);
                   ren.setClosedIcon(closedIcon);
                   ren.setFont(new Font("Impact",Font.ITALIC,14));
              else if(o[1].equals(p.s))
                   ren.setLeafIcon(leafIcon);
                   ren.setFont(new Font("Impact",Font.ITALIC,10));
                   UIManager.put("Tree.leafIcon", leafIcon);
              else if(o[2].equals(p.s))
                   ren.setOpenIcon(openIcon);
                   ren.setFont(new Font("Dialog",Font.BOLD,9));
    public ReadProperty3(){
         super("JTree With Properties");
         try{
    int c = 0;
    while(c == 0){
    c = 1;
    BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
    System.out.print("Enter file name which has properties extension :");
    str = bf.readLine();
    File f = new File(str + ".properties");
    if(f.exists()){
    Properties pro = new Properties();
    FileInputStream in = new FileInputStream(f);
    pro.load(in);
    System.out.println("Key: " + pro.keySet());
    System.out.print("Enter Key : ");
    key = bf.readLine();
    String p = pro.getProperty(key);
    st = new StringTokenizer(p,"=,");
    root=new DefaultMutableTreeNode(key);
    v=new Vector();
    while(st.hasMoreTokens())
         String val=st.nextToken();
         v.add(val);
         o=v.toArray();
         System.out.println(val);
         t=new DefaultMutableTreeNode(val);
         root.add(t);
         tree=new JTree(root);
         tree.setEditable(true);
         JScrollPane jp=new JScrollPane(tree);
         // tree.setCellRenderer(new CellRenderer());
         Container content=getContentPane();
         content.add(jp,BorderLayout.CENTER);
    setSize(250,275);
    setVisible(true);
    addWindowListener(new ExitListener());
    else{
    c = 0;
    System.out.println("File not found!");
    catch(IOException e){
    System.out.println(e.getMessage());
    }

  • Changing font size(bold) or color of a particular row in ALV Grid Digplay

    Hi Experts ,
    I am having a requirment to highlight some particular rows in ALV Grid Display . To achieve this i need to change font size or make it bold or change color of that row .
    Please give me some inputs .
    Thanks in Advance.
    Vijyeta

    Hi
    Coloring An Entire Row
    Coloring a row is a bit (really a bit) more complicated. , you should add an additional field to your list data table. It should be of character type and length at least 4. This field will contain the color code for the row.
    First you have to declaration of our list data table u201Cgt_listu201D.
    DATA BEGIN OF gt_list OCCURS 0 .
    INCLUDE STRUCTURE SFLIGHT .
    DATA rowcolor(4) TYPE c .
    DATA END OF gt_list .
    Adding the field that will contain row color data
    As you guess, you should fill the color code to this field.  But how will ALV Grid know that you have loaded the color data for the row to this field. So, you make it know this by passing the name of the field containing color codes to the field u201CINFO_FNAMEu201D of the layout structure.
    e.g.
    ps_layout-info_fname = <field_name_containing_color_codes>. u201Ce.g. u2018ROWCOLORu2019
    You can fill that field anytime during execution. But, of course, due to the flow logic of screens, it will be reflected to your list display as soon as an ALV refresh occurs.
    Try this link also:
    Possible functionalities in ALV
    Regards
    Neha

  • Changing font color in a tree node

    All,
    I created a tree and all looks good but iam trying to set the font color of a node as show below but it wont work, can somebody pls give me a solution where i went wrong here,
    select case when connect_by_isleaf = 1 then 0
                when level = 1             then 1
                else                           -1
           end as status,
           level,
           '<SPAN style="color:red;">' || "ENAME" || '</SPAN>'  as title,
           (case when level = 1 then '#IMAGE_PREFIX#Fndtre11.gif'
                 when level = 2 then '#IMAGE_PREFIX#Fndtre12.gif'
                 else '#IMAGE_PREFIX#Fndtre13.gif' end) icon,
           "EMPNO" as value,
           null as tooltip,    url as link
    from EMP
    .......apex 4.1.1
    thanks

    Dear Gor,
    I have updated the sample tree to demonstrate the solution on
    http://apex.oracle.com/pls/apex/f?p=53647:5:17418576019225:::::
    login with test/test
    The steps are the following:
    1) Edit the page (right click on page title --> edit)
    2) Goto HTML Header section and write
    <style type="text/css">
    #eba_demo_tree a {color:red; font-size:16px;}
    </style>3) Write click on the tree region then Edit then specify Static ID as eba_demo_tree
    4) If any step is not clear, then use this developer access on the workspace on apex.oracle.com
    workspace : ralab
    user : test
    password : test
    and view/edit Sample Trees application / page 5
    Please. if this solves your question, mark it as Correct otherwise as helpful
    Best Regards
    Mahmoud

  • How to change font size in smartform and set layout of smartform

    Dear abapers,
                           I want to change font size in smartform and also set the layout of smart form how can we do this.
                                                 Thank you sir.

    Hi,
    you can do it first you need to goto smartforms tcode there click on radiobutton 'Style'.
    Give any name and click on create. Right sideyou can find character format right click on it and create a node .A pop will raise gve a 2 characterlike z1 or a1 etc click on font tab gve size and font style and click on save and activate. Use this style in your smartform you can apply what ever styles created in styles you can use it in your smartform by that smartstyle name.
    When we create text in output options give your smart style name and click on general attributes . Select your text and apply the style what thse size it should be and what the font style it should be.
    Goto smartforms tcode and select formpainter in application bar set layout according to your requirement.
    Thanks,
    venkat

  • Confining objects to a particular node in a distributed cluster

    I have a partitioned cache for a cluster and there are n nodes(jvm instance) within that particular cluster. Both the data and backup data are randomly and evenly spread accross different nodes. Is there any way to put a constraint based on the cached object value (eg object with value >5) or the newly cached object should always reside in a particular node? Is partitioned near cache supports that facility? I want that object to be loaded in a particular user preffered node for the first time itself irrespective of where it is referred?

    Hi,
    there is support to a somewhat similar functionality, but it is impossible to exactly achieve what you want.
    First of all, Coherence places and locates objects in the partitioned caches (distributed cache and near cache are partitioned caches) strictly based on the key. So it is impossible to achieve data placement based on any part of the value. Placement can depend only based on the key.
    Second: when nodes come and go, data in a partitioned cache moves around with the granularity of these movements being the partition. There is a way to influence which partition a specific key ends up or rather to influence that certain keys end up in the same partition, but the placement of partitions on nodes is not static, it varies over time. However you can determine which node a certain partition resides at the time of asking. Of course it might change right afterwards :-).
    So what you can do is you can ensure that groups of your keys end up on the same partition and hence they always reside on the same node.
    To achieve this either your keys must implement KeyAssociation or you must define a KeyAssociator instance for your cache. When this is done, then you can optimize your queries and aggregations by using the KeyAssociatedFilter or PartitionFilter to execute only on certain nodes or partitions.
    For more about this, look at the following Wiki page:
    http://wiki.tangosol.com/display/COH34UG/Data+Affinity
    Best regards,
    Robert

  • Change font size in mail

    How can you change the the font size in mail when not using the "(classic) style, particularly the column that lists all your emails (2nd column).

    Change color:  No
    Change font size:  In the App, No
    But you can change the font size for everything in iPad:  Settings > General > Text Size use slider to increase or decrease text size.

  • How to Change Fonts in Oracle Reports

    Hi All,
    When ever i am changing fonts in my report it reflects me when i run them on reports builder installed on my local machine.
    But when i put them on application server, these changes are not reflected. I am generating PDF reports.
    Can some body help me what should i need to do to reflect the font changes.
    Thanks in advance.
    Regards
    Kamal

    Hi Kamal,
    Whether the font used in the report is installed in the machine where Apps server is installed? If not , use the feature ' PDF Aliasing' to substitue for that particular font.
    For more information on this, have a look at the chapter "Managing Fonts in Oracle Reports" in Publishing Reports Manual. You can download it from http://download.oracle.com/docs/pdf/B14048_01.pdf.
    Thanks,
    Vidya Viswanathan

  • Changing fonts in iphoto book very buggy

    When I tried to change either the font or font size on the cover and it OK, all fonts throughout the book changed. When clicking on return to default all fonts changed again, but not to the original default font........help.

    I found some strange behaviour when changing fonts in a calendar I was producing. I found that clicking on the +Page Design+ button, which reapplies the default design for a particular page, fixed the problem for me. Annoying, though!

  • Verizon Webmail Editing fails in IE9 - Cannot change Font or Character Size

    I recently switched from IE8 to IE9, and now in Rich Text I cannot highlight and change Font family of Font Size.
    The highlight disappears when I click one of the Font dropdowns, and the cursor jumps to the head of the message.
    I can select a Font size and/or family, then position the cursor, then enter text, and it is the correct size and family,
    but I cannot after that change it.  If I paste something into the message, I cannot change that.
    This fails on two computers running WIN8-64bit and IE9.
    It does not fail in Firefox.
    Verizon says it is Microsoft's problem.  I think Verizon's webmail client provider needs to talk to MIcrosoft.
    Does anyone have this configuration with this problem?
    Does anyone have this configuration without this problem, and if so, any idea what to change?
    Has anyone a solution to offer (except returning to IE8 where it worked)?

    Thanks for the quick reply, I tried disabling hardware acceleration but the moment I unchecked it everything started appearing a bit fuzzy. Not as crisp as it normally should. (unless the real effect happens after restarting FF)
    Regardless I still don't see how my graphics driver would be the issue, because isn't IE9 technically using it as well? And it showed those special characters just fine other than making em appear a bit smaller.
    Also I forgot to mention this, but atm its only happening when I'm viewing that particular page with FF. If I view another different site (like a forum) that has the same or at least similar sets of those special characters, they are showing up fine. If I copy/paste those texts from IE9 onto FF then again they would show up fine.
    There's also some forum posts I did which involved me copy/pasting those special characters from that page (before updating to FF12), now when I look at those posts they haven't changed at all as that page has.
    So the problem here is not being able to view those characters completely but rather why they would appear different especially on that page unlike when viewed from different sources/browsers.

Maybe you are looking for