JTrees, JDK 1.4.2 and Windows XP

Hi,
I noticed that under JDK 1.4.2 with Windows XP, JTrees are drawn without the lines connecing the children the parent node. I want to draw the lines. Can anyone tell me how?
thanks

Let me explain a little clearer...
I am using the System look & feel. I am running on windows xp and the java version is 1.4.2. The problem is that that in the system look and feel of swing under XP, the JTrees are drawn w/o lines connecting the parent folder to the subfolder. I think it's unesthetic and I would like to know if I can "bring back" these lines.
In the java look and feel it is possible with this method:
tree.putClientProperty("JTree.lineStyle", "Angled");
However this only works for the java look and feel. Is there something similar to the this code that works for system look & feel????

Similar Messages

  • DNS Resolver not working with JDK 1.5.0_6 and Windows 2003

    I have a Windows Server 2003 machine which now has Java JDK 1.5.0_6 installed on it. Somehow the DNS resolver doesn't work - every call to InetAddress.getByName("host") throws an UnknownHostException. I've tried de-installed java and re-installing, but the problem remains. No traffic seems to be generated (i.e. no packets to port 53) when getByName() is called. I don't have any kind of firewall on the Windows Server 2003 machine.
    Has anyone ever seen this kind of behaviour / problem before and know of a solution?
    Thanks,
    Peter

    Ok, I finally managed to solve this problem. What was happening was that IPv6 was installed on this computer, and as a result Java was trying to do a DNS lookup using a IPv6 socket and failing. With the help of TracePlus Winsock, I discovered that internall Java's InetAddress.getByName does this:
    WSAStartup
    socket(INET6)
    getaddrinfo
    WSACleanup
    Two solutions are possible - either set the system preference java.net.preferIPv4Stack to true, or uninstall the IPv6 stack. Since I couldn't find a way to set the system preference in a persistent manner (apart from passing in an argument on the java command line), I uninstalled the IPv6 stack.
    Hope this helps someone else.
    Peter

  • NWDS and windows 7 Home Premium 64 bits

    Hello
    I try to install NWDS 7.1 on a laptop with JDK 1.5.0_15, OS Windows 7 64 bits. (Home Premium)
    Installation is ok, adding the features also, connect SAP site to upgrade to the latest version is fine.
    But I m not able to create a project : Wizard list is empty  and only button cancel is enable !
    It' s a bit frustating as a CE and ABAP stack are correctly installed and running on this laptop !
    Any idea to solve this issue
    Thanks

    Hi
    Additional information , the error is due to the NWDS UI :
    the log error meesage star with
    org.eclipse.swt.SWTERROR: No more handles
    at org.eclipse.swt.error(SWT.java:3589)
    result for example is an empty view when I want to display the Context Tab for a component controler.
    Thanks

  • JMF and Windows 7

    I have a program using JMF which worked fine on XP and Vista but is behaving very oddly on Windows 7.
    The program displays two mpg files synchronised with each other and I also control the playback speed. This has worked fine for 18 months.
    On Windows 7 I still see two videos but the speed control doesn't work and one or other of the videos (appears random which one) splits vertically in the middle and I see it compressed both above and below the split. Is anyone else having problems with JMF and Windows 7?
    jdk 1.6.0_13
    jmf 2.1.1e
    Heaps of memory - 4Gb
    Edited by: Leo--- on Nov 1, 2009 9:32 PM
    Edited by: Leo--- on Nov 2, 2009 11:53 AM

    The last version of Windows that JMF lists as supported is Windows 2000.
    Most of the codec support in the Windows Performance Pack are native codecs, meaning they're precompiled DLL libraries. DLLs from one Windows version often times aren't compatible with any other Windows versions, so it's actually quite amazing JMF worked with XP or Vista, at all.
    It sounds like what you're experiencing is simply DLL incompatibility using Windows 5 libaries on a Windows 7 system...

  • Reset() of ObjectOutputStream diff in Linux and Windows

    From the previous post and my test, it is better to call ObjectOutputStream oos.reset() to clean up buffer.
    But I notice that it works all fine in Linux, but if the remote site is a Windows machine, if you call oos.reset(), the remote site will throw socket.reset Exception and close the socket, which is not good at all.
    So I have to disable oos.reset() call to avoid remote java socket in Windows close, but I get OutOfTheMemory error after running a while, I suspect it is caused by not calling reset() and clean up buffer. So what should I do to avoid this problem?
    Thanks

    It sounds like you are running different versions or a buggy of the JDK.
    What versions are you using?
    This works fine with 1.4.2_05 (between Solaris and Windows)

  • Installing jdk 1.4.2 and 1.5 parallel

    Hello,
    I would like to know it is possible to install jdk 1.5 on a windows XP machine already countaining jdk 1.4.2.
    I need both versions. I want to switch between them with Eclipse build in features or by selecting the whole path to the bin folder of the target version in batch scripts.
    Is this possible or does dll or registry stuff collide?
    Tanks in advance.
    Alex

    When you install a JDK in Windows, you are given the choice to not install a JRE (it's installed by default).
    The JRE uses the Registry and also installs copies of java.exe, javaw.exe, and javaws.exe in /Windows/System32 directory. The JDK doesn't alter or install anything outside of the directory it installs into.
    You can have as many JDK installs (directories) of different versions as you want, and access the programs in each with a full path to the program. You can provide the path information either from the commandline or a .bat file.
    If any of the installs also install a JRE, then the Registry entries and java files in the System32 directory will be for the last version installed. There can only be one active JRE installed.
    Whatever version's files are found first on the PATH environment variable's list will be the version executed when a naked java command (without the path) is issued. This also means that you will [usually] execute the version whose files are in the System32 directory, since that directory is [usually] the first directory listed in the PATh list.

  • JTree Explore System Drives,Folders and Network Share

    Hi all,
    I need to list all the drives,folders and Network Share if any using JTree in a combobox similar to windows explorer.Please help me
    Sathya

    this will help you a little:
    File f [] = File.listRoots (): returns all the drives: the local && Remote ones
    to list directories & files you do something similar: File f2 = f[0].listFiles ();
    check on file/fir: f2[0].isDirecoty() or f2[0].isFile()
    Tip:
    You probably were planning on reading all files and directories and then showing them. If you did, DON'T. It will take forever! Just list the roots, if a root is selected list it's directories & files, if a directory is selected list it's subdirectories & files and so. Also try creating a DirectoryListener which is active when the directory's contents is visible and which will relist it's contents when it's contents is changed.
    enjoy, will be fun!
    greetz,
    Stijn

  • Font differs from Linux and Windows ?

    Hi, i just want to ask, are fonts different from windows and linux in applet. I use a standard courier font.
    For example, if i make an applet with courier font texts in linux, and make the texts wrap themselves, they will run ok in linux. But if i run the compiled applet in windows, the wrapped text somewhow got truncated.
    But if i compile the applet in windows, it will look ok in linux and windows.
    I've tried replacing my courier fonts in my /usr/java/jdk/jre/lib/fonts/cour*.ttf with the cour*.ttf from c:\windows\fonts with no effects .. Applets compiled and run ok in linux doesnt work in windows. They must be compiled in windows to run ok in both.
    Why is that ?
    Does the compilation use the fonts in the jdk lib or the system fonts ?
    I'm so confused T_T
    Please Help

    How do I get Mac OS 10.4.4 and Word X for Mac to see
    all the characters in the Word for PC document
    formatted in Times New Roman?
    There's no way with Office X, which can't do Unicode Greek. You need to upgrade to Office 2004 which is Unicode-savvy and installs in your Mac the same Times New Roman with Greek, Cyrillic, Hebrew, and Arabic which is used by WinXP. An alternative might be AbiWord or NeoOffice/J.

  • Cannot find native2ascii.exe (JDK 1.5.0_05 on Windows)

    Hi,
    I am sorry if this is not the right forum for this issue, but I have a small problem:
    I recently installed JDK 1.5 on my Windows XP box, and I need to use the native2ascii tool. For JDK 1.3 and 1.4, I have found this tool in the bin/ folder of the jdk installation. However, I cannot find the native2ascii tool in my JDK 1.5 installation, even though it is described in the documentation...
    Any ideas?
    Should I try re-installing the 1.5 JDK?

    Never mind, I reinstalled as soon as I got the chance, and there it is, in the bin directory...

  • Problem with Sessions and window.open

    Hi,
    Hi everyone,
    Help Please!!!
    I am working with Sevlet session objects and HTML forms and windows. I have an HTML form for the user to supply a username and password. Once the user clicks submit I need to open another browser window that has no toolbar, no location, no status bar, etc. The user should also be able to go back to that login screen and login again and open a 2nd, 3rd, etc. instance of the application. My problem is that each application is being asigned the same sessionId. I believe it is being asigned to the main login window and thus to the other child windows it opens. Is there a way to work around this? Do I need to make the user open another browser window to login? I need to be able to let the user open multiple instances of the application with unique session ids for each.
    Any insight is GREATLY appreciated on this topic. Anything you can tell me about sessions (Java), IE, window.open would help greatly!
    THANK YOU IN ADVANCE!!!
    MA

    To achieve this, you must introduce another level of
    abstraction to the Servlet specifications. When you
    work with JSP/Servlets you use mostly the HttpSession
    to handle user related tasks, and the aplication
    context, for things that are common to all users. But
    inside the HttpSession scope, you want to create
    containers that have 'smaller' scope and are uniquely
    identified.
    A ipothetical scenario :Let's say that you must have
    multiple connections to several databases, on each
    database user rights beeing diferrent, and you must be
    able to track user actions globaly, and eventualy
    capture a 'Close Application event' and close all db.
    connections.
    1. when the user first accesses the login frame create
    the HttpSession. In the HttpSession object, store a
    Hastable (let's call it 'ConnectionTable'). Each
    object in the Hashtable must identify uniqely a
    database connection. Now, to create unique identifiers
    ids, make the keys in the hashtable java.lang.Long
    objects, created using System.getCurrentTimeMillis().
    This guaranties there will be no possible confusion.
    From each new open window, on each request to the
    server, along with the usefull parameters, send the
    connection identifier. When proccessing the request,
    select the object from the Hastable wich corresponds
    to the ID.
    2. Now, the values in the ConnectionTable, must act as
    the containers that I mentioned in the first
    paragraph. The simplest way to do this is to have
    again a Hashtable derived class to do the job, wich
    exploses methods similar to HttpSession: setAttibute (
    Object key, Object value) and getAttibute ( Object
    key, Object value). This container may use internally
    a Hashtable to store object, and explose only the
    getAttribute and setAttribute methods for clarity. Any
    way, this is a problem of implementation. Let's call
    this class CustomSession.
    Now, a textual activity diagram:
    1 user accesses the main page, you start a new
    HttpSession; In the HttpSession object, store the
    ConnectionTable object.
    2. the user enters the userID and pwd and adatabase
    name, and a new window is opened. Let's supose the
    data entered is valid.
    3. when you process the login data, you create a new
    CustomSession object. you put in it whatever you would
    put in your HttpSession. You generate a unique
    identifier using System.CurrentTimeMillis(). Put the
    CustomSession object in the ConnectionTable, using the
    generated id as key. Send the response.
    ..... later on .....
    100. the user asks for a particular action to be
    performed - e.g. a row deletion. The page contains a
    form with text field where the user introduces the
    row number, a submit button and a hidden input with
    the ID.
    101. you process the data. Get the ID from the request
    object, get the ConnectionTable from the session, get
    the CustomSession using the ID as key, do whatever
    your logic was doing, but obtaining the objects from
    the CustomSession instead of HttpSession
    NicNic,
    Very slick idea. I think that it could work and it seems that there would be not security issues because the id that you would store on the client side is the Unique Identifier and not the actual Session Id. Do you forsee any security issues for this implementation?

  • How can I make an icon that links to a webpage that works with Mac and Windows??

    Hi!
    I burn CDs with my photos and send them to clients.   Besides the photos folder, I would like to include a file (similar to the .webloc files on the Mac Desktop) that can be clicked and it will be linked to my website - it will open up a browser window and go to my website .      Is it posssible to make one of these icons that works with both Macs and Windows machines?  Thanks!

    Now it works!  Thanks, Denico!
    The reason I saved to text:   The first time I followed your instructions, it did not work.   I tried to figure out what I did wrong and saw that you wrote to "save as plain text."   I did not know what this means and there was no option available to save a plain text.  So I looked around and saw "save as stationery" and I guessed that maybe that was what you meant.   And after that, it worked!  But the next thing you know, the icons started duplicating themselves.
    I guess I had made a different mistake in the beginning and I fixed it without knowing what it is.
    Thanks for clearing that up.
    But just one question.  WHY does saving as "stationery" make an icon duplicate itself?

  • Is Verizon going to acknowlege the problems with FIOS and Windows Vista

    For months now, I have been reading the numerous problems Fios internet customers are having with Fios internet/Actiontech Router and Windows Vista and there has been no acknowledgement by Verizon of this current major issue.
    I have also experienced the exact same issue for months now since I switched to Verizon FIOS internet. Previously I had Comcast HSI using my Windows Vista laptop.  I had their service for over a year and I NEVER has a problem with the Windows Vista globe icon disappearing and loosing internet connection. The Globe always stayed on and never went away and I never lost connection when I had Comcast
    I had Verizon FIOS installed last September with my Windows Vista computer and my wireless internet connection started to drop from day 1 and it has been a daily occurrence for over 5 months now.  It has gotten so bad, I have had to hardwire my laptop to to be able to use the internet uninterrupted.
    This is what daily scenario is:
    When I turn on my laptop(with Windows Vista, I can initially get full internet access(with the globe on and it says "Local and internet). After about 10 minutes or less, the globe switches to "local only" and I can still get  internet access.  After another 5 or so minutes, a large X covers the globe and I lose internet connection entirely. The actiontech router wireless signal is no longer listed as one of the wireless networks.  The only way for me to regain internet access is either to restart my laptop or reboot the actiontech router.
    Numeorus posts here, over by DSL forums(Broadband Reports),Microsoft's website and a few othere websites detail this issue.
    I am extremely shocked and surprised that Verizon has not tried to fix this issue by working with both the makers of the Actiontech Router as well as Microsoft to find out what the problem is and how to fix it.
    I would just like to reiterate I strongly believe this is primarily a FIOS internet issue since I previously had Comcast HSI for over a year with the same Windows Vista laptop and I NEVER had that problem. Also,  I can connect to my neighbors wireless connection(she uses Comcast HSI) and when I do, the globe stay on all the time on my computer and the internet does not lose connection.
    I know that there are a couple of Verizon employees here. Please tell the higher ups who handle FIOS internet that this is a major issue that needs to be resolved as soon as possible.
    P.S: Please don't tell me to go by my own router because then, I will have to deal with the issues of setting it up to work with Fios TV and the related VOD, widgets, remote DVR compatability issues to deal with. I don't think I can deal with the additional headaches. 

    FIOS is short for fiber optics.  fiber optics is different technology than DSL.   
    With that said, if you search the Microsoft databases for vista issues with fiber optics, (CURRENTLY THERE IS ONLY ONE PROVIDER OF FIBER TO THE HOUSE, that being Verizon, so yes you can also search Vista issues with verizon and\or fios) and you will find that Microsoft already acknowledges this issue with their software.  AND they offer you a fix.
    cjacobs001

  • IPhone 5 iOS 6.1.4 and Windows 7 x64 USB Driver Issues

    Been pulling my hair out with this one for the last week or so and haven't had any luck finding anything on the forums or the web regarding a solution short of a full reinstall of Windows 7 which I am not prepared to do at this time; so hoping someone here can shine some light on this for me
    I have a iPhone 5 that is updated to iOS 6.1.4 and a recently built Windows 7 64-bit machine. All of my other USB devices function fine (keyboard, mouse, Xbox 360 wireless receiver for Windows, and a Seagate 2TB external USB drive). I've downloaded the most recent version of iTunes, installed successfully and then attempt to plug in my phone to sync. I get the standard Windows *ding* that I've attached a device and 1 of 2 things happens (I haven't been able to determine what causes one reaction to happen versus the other): Windows will successfully install the 'Apple USB Mobile Device Driver' successfully and it will appear under my USB devices in Device Manager. However - iTunes will not recognize the phone and I cannot see it in Windows either. In the 'Devices and Printers' snap-in my iPhone will appear under 'Unspecified Devices' as the 'Apple USB Mobile Device'. The iTunes diagnostics fail to find a connected device so the tests fail. As soon as I unplug the device, the strangest thing happens: Windows will start trying to install a device driver and after a few seconds it will fail stating that the "MTP Device Driver" installation failed because the device was unplugged. iTunes also thrown an error "iTunes cannot connect to this iPhone" throwing error code 0XE8000065 (I've also seen error code 0XE8000085 as well)
    After some finagling, I've managed to get Windows to recognize the device under 'Portable Devices' in Device Manager as an "MTP USB Device" using the generic driver. At this point, I've tried updating the driver and manually specifying the Apple USB driver located in the C:\Program Files(x86)\Common Files\Apple\Mobile Device Drivers which updates successfully but then changes the device to "Apple USB Mobile Device" and moves it under the USB Devices in Device Manager; and Windows nor iTunes can see it even still.
    I've tried removing iTunes several times and ensuring that all remnants of the installation are gone (registry and folders on the installation drive) and have disconnected all my USB devices short of the keyboard and mouse and still I get the same results. At this point, I'm afraid that a re-install of Windows is going to be the solution; but it's a drastic one (I have a SSD drive where Windows is installed along with all of my games for faster load times/better performance and do not want to have to redownload\reinstall all of them) and I'm not prepared to undertake it at this time, which is why I'm posting here
    I've used a utility called USBDeview that sees my phone is connected - so I know from a functional standpoint that my USB ports are good and working. I also know the cable is good too - my daughter's PC (Windows 7 32-bit with NO iTunes) immediately sees the device when I plug it in, installs the drivers, recognizes it as an iPhone and I can then see/browse it in Windows Explorer like I would normally expect. My work PC (Windows 7 64bit, NO iTunes) sees the device just fine as well. I would immensely appreciate anyone that has seen this issue or has any additional solutions I can try.
    It's also worth mentioning that I've never used Kapersky antivirus so the UPPERFILTERS value in the registry that I've seen as a solution on some forums is not present on my machine. I'm using Microsoft Security Essentials as my antivirus (no flaming please lol - it meets my needs and is extremely lightweight, which is why I'm using it on a gaming rig) and it's not indicating any issues. I've also tried running iTunes as an administrator (even though my account is a local admin on the machine) and that does not have any effect either.
    If there is anything I left out, please let me know; and I thank you in advance!

    AphexTwin wrote:
    - no Apple input?
    Of course not.  Didn't you bother to read the TOU of this forum?  This is a USER TO USER technical support forum.  Apple doesn't post here.

  • IPod Nano: Error Message "The USB device has malfunctioned and Windows does not recognise it"

    Hi everyone, I just received 2 brand new iPod Nanos for my kids for Christmas, thought I'd be smart and sync them both now before wrapping them so I don't have to be messing around with them on the day. One synced without a problem, then using the same cable, same computer, same USB port, the 2nd one came up with "The USB device has malfunctioned and Windows does not recognise it" I've tried restarting my computer, unplugging and reinserting the USB. Is there anthing else I can try before returning it? Thanking you for any help.

    I have solved my problem, I ended up ringing Apple and got an awesome lady who told me to reset it by pressing the sleep button and menu button together for about 10 seconds and once it actually turned on for the first time the computer then recognised it, so it's all good, :-) Thank you lovely lady!

  • ITunes and Windows 8 Home Sharing (Possible Fix)

    If this fix has been posted elsewhere then I apologize, but I wanted to share what I stumbled on as a possible for for iTunes Home Sharing and Windows 8. I did a lot of port forwarding, both on my router and my Norton firewall, but nothing seemed to help. After a few minutes my Apple TV and iOS devices would stop seeing my iTunes library. The only way to fix it was to reboot the router.
    On a whim I looked in my Device Manager and found under Network Adapters a device called Microsoft Kernel Debug Network Adapter. I disabled this, rebooted my computer, and have since no issues with Home Sharing. It's only been a few hours, but that is the longest I've gone since installing Windows 8. I'll look in the morning to see if it still works.
    So give this method a try and see what happens. Hopefully it will fix your problems.

    Here are the three steps I took to get Home Sharing working successfully on Apple TV. This has worked for the better part of a week so hopefully it will work well for others.
    In your software firewall create two new Inbound Rules. Open port 3689 (TCP) and port 5353 (UDP) to All Programs.
    If your hard drive goes to sleep after a certain period, be sure to change to something greater than 30 min. (Control Panel -> Power Options -> Change Plan Settings -> Change Advanced Power Settings -> Hard disk -> Turn off hard disk after -> Setting)
    On your Apple TV change when it goes to sleep. I changed mine to 10 hours.
    This seems to keep the connection alive. On occassion it will look like it gets stuck loading, but just let it go. At some point it wil kick on. If you generates a connection error just try loading the media again and it should start.

Maybe you are looking for

  • SAP WM Certification

    I want to know how to go about getting certified with SAP WM? I have about 8 years of on hands dealing with deliveries, shipments, transfer orders, Transfer requiements, Managing material bins, setting up control cycles, dealing with all types of cog

  • Exception message changed

    We noticed that when an EJB in WL7 throws an exception with a message, the client sees a differente message, enriched with the server side exception trace. So if you client uses the message to get information from the server, this message is useless.

  • Starting and Stopping ALM Services in linux

    How to stop and Start ALM Services linux. I have installed new ALM application in my linux as root user. Now i am trying to stop the service using command HPALM. When i check the status it show not running and  i can see script located in app/wapper

  • AHCI Problems with DW CS3

    I have problems with DW CS3 when I use the AHCI mode in BIOS. Then DW can not start. But I need a solution. Since I do not want to buy DW CS4 although this runs without any problems.

  • Firefox problems with Open URL vi

    I am using Open URL in Default browser to display the contents of a file. If IE is the default browser and the file is xyz.htm it works but not if the file is xyz.html. On the other hand if Firefox is the default browser it works if the file is xyz.h