JTree display: vertical connecting lines missing

My JTree uses a subclass of TreeModel to display the contents of a DOM tree and to allow modifications on this tree. I've got a problem with the rendering of the tree: the vertical connecting lines don't show.. (also there seems to be problems with the refreshing of the tree display, even though TreeModelEvents are fired properly, but it might not be related.)
The problem originates from the TreeModel subclass (other models worked fine), but I can't tell what exactly in the class causes it. I've tried to remove code, etc.. with no effect.
Has anyone encountered something similar?
Thanks in advance.
Simon

yeah... that's common in jtrees that do not refresh well... you know that something is wrong when the lines have dissappeared.
when i encountered this problem what i did was to copy the lines from DefaultTreeModel sourcecode where the model is refreshed into my code... that worked fine for me...

Similar Messages

  • My 27" iMac displays vertical green lines when turned on and then will not boot up

    Can anyone tell me why my 27" iMac displays vertical green lines when it is turned on and then will not boot up?

    Welcome to Apple Support Communities
    The display or graphic card are damaged. The only thing you can do is to take your computer to an Apple Store or reseller to get your computer repaired.
    If you use an external display with your Mac, connect it to your computer and see if these lines appear on the external display. If so, it's a graphic card problem

  • I have a macbook pro 10.6.8. The screen displays vertical grey lines how do i fix it?

    I have a macbook pro 10.6.8. The screen displays vertical grey lines. I tried Crtl.command.eject... Did not work. I tried Command.crtl.p.r. way; Didnt work. What is wrong with my mac and how can i fix it?

    NVRAM reset is command, option, P and R.
    Restart the computer and immediately hold the four keys down. Keep holding the keys down, and let the Mac chime three times, then release the keys. Be patient it could take some time.
    That being said what you describe may be a hardware issue, so the NVRAM reset probably won't work.
    You can get a free diagnosis at an Apple genius bar. Make an appointment and take the MBP in,
    http://www.apple.com/retail/geniusbar/

  • Apple 20" display vertical & horizontal lines on G4

    I have just brought a 20" apple display, to connect to my G4(MDD), I connected it via the ADC (after checking on the Power Mac G4: Display compatibility from apple) and all I get on the screen are horizontal and vertical lines, I cannot even see the desktop. Why is this? and what is it caused by, is my only option to buy the DVI to ADC connector?
    Thanks

    I'm having the same problem. The computer is unusable, I can't see almost anything. The computer runs fine, its just that the display is all messed up.

  • HELP!! iMac display vertical colored lines at startup!!

    Hi, my iMac Intel CoreDuo 20", display vertical lines at startup and isn't possible to log-in in the system.
    If I turn off and turn on the iMac many and many times, sometimes I can resolve this problem.
    Does anybody knows this problem?
    Is the Ati x1600 broken or the lcd monitor??
    Thanks!
    Here some photos of the described problem:
    http://www.stefanomanca.com/imac/imac.htm
    Imac Intel CoreDuo 20"   Mac OS X (10.4.7)   2GB ram

    But the reason is known? Is the video card broken or completely working?
    thanks
    Imac Intel CoreDuo 20" Mac OS X (10.4.7) 2GB ram

  • Connecting lines missing from binary TOC

    Hello!
    Hope you can help me...I'm using X5.
    My problem is that I lose the connecting lines between the
    square/minus boxes in the TOC when I select binary.
    Is there a way to have both?
    Thanks much, Deb

    Welcome to our community, Deb
    It is my understanding that if you enable the Binary TOC,
    none of the styling attributes will have any effect.
    Unless Pete Lees steps in here to set us straight and advise
    I'm wrong in my assumption, I'm going to say we just can't have our
    cake and Edith too.
    Seems lots of things in life are a trade off, eh? Want
    something over here? You have to give up something over there.
    Cheers... Rick

  • JTree Display keeps Repainting and Missing Information

    I have a JTree that has objects for each node. When I try to send regular Text in the toString of the object, I have no issues with the display of the Tree. When I send HTML, the screen has issues with the repaint?? I expand the Tree and some of the rows are missing.. Anyone had this experience before.
    public String toString() {
    String Display = "<html><body><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td width=\"160\">"+category+"</td><td width=\""+(MaxWidths[1]*6)+"\">"+problem+"</td><td width=\""+(MaxWidths[2]*6)+"\">"+goal+"</td><td width=\""+(MaxWidths[3]*6)+"\">"+parameter+"</td></tr></table></body></html>";
    return(Display);
    I am using tables to format the width of the columns. Does someone else use a different formating method?

    1. set the height of rows to a value of less than or equal 0 so that the renderer is used to determine the rowheight of each row (note that for rendering purposes the tree is mapped on rows. Use
    JTree.setRowHeight(0);for setting the row height.)
    2. ensure that the renderer calculates the height of each cell correctly. I think you shouldn't have to when using JLabel or subclasses as renderers...
    Regards,
    Fritz

  • 17" Studio Monitor Display with single, vertical color line

    My 17" Studio Monitor just recently developed a single, vertical color line in the display. No matter what I am viewing the color line is there. Re-boot doesn't remove it. Neither does un-plugging the computer.
    Anyone know the cause and/or remedy?
    Thanks for any help!

    There is an adapter called a DVIator that you will need ..or something similar. It will turn turn the ADC connection into a DVI connection ..then you would need something to turn regular DVI into the Mini DVI connection to fit into the iMac.
    Personally, I don't think it would be worth the cost ..the DVIator alone is like $100. I'd just buy a new screen for that price. Preferably one that was a little closer to the same brightness of the 24" iMac's screen. I had my old Studio display next to my new 24" iMac and it looked so old and dingy I wouldn't be able to stand the difference using it as a second monitor.

  • Connecting lines in JTree

    Hi,
    I have a JTree with each node having bigger icons, and bigger font.
    So the connecting lines are kind of misplaced
    for example the vertical line that connect the root node to it's children doesn't come from the center of the root node rather it is placed leftwards from the root node center.
    Is it possible to shift the connecting lines in a JTree?
    Thanks
    -desiguy

    import java.awt.*;
    import java.awt.geom.AffineTransform;
    import java.awt.image.BufferedImage;
    import javax.swing.*;
    import javax.swing.plaf.*;
    import javax.swing.tree.*;
    public class TreeLines {
        private Icon[] getScaledIcons(Component c) {
            String[] iconIds = { "closed", "collapsed", "expanded", "leaf", "open" };
            Icon[] icons = new Icon[iconIds.length];
            for(int j = 0; j < icons.length; j++) {
                icons[j] = UIManager.getIcon("Tree." + iconIds[j] + "Icon");
            ImageIcon[] imageIcons = new ImageIcon[icons.length];
            double scale = 1.25;
            for(int j = 0; j < icons.length; j++) {
                int w = (int)(scale * icons[j].getIconWidth());
                int h = (int)(scale * icons[j].getIconHeight());
                int type = BufferedImage.TYPE_INT_ARGB_PRE;
                BufferedImage image = new BufferedImage(w, h, type);
                Graphics2D g2 = image.createGraphics();
                g2.setRenderingHint(RenderingHints.KEY_INTERPOLATION,
                                    RenderingHints.VALUE_INTERPOLATION_BICUBIC);
                AffineTransform at = AffineTransform.getScaleInstance(scale, scale);
                g2.setTransform(at);
                icons[j].paintIcon(c, g2, 0, 0);
                g2.dispose();
                imageIcons[j] = new ImageIcon(image);
            //JOptionPane.showMessageDialog(null, imageIcons, "", JOptionPane.PLAIN_MESSAGE);
            //JOptionPane.showMessageDialog(null, icons, "", JOptionPane.PLAIN_MESSAGE);
              return imageIcons;
        private void expandTree(JTree tree)
            DefaultMutableTreeNode root = (DefaultMutableTreeNode)tree.getModel().getRoot();
            java.util.Enumeration e = root.breadthFirstEnumeration();
            while(e.hasMoreElements())
                DefaultMutableTreeNode node = (DefaultMutableTreeNode)e.nextElement();
                if(node.isLeaf()) break;
                int row = tree.getRowForPath(new TreePath(node.getPath()));
                tree.expandRow(row);
        private JScrollPane getContent() {
            JTree tree = new JTree();
            expandTree(tree);
            return new JScrollPane(tree);
        public static void main(String[] args) {
            TreeLines treeLines = new TreeLines();
            Icon[] icons = treeLines.launchDialog();
            UIManager.put("Tree.closedIcon",    new IconUIResource(icons[0]));
            UIManager.put("Tree.collapsedIcon", new IconUIResource(icons[1]));
            UIManager.put("Tree.expandedIcon",  new IconUIResource(icons[2]));
            UIManager.put("Tree.leafIcon",      new IconUIResource(icons[3]));
            UIManager.put("Tree.openIcon",      new IconUIResource(icons[4]));
            UIManager.put("Tree.font", new FontUIResource(
                                       new Font("Dialog", Font.PLAIN, 18)));
            JFrame f = new JFrame();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(treeLines.getContent());
            f.setSize(400,400);
            f.setLocation(200,200);
            f.setVisible(true);
        /** To get and scale some images to use. */
        private Icon[] launchDialog() {
            JTree tree = new JTree();
            JDialog d = new JDialog(new JFrame(), false);
            d.getContentPane().add(tree);
            d.pack();
            Icon[] icons = getScaledIcons(tree);
            d.dispose();
            return icons;
    }

  • Thunderbolt display with vertical blue lines

    Hi All - My 2011 Thunderbolt display (connected to an early 2011 mbpro) is now displaying the dreaded vertical blue lines of old - any one else have any experiance of this?

    Hi askier,
    Thanks for visiting Apple Support Communities.
    You may find the steps in this article helpful as a starting point for troubleshooting the display issue you're seeing:
    Apple computers: Troubleshooting issues with video on internal or external displays
    http://support.apple.com/kb/HT1573
    Best,
    Jeremy

  • Vertical blue lines on external Thunderbolt display

    I use an Apple Thunderbolt Display connected to a 27" iMac using OS X 10.9 (Mavericks). I've been using this set up since last June, but in the last 30 days or so I have noticed that vertical blue lines started appearing in the Thunderbolt Display. It started with one single pixel wide line at first, but now the section with vertical blue lines is about 2 inches wide. The lines are not always there. It happens mostly in the morning.
    The display is still under Apple's warranty, but I wanted to find out if there's anything I can do to fix the problem before deciding to take the display to the nearest Apple Store.

    If touching the tab can make the problem go away, perhaps you can put a piece of compressible material, like weather stripping, in the assembly such that when you bolt it all back together the material keeps pressure on the tab same as if you had your finger on it. OK, that's a long shot. But there is no other way to restore a failed tab bond that I am aware of.

  • Vertical blue line is displaying on the screen.

    In my iphone4 the vertical blue line is displaying on the screen.please provide the solution.
    the running ios is 6.1.3.

    If your iPod Touch, iPhone, or iPad is Broken
    Apple does not fix iDevices. Instead, they exchange yours for a refurbished or new replacement depending upon the age of your device and refurbished inventories. On rare occasions when there are no longer refurbished units for your older model, they may replace it with the next newer model.
    ATTN: Beginning July 2013 Apple Stores are now equipped to do screen repairs/replacements in-house on iPhone 5s. In some cases while you wait. According to Apple this is the beginning of equipping Apple Stores with the resources needed to do most repairs for iPhones, iPads, and iPod Touches that would not require major replacements. Later in the year the services may be extended as Apple Stores become equipped and staffed with the proper repair expertise. So, if you need a screen repaired or a broken screen replaced or have your stuck Home button fixed, call your local Apple Store to see if they are now doing these in-house.
    You may take your device to an Apple retailer for help or you may call Customer Service and arrange to send your device to Apple:
    Apple Store Customer Service at 1-800-676-2775 or visit online Help for more information.
    To contact product and tech support: Contacting Apple for support and service - this includes international calling numbers.
    iPod Service Support and Costs
    iPhone Service Support and Costs
    iPad Service Support and Costs
    There are third-party firms that do repairs on iDevices, and there are places where you can order parts to DIY if you feel up to the task:
    1. iResq or Google for others.
    2. Buy and replace screen yourself: iFixit

  • Why is my iMac computer screen displaying vertical blue and pink lines through it?, why is my iMac computer screen displaying vertical blue and pink lines through it?

    My iMac which is but a few years old at this point is displaying vertical lines thru the computer screen, what is this and what can be done about it?

    Do you get the same result starting in Safe Mode ?
    As old as your iMac is, have you cleaned out the dust? Dust buildup can lead to over heating issues. Remove any and all things plugged into it including the power cord, Remove the RAM access grille. Vacuum all openings starting with the RAM access area (air intake). Vacuum all ports and plugs, DVD slot and the opening across the top of the rear of the body. Blow compressed air through all your openings and vacuum again to remove any dust you loosend. Reinstall the RAM grille. Plug in the keyboard and mouse if not blue tooth. Insert power cord...
    You are now in a perfect position to do a
    SMC RESET
    http://support.apple.com/kb/HT3964
    Shut down the computer.
    Unplug the computer's power cord and ALL peripherals.
    Wait 15 seconds.
    Attach the computers power cable.
    Wait another 5 seconds and press the power button to turn on the computer.
    It is the 5 second timing that initiates the reset.
    Here is a Widget to monitor your temps and other operations:
    http://islayer.com/apps/istatpro/

  • Screen displaying vertical lines

    Hi.
    I have my MacBook Air for about one year, however, recently it started displaying vertical lines (black background and lots of colorful vertical lines). It happens everytime I move the screen.
    How can I fix this?
    Thanks

    You need to contact Apple. If you have Apple Care it will take care of this hardware issue. If you did not get Apple Care, it's possible this is still convered under your warranty.
    https://selfsolve.apple.com/agreementWarrantyDynamic.do
    https://ssl.apple.com/support/

  • Display vertical lines like brackets around more complex Statements

    Hello
    Is there a possibility somewhere in the preferences for the editor to display "vertical lines" for IF or CASE statements etc. (...i.e. like TOAD does it by default)?
    Thank you for any hints.
    Regards,
    Thomas

    Thank you for this useful information.
    I checked it now again and downloaded the newest version 2.11.
    For relatively short statements this works fine.
    I maybe just was a bit unlucky to start using SQL-Developer directly with a trigger having over 1100 lines of code (I know there is potential for improvement ;-) )
    SQL-Developer does not show these "+" and "-" any more when I copy/insert this statement to the editor. (In Toad it still works).
    Thank you very much anyway.
    PS: I can reproduce such behaviour when doing i.e. this: http://www.developer.com/db/article.php/3326371/Auditing-Oracle-Data.htm
    to the table SCOTT.DEPT:
    CREATE TABLE DEPT_A (
    DEPTNO NUMBER(2,0),
    DNAME VARCHAR2(14),
    LOC VARCHAR2(13),
    aud_action CHAR(3),aud_timestamp DATE,aud_user VARCHAR2(30) );
    CREATE OR REPLACE TRIGGER DEPT_ATRG
    AFTER INSERT OR DELETE OR UPDATE ON DEPT FOR EACH ROW
    DECLARE
    v_operation VARCHAR2(10) := NULL;
    BEGIN
    IF (
    :new.DEPTNO <> :old.DEPTNO or
    :new.DNAME <> :old.DNAME or
    :new.LOC <> :old.LOC or
    1=2) THEN
    IF INSERTING THEN
    v_operation := 'INS';
    ELSIF UPDATING THEN
    v_operation := 'UPD';
    ELSE
    v_operation := 'DEL';
    END IF;
    IF INSERTING OR UPDATING THEN
    INSERT INTO DEPT_A (
    DEPTNO,
    DNAME,
    LOC,
    aud_action,aud_timestamp,aud_user) VALUES (
    :new.DEPTNO,
    :new.DNAME,
    :new.LOC,
    v_operation,SYSDATE,USER);
    ELSE
    INSERT INTO DEPT_A (
    DEPTNO,
    DNAME,
    LOC,
    aud_action,aud_timestamp,aud_user) VALUES (
    :old.DEPTNO,
    :old.DNAME,
    :old.LOC,
    v_operation,SYSDATE,USER);
    END IF;
    END IF;
    END;
    /

Maybe you are looking for

  • OMF export failed due to internal error

    I get this error message whatever I do when I try to export as OMF: "OMF export failed due to internal error" I tried OMF 1 and 2. I tried to uncheck "include audio". I tried an extremely small project (one region, one track). Always the same error.

  • Stored procedure with temp table creation inside and using it

    I want to create a temp table inside a stred procedure and make use of it . I want perform some delete statements based on select statemets .An I want to drop the table at the end . When I tried to create a table inside the stored procedure using exx

  • Shockwave crashes system in limited user account

    I am having a problem with shockwave content playing on my system. I have followed every single step in this article kb403082, except for formatting my system and reinstalling windows and shockwave alone (atomic bomb option). I couldn't do step 5 com

  • Importing an image into oracle report

    hi all, I have created an oracle report which has to incorporate an image in it. I have created a link file and gave the image path in the property inspector. It was working fine. but my manager wants me to import the bmp file to the report. Can anyb

  • Why can't my partition be modified

    I made a partition recently for OS X Snow, I made it 20gigs and now i wsnt to make it bigger but it tell me the partition cannot be modified, Anyone know what is happening. Thanks