JTree: how not to render the "tree connecting lines"

I have a JTree.
I would like that my custom tree renderer (using windows LAF) did not paint the dotted line that connect the hierarchy nodes. setting the icon to null in the default renderer only do not paint the folder. How can I disable also the painting of the dotted line?
using
tree.putClientProperty("JTree.lineStyle", "None")
I disable it for the whole tree.
First of all this do not work on Windows LAF. Then I'd like to disable only on certain branches or nodes, that are somehow as "empty containers", while keeping hte default feature for the "good branches".
any idea?
thanks
Edited by: Davide_Gesino on Nov 8, 2009 5:24 AM

hii,
one from possible:
tree.putClientProperty("JTree.lineStyle", "Horizontal"); a lots examples (runnable) at http://www.java2s.com/Code/Java/Swing-JFC/Tree.htm
... kopik

Similar Messages

  • How do I get the internet connection back onto ipad even though it connects to Wifi successfully and I have checked on my iPhone which does connect via the same wifi and to the internet?

    How do I get the internet connection back onto ipad even though it connects to Wifi successfully and I have checked on my iPhone which does connect via the same wifi and to the internet?

    Your router may not have given your iPod a valid IP address. Go to Settings > Wifi > your network name and touch the ">" to the right to see the network details. If the IP address shown starts with 169 or is blank then your router didn't provide an IP address and you won't be able to access the Internet.
    Sometimes the fix can be as simple as restarting your router (remove power for 30 seconds and restart). Next, reset network settings on your iPod (Settings > General > Reset > Reset network settings) and then attempt to connect. In other cases it might be necessary to update the router's firmware with the latest from the manufacturer's support web pages.
    If you need more help please give more details on your network, i.e., your router make/model, the wifi security being used (WEP, WPA, WPA2), etc.

  • ORA-12518 TNSlistener could not hand off the client connection

    I am using oracle 11g on windows sever 2008. when i am trying to connect application to database it gives the error ORA-12518 TNSlistener could not hand off the client connection. and everytime when i connect it gives the error.there is a need of either restart the database or increase the number of processes. many times i increased the number of processes. now the no. of processes is 500 and maximum utilization is 437 and current utilization is 435. how can i resolve the problem permanently.
    thanks in advance....
    Edited by: k.bhanja on Mar 21, 2012 10:53 PM

    thanks kuljit,
    In sqlnet.ora i am getting the following error..
    Fatal NI connect error 12518, connecting to:
    (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=WIN-2CS4P4UZMJL)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=orcl)(SERVER=DEDICATED)(CID=(PROGRAM=C:\app\Administrator\product\11.1.0\db_1\jdk\jre\bin\java.exe)(HOST=WIN-2CS4P4UZMJL)(USER=Administrator))))
    VERSION INFORMATION:
         TNS for 32-bit Windows: Version 11.1.0.6.0 - Production
         Windows NT TCP/IP NT Protocol Adapter for 32-bit Windows: Version 11.1.0.6.0 - Production
    Time: 16-MAR-2012 16:08:45
    Tracing not turned on.
    Tns error struct:
    ns main err code: 12564
    TNS-12564: TNS:connection refused
    ns secondary err code: 0
    nt main err code: 0
    nt secondary err code: 0
    nt OS err code: 0
    and in listener log file....
    21-MAR-2012 00:00:05 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=orcl)) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.15.1.26)(PORT=39001)) * establish * orcl * 12518
    TNS-12518: TNS:listener could not hand off client connection
    TNS-12560: TNS:protocol adapter error
    TNS-00530: Protocol adapter error
    32-bit Windows Error: 233: Unknown error
    but if i increase the number of processes or restart the database, the problem does not occur.

  • How to switch off the internet connection via GPRS by iphone 3G

    how to switch off the internet connection via GPRS by iphone 3G?
    need help.
    thanks

    Your router may not have given your iPod a valid IP address. Go to Settings > Wifi > your network name and touch the ">" to the right to see the network details. If the IP address shown starts with 169 or is blank then your router didn't provide an IP address and you won't be able to access the Internet.
    Sometimes the fix can be as simple as restarting your router (remove power for 30 seconds and restart). Next, reset network settings on your iPod (Settings > General > Reset > Reset network settings) and then attempt to connect. In other cases it might be necessary to update the router's firmware with the latest from the manufacturer's support web pages.
    If you need more help please give more details on your network, i.e., your router make/model, the wifi security being used (WEP, WPA, WPA2), etc.

  • How can I search the tree with a given string?

    How can I search the tree with a given string?
    I don't find any function like "search(...)".
    I want to find the tree nodes which include the given string.
    Thanks.

    Try it with .com instead of .ca - fixes it for me (corporate firewall blocks .ca here)
    http://spendolini.blogspot.com/2013/09/working-with-apex-tree.html
    Anyway - it links to an article of mine which describes interacting with the tree: Tom's Blog: Working with the tree in Apex. There is also a demo application on apex.oracle.com: http://apex.oracle.com/pls/apex/f?p=54687:38

  • BC4J DO NOT RE-USE THE ''INACTIVE'' CONNECTIONS, DATABASE IS SATURATED

    We developed a J2EE Web application based on the BC4J Framework.
    We're using JDevelopper 9.0.3.2 (9.0.2.822 before). The web application is rolled out on Oracle
    9ias 9.0.2 patchset 3.
    The database used is oracle 9i 9.2.0.
    We used the following code to connect to the BC4J:
    public void openConnection() {
    m_appModule = null;
    while (m_appModule == null)
    try
    m_appModule =
    Configuration.createRootApplicationModule(
    m_sAppModuleName,m_sAppModuleConfigName);
    } catch (JboException e) {
    if
    (e.getErrorCode().equalsIgnoreCase(AMPoolMessageBundle.EXC_AMPOOL_COOK
    IE_ALREADY_EXISTS)){
    try {
    Thread.currentThread().sleep(5);
    } catch (InterruptedException m) {
    }else
    throw e;
    The following code closes the connection to the BC4J
    public void closeConnection() {
    Configuration.releaseRootApplicationModule(m_appModule,true);
    m_appModule = null;
    The pooling parameters are the same as the default ones in Jdevelopper.
    We noted that certain connections created by the BC4J in the database were
    turned "inactive" and were never re-used.
    After a certain time, "inactive" connections multiply and the database is
    completely saturated.
    The BC4J do not re-use the "inactive" connections but try to create new ones.
    The "inactive" connections that are never re-used are never killed.
    Our only solution is to reboot the database server or the application OC4J
    instance to suppress the "inactive" connections.
    We tried to configure the BC4J pool in Jdeveloper, but it doesn't work in 9IAS.
    Could you please clarify what the problem is? Looking forward to receiving your
    feedback on this pressing issue, regards.
    Stéphane CHEVALLET

    I'm hitting the same problem.
    have you managed to solve it ? please share your wisdom :)
    Best Regards
    Rui Madaleno

  • "A valid repository does not exist at the specified connection" when connecting

    Hi all,
    I'm using ODI 11g and Oracle Database 11g EE.
    I've installed ODI without any errors, and chose to skip repository configuration during installation.
    I created the Master and Work Repositories with the RCU that was provided in the same media pack as the ODI installation files.
    After starting ODI, clicking "Connect To Repository..." and inputting the correct credentials I get the following error:
    A valid repository does not exist at the specified connection...
    http://pastie.org/pastes/8081847/text?key=grna09suyra4w0vgitbxiw
    Has anyone had this error before, can anyone help?
    Thanks!
    Josh.

    Josh,
    Looks like the RCU did not create the repository in the intended schema for some reason. you can check the schema for the ODI tables (SNP_*) presence.

  • The ipod software update server could not be contacted.the network connection could not be established

    the ipod software update server could not be contacted.the network connection could not be established

    Try changeing the DSN server. See:
    iOS 5 update issues  "Network...: Apple Support Communities

  • How do you change the spacing between lines of text?

    using Dreamweaver 6 how do you change the spcing between lines of text. Not seeing it as a option in the page properties menu.

    Try CSS line-height property.
    Kenneth Kawamoto
    [link removed by moderator]

  • How can I allow the application to line through a field that has been locked after being digitally signed?  We have multiple sections on a form with some fields being proposed information and other in another section having the approved information. once

    How can I allow the application to line through a field that has been locked after being digitally signed?
    We have multiple sections on a form with some fields being proposed information and other in another section having the approved information. once the approved information is entered we line through the proposed field so the data entry clerk won't pick up the wrong information.  However we are receiving an error when attempting to enter data  in the field which we have this edit.  Error property: line through cannot be set because doing so would violate the document permission setting.  any idea how we can get around this issue?

    You can control which fields are locked down after signing by setting up a collection. Then those that are not locked can be changed after signing. If this is not possible, then the line outs must occur prior to signing.

  • How can i know the number of lines in field-symbol internal table

    how can i know the number of lines in field-symbol internal table

    Hi,
    If your field symbol has been defined as an internal table :
    Use std describe as
    Data: l type i.
    describe <fs> lines l.
    'l' will contain the number of lines as needed.
    FYI
    The size of this storage area in a field symbols depends on the number of table lines which is not fixed, but determined dynamically at runtime.
    Regards,
    Amit

  • How do you find the number of lines in a file?

    I need to count how many lines there are in a file, I am using a BufferedReader to read in the data, but how can I find the number of lines?
    Thanks

    That depends. How do you define a line? Is it a specific number of
    characters, a String that's terminated by a newline character or some
    combination thereof?

  • How do I increase the number of lines presented in a drop down list?

    When I am entering a single character/number for each of a random selection of three letters in a password verification, I get a drop down list from A to S only, the first 20. Accessing letter T to number 9 means scrolling down. How can I increase the number of lines in a drop down box to 36?

    Hi canddski,
    If you are taking about an interface on a website, this is up to the ui designer. But there is a reflow that depends on screensize for the Firefox UI.
    You can use asp to control the list:
    [http://forums.asp.net/t/1970301.aspx?How+can+i+display+selected+no+of+records+from+datatable+using+dropdown+list+without+database+]
    but also try asking on stackoverflow.com

  • How do I reduce the space between lines in a JTextComponent?

    I've searched pretty thoroughly in this forum and can't find an answer.
    My editor displays text fine, but I'm not happy with the space between lines. Is there any way I can reduce the overall height of each line just to close the gap a little?

    Okay, I've got it worked out. I reckon it will work for my purposes although I have yet to test it in my app.
    The trick is to use a negative value for the StyleConstants.setSpaceAbove(spacing2, -5.0f);The code below shows a comparison between a text pane with default spacing values and a text pane with that -5 space above value.
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.text.*;
    public class TestTextPane extends JFrame
    public TestTextPane()
         super("Text Pane Test: LineSpacing");
    JPanel panel = new JPanel();
    setContentPane( panel );
    JTextPane textPane = new JTextPane();
    textPane.setFont( new Font("monospaced", Font.PLAIN, 12) );
    textPane.setText( "abcdefghijklmnop\none\ntwo" );
    SimpleAttributeSet spacing = new SimpleAttributeSet();
    StyleConstants.setLineSpacing(spacing, 0.0f);
    StyleConstants.setFirstLineIndent(spacing, 0.0f);
    StyleConstants.setSpaceAbove(spacing, 0.0f);
    StyleConstants.setSpaceBelow(spacing, 0.0f);
    StyleConstants.setUnderline(spacing, false);
    StyleConstants.setItalic(spacing, false);
    StyleConstants.setBold(spacing, false);
    //this line sets the attributes for the text specified by the first two arguments.
    textPane.getStyledDocument().setParagraphAttributes(0, textPane.getDocument().getLength(), spacing, true);
    JScrollPane scrollPane = new JScrollPane( textPane );
    scrollPane.setPreferredSize( new Dimension( 200, 200 ) );
    //set up the comparison
    JTextPane textPane2 = new JTextPane();
    textPane2.setFont( new Font("monospaced", Font.PLAIN, 12) );
    textPane2.setText( "abcdefghijklmnop\none\ntwo" );
    SimpleAttributeSet spacing2 = new SimpleAttributeSet();
    StyleConstants.setLineSpacing(spacing2, 0.0f);
    StyleConstants.setFirstLineIndent(spacing2, 0.0f);
    StyleConstants.setSpaceAbove(spacing2, -5.0f);
    StyleConstants.setSpaceBelow(spacing2, 0.0f);
    StyleConstants.setUnderline(spacing2, false);
    StyleConstants.setItalic(spacing2, false);
    StyleConstants.setBold(spacing2, false);
    //this line sets the attributes for the text specified by the first two arguments.
    textPane2.getStyledDocument().setParagraphAttributes(0, textPane2.getDocument().getLength(), spacing2, true);
    JScrollPane scrollPane2 = new JScrollPane( textPane2 );
    scrollPane2.setPreferredSize( new Dimension( 200, 200 ) );
    panel.setLayout(new FlowLayout());
    panel.add( scrollPane );
    panel.add( scrollPane2);
    public static void main(String[] args)
    TestTextPane frame = new TestTextPane();
    frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
    frame.pack();
    frame.setVisible(true);
    }

  • How do I have the Artists photos line up with there songs. Music

         How do I have the artists photos line upwiththere songs. For some reason some of my photos have moved to the wrong song.  In my Music app.

    Hi!
    You can sync your new computer to your previous Sync account. Follow the instructions provided here: https://support.mozilla.com/en-US/kb/add-a-device-to-firefox-sync#w_add-another-computer
    If you don't have the Sync Key with you, you can retrieve it from your phone using the following Android extension: https://addons.mozilla.org/en-US/mobile/addon/aboutsynckey/

Maybe you are looking for

  • Why do I receive "4.3.2 connection rate limit exceeded" error message using the mail merge extension and what can be done about it?

    I am using TB 31.3.0 with Mail Merge 3.9.1. I routinely send an email to 435 members of an volunteer emergency responders group that I coordinate. I do so using a .csv list with mail merge. While there were no problems in the past, more recently the

  • Constant mds activity in AFP log

    Every user pops out the following errors every two minutes in the AFP log: IP 192.168.1.xxx - - [18/Apr/2008:15:26:21 -0800] "Delete mds-lock-dir" -5007 0 0 IP 192.168.1.xxx - - [18/Apr/2008:15:26:21 -0800] "Delete master-status" 0 0 0 IP 192.168.1.x

  • CF8 Issue

    I'm trying to call a web service from CF8, running on Mac OS X 10.4.10 (with all updates). I'm getting this error on the cfinvoke line: coldfusion.jsp.JavaCompiler$UnknownCompiler: Unable to run the internal Java compiler: java.lang.NoClassDefFoundEr

  • Can a KT4V-L Board support a 400 mhz FSB?

    Just curious. I am anxiously awaiting the new Athlon XP Bartons with 400 mhz FSBs. Juts wondering if a BIOS update is all that's needed?

  • Flash Mp3 player auto loads files from folder

    I'm making a website from flash 8 that can include an mp3 player that will create a playlist from files within a specified folder. As mp3 files are uploaded i hope the player will auto update the list. Any help would be appreciated.