Jtree display performance

I try to display a JTree with 7 000 elements and it takes a lot of time to appear at the screen, so how can I speed up the display, my method is like this :
DefaultMutableTreeNode rootTreeNode = DefaultMutableTreeNode)tree.getModel().getRoot();
for(int t = 0; t != displayGenes.size(); t++) {
current++;
DbxrefGeneProduct dbxref = (DbxrefGeneProduct)displayGenes.elementAt(t);
Vector vecEvidences = dbxref.getEvidences();
DefaultMutableTreeNode dmtn = new DefaultMutableTreeNode(dbxref);
for(int u = 0; u < vecEvidences.size(); u++) {
//my objects
Evidence ev = (Evidence)vecEvidences.elementAt(u);
DefaultMutableTreeNode dmtn2 = new DefaultMutableTreeNode(ev);
dmtn.add(dmtn2);
rootTreeNode.add(dmtn);
((DefaultTreeModel)tree.getModel()).reload();

I try to display a JTree with 7 000 elements and it takes a lot of time to appear at the screen, so how can I speed up the display, my method is like this :
DefaultMutableTreeNode rootTreeNode = DefaultMutableTreeNode)tree.getModel().getRoot();
for(int t = 0; t != displayGenes.size(); t++) {
current++;
DbxrefGeneProduct dbxref = (DbxrefGeneProduct)displayGenes.elementAt(t);
Vector vecEvidences = dbxref.getEvidences();
DefaultMutableTreeNode dmtn = new DefaultMutableTreeNode(dbxref);
for(int u = 0; u < vecEvidences.size(); u++) {
//my objects
Evidence ev = (Evidence)vecEvidences.elementAt(u);
DefaultMutableTreeNode dmtn2 = new DefaultMutableTreeNode(ev);
dmtn.add(dmtn2);
rootTreeNode.add(dmtn);
((DefaultTreeModel)tree.getModel()).reload();

Similar Messages

  • Not saving Display Performance...

    Every time I close and then later return to a CS5 document the Display Performance returns to Typical. I have selected High Quality but when I save and close the document this is lost and I am forced into resetting it each time.
    This was not the behavior of my foamier InDesign version.
    Is there a control/preset I am missing? I looked in Preferences and some other areas but found nothing that seemed to set the Display Performance for the document.
    Thanks in advance.

    Look again...it's a preference setting.
    Bob

  • My whole document comes out as low res when I export to PDF, even the indesign file also now low res. Tried changing display performance, but that's not helping.

    My whole document comes out as low res when I export to PDF, even the indesign file also now low res. Tried changing display performance, but that's not helping.

    Are your  links up to date? What settings did you use?

  • Illustrator CS5 display performance of fine lines and patterns

    Hi,
    is there a way to improve the display performance in Illustrator CS5? I am working on a large piece which has a lot of very fine cross-hatching that I create with dotted .5 lines (why I'm using Illustrator rather than Photoshop for that isn't open for discussion ). It looks fine when saved as a jpeg or exported to Photoshop, but in Illustrator itself the lines show up significantly thicker and darker - which is very confusing. Switching to Overprint/Pixel Preview doesn't change much.
    I've taken a couple of screenshots (taken at 16% zoom) to illustrate what I mean.
    Illustrator screenshot:
    Photoshop screenshot:
    Also I've noticed the same problem with pattern tiles - when zoomed out to ~50% they start to lose their seemlessness (and look like an incomprehensible mess)

    it's a very large file so I export it at 72ppi. But exporting isn't a problem - regardless of what resolution I export it at the lines always look smoother and softer in Photoshop. Zooming in at 100% in Illustrator gives an accurate display (exactly the same as in PS, I compared the two), it's only when I zoom out that the lines start to look rough and jagged.

  • (JS)  Setting Display Performance to High Quality

    I am currently using InDesign CS3 with the ExtendToolScript 2.0
    I have a script that imports XML to create business cards. Along with text it also imports the logo and picture for each employee. The script runs fine but I cannot figure out how to have the display performance setting to high quality so that the images to do not look pixelated on screen. I have tried the DisplayPerformancePreference setting and that did not work. Any suggestions or the line of code to accomplish this would me much appreciated.

    Hi Justin,
    // High quality display
    app.activeWindow.viewDisplaySetting = ViewDisplaySettings.HIGH_QUALITY;
    // Fast display
    app.activeWindow.viewDisplaySetting = ViewDisplaySettings.OPTIMIZED;
    // Typical display
    app.activeWindow.viewDisplaySetting = ViewDisplaySettings.TYPICAL;
    Kasyan

  • ID CS6 Display Performance Issue

    Evere since upgrading to InDesign CS6, my Display Performance seems to render visuals erraticaly. As a default I keep everything set to "Typical" (under View > Display Performance). I have been noticing that some pages will render my placed graphics as though my DP is set to "Fast" (by showing solid grey boxes). I've also noticed when I change my setting to "High Quality", some of the pages will still render as "Fast" and some as "Typical". This is happening to different pages in the same document, but also happening in different (not all) of my documents.
    I'm wondering if anyone else is having a smiliar problem?

    That's certainly not typical. One possibility is that object level dispaly settings are enabled, and set to lower quailty for some reason on these images.  Another possibility is that your prefs are hosed. See Replace Your Preferences

  • How do I control the order in which JTree displays nodes?

    I'm trying to display the nodes in a JTree in a specific fashion, but I can't figure out how to change the order JTree displays them in. It seems the default is alphabetically, with leaves first and nodes with children second. I've spent a few hours pouring through the documentation, but I haven't been able to find out what I need to do. Anyone know?

    They are displayed in the order they are added on the same level.

  • Help, PE8 says: "Display performance will be poor due to incorrectly operating graphics card"

    I receive the following error message in the lower left corner of the screen upon starting a new project in PE8 or opening an existing one: "Display performance will be poor due to incorrectly operating graphics card or driver."  It seems that Premiere Elements 8 is not recognizing and hence not using my GPU to render files when burning DVD's.  Unlike PE4, which utilized my GPU ( I know this because I've installed GPU-Z which shows me when a program is utilizing my GPU) when encoding files and the like, PE8 takes more than twice as long to render the same files and projects when I attempt to burn to a dvd.  Not to mention it utilized my CPU at around 98% for the duration of the 2 hour burn, heating my CPU to dangerous levels. 
    I have the latest Graphics card driver for my Nvidia GTS 250: v195.62
    I've called technical support and they sent me to the following troubleshooting article, but I've tried everything to no avail: http://kb2.adobe.com/cps/514/cpsid_51427.html. 
    Here are my computer specs:
    Windows Vista Home Premium 32-bit, SP2
    Intel Quad-Core Q6600
    3 Gig Ram
    4 Hard-Drives
    Nvidia GTS 250 Graphics Card
    blah..blah..blah
    P.S. I can't re-install PE4 as it was bundled software that came with my wife's computer..and I consequently tried to uninstall/reinstall to my system with no serial number...Also, I don't want to revert back to an earlier nvidia driver on principle (b/c PE8 should work as advertised with the latest nvidia drivers) and more importantly, doing so might interfere with my games and other programs.
    One last thing.  PE4 utilized my GPU, I downloaded the latest trail version of Cyberlink's Power Director Software and it utilized my GPU, even windows dvd maker uses my GPU...However, I've spent a lot of time with PE4 and I love the features and the interface and would rather work with the latest from Adobe.  I'm using PE8 for a lot of video projects and I don't want to have to waste time watching it take 2 hours to render a DVD when PE4 did the same project in 45 minutes.
    Any advice regarding this problem would be much appreciated.  Thanks.

    It could be that the message is benign. Premiere Elements does not use your graphics card to render your video. That's a function of your processor.
    Your graphics card effects your onscreen display only. So, unless you're seeing a significant drop in the quality or function of your onscreen display, I wouldn't worry about it. (The program is likely switching automatically to a compatibility mode.)
    It could be that a Windows Update is conflicting with something in your graphics card's driver -- and it will eventually be corrected in a later driver release.
    So, unless your display is degrading when the program switches to compatibility mode, just ignore it and keep working.
    Version 8 is a massive resource hog and, for reasons I can't figure out, takes twice as long and uses twice as much power to accomplish the same things that previous versions accomplished using very little power. I'm not sure what Adobe's strategy is with this.

  • Still getting Display Error in PE8: "Display performance will be poor due to Incorrectly..."

    I recently updated my OS from Windows Vista (32-Bit) to Windows 7 (64-Bit).  When working with PE8 in Windows Vista, I would receive the following error (signified by a red X in the lower left hand corner of the screen) whenever opening an existing project or creating a new one "Display Performance will be poor due to incorrectly operating graphics card or driver!"  To my consternation, I'm getting the same message after updating my OS with a CLEAN INSTALL of Window 7 64-bit.  I have the latest, stable Nvidia card driver 196.21 and have installed the latest patch from Adobe 8.0.1.  I'm interested to see if anyone is having this reoccurring GPU-incompatibility problem after installing the new patch.
    Any solutions that don't involve simply turning off GPU playback are much appreciated.
    As this is not a "workflow" problem I don't see the need in displaying an exhaustive list of all of my Computer assets.  However, here are the basics.:
    Computer: HP Pavillion M9150f
    Processor: Intel Quad-Core Q6600 2.4 GHZ
    Ram: 8 GB
    Video Card: Nvidia GTS 250 1gb Ram, Latest WQHL Nvidia Driver 196.21
    I have no other Video-Editing software installed, not even windows movie maker.
    Any help with this problem would be much appreciated.

    Adobe's silence on the issue leads one to believe they simply cant fix it.
    That could well be a reason. However, if history is any indicator, Adobe is always tight-lipped about any plans, or works in progress, until they are ready for "prime time." Recently, a lot of podcasts and blog-spot pieces began appearing on changes in PrPro CS5. Many of these are directly related to GPU acceleration with certain nVidia cards, and a totally new render engine, Mercury. Still, other than some observations from select personnel, and a few demo videos, the complete details have not come forth. Also, there has been caution that Mercury might NOT make it into CS5. Only time will tell. So silence is not new from Adobe, and there could be various reasons for it, from re-coding being an impossible task to the patch/fix not being quite ready for release. PrPro CS4 got three significant updates, plus updates to Encore and AME. It was only about one week before those releases, that a single word hit the fora.
    Good luck,
    Hunt
    HERE was the "sneak peak" on Mercury.
    HERE is a thread on nVidia support for it.

  • Please restore Display Performance

    I am trying to move up to CS6 from CS4. I'm find that CS6 is slightly laggy in redraw, especially when I zoom in and out, and over time, the lag impeeds my workflow.
    I am not sure if this would help, but in CS4 one way to make things redraw faster was to adjust the Display Performance/ Hand tool slider. I have included a screenshot of it from my CS4. Alternatively, if perhaps this is no longer applicable with the 64bit version, then there should be some way to throw more resources at the program, by specifying the RAM usage like in Photoshop.
    My system is a Win 7 64 machine, with 12G RAM and an Nvidia GeForce GTX 465 card with 1024Mb onboard RAM. It is handling CS4 fine, and PS CS6 seems to be fine too (a very slight drop when I try to tun Illustrator CS6 at the same time).

    I absolutely second this. AI CS6 is really slow with screen redraw for me as well. And it's ... jumpy as in not smooth when I pan the screen. I kinda hate it.
    And I'm on a very fast Mac Pro and yet this still happens.
    Please bring back the Display performance slider. AI CS6 is too slow without it.

  • Display Performance Difference between CS3 and CS4

    I have a computer running CS3 and a computer running CS4. When I place an image in InDesign CS3, it looks way better than when I place it in CS4. The display performance for both computers are set exactly the same. Raster and Vector images are set to proxy, transparency is set to medium quality, Anti Aliasing is turned on.
    The CS4 computer:
    Processor Name: Dual-Core Intel Xeon
    Processor Speed: 2.66 GHz
    Number Of Processors: 2
    Memory 4GB
    System Version: Mac OS X 10.5.8 (9L31a)
    CS3 computer:
    Processor Name: PowerPC G5
    Processor Speed: 2 GHz
    Number Of Processors: 2
    Memory 4GB
    System Version: Mac OS X 10.5.8 (9L31a)
    What am I missing? It is virtually every image.

    "You can adjust the quality of the the display itself without altering the name of the setting."
    Tried that. The end result is viewing images at the higher quality that slows down the machine.
    "Also, the size and resolution of images plays a role in how large the previews are, and their quality."
    The difference is very noticeable when the exact same image is placed at the exact same sizes in InDesign CS3 and CS4. Everything in the workflow remained the same, except the changing of InDesign files.

  • JTree display issues and thread safety

    I've recently ran into some issues with a JTree not displaying correctly. Infrequently, blank space will appear in the tree (big gaps between consecutive nodes), or the text of a node will be cut off ending with a "...". This happens when (but not yet proven a direct result of) one thread is expanding a node of the tree while another thread is inserting nodes into one of the expanding node's children through calls to DefaultTreeModel.insertNodeInto. (what I'm doing here is lazy loading the children's children when the parent is expanded, and the lazy loading is performed by a seperate thread so as not to delay the main thread.) It does not happen if the second thread simply adds child nodes without using the DefaultTreeModel's insertNodeInto method.
    I think what might be happening here is that the DefaultTreeModel.insertNodeInto method is calling fireTreeNodesInserted which I think is in turn causing nodes in the tree to be re-rendered. This got me thinking that the problem may come down to the DefaultTreeCellRenderer being used by the two threads simultaneously. DefaultTreeCellRenderer extends JLabel and returns itself in the getTreeCellRendererComponent method. If two threads were causing nodes to be rendered at the same time, it would seem the rendered label could be occasionally in an inconsistent state.
    Anyone ran into a situation like this before? The problem of text being cut off seems to be eliminated by having a custom renderer return a new component each time, rather than returning itself, but this results in degraded performance. It's almost as if each thread would need it's own renderer (or the renderer would need to return a different component for each thread), but I'm not sure how this would be done. And this doesn't solve the problem of gaps appearing in the tree.
    As for the gaps, I think this might be solved by changing when the children's children are getting loaded in respect to the parent node expanding. At first I was using a TreeWillExpandListener that fired off loading the children's children. I think I might can solve the white space in the tree problem by changing that to a TreeExpansionListener that uses the treeExpanded method. So far this seems to be working...so that the parent node is done expanding before the second thread begins loading the children's children.
    Any thoughts?

    I actually found the thread3 article first... since there doesn't seem to be direct links between them, I thought I would add for anyone who reads this thread that there are several related articles. sabre150 linked the first; the others are the same base URL but with the number incremented for each. For example, the 2nd article is:
    [http://java.sun.com/products/jfc/tsc/articles/threads/threads2.html]
    And the 3rd article, which most directly applies to what I am doing, is:
    [http://java.sun.com/products/jfc/tsc/articles/threads/threads3.html]
    Edited by: Skotty on Mar 5, 2009 9:35 PM -- links turned into actual links
    Edited by: Skotty on Mar 5, 2009 9:36 PM -- formatted for nicer display

  • MBP with 27" Display performance question

    I'm looking for advice regarding improving the performance, if possible, of my  Macbook Pro and new 27'' Apple display combination.  I'm using a 13" Macbook Pro 2.53Ghz with 4GB RAM, NVIDIA GeForce 9400M graphics card and I have 114GB of the 250GB of HD space available.  What I'm really wondering is is this enough spec to run the 27" display easily.  Apple says it is… and it does work, but I suspect that I'm working at the limit of what my MCB is capable of.  My main applications are Photoshop CS5 with Camera RAW and Bridge.  Everything works but I sometimes get lock ups and things are basically a bit jerky.  Is the bottle neck my 2.53Ghz processor or the graphics card?  I have experimented with the Open GL settings in Photoshop and tried closing all unused applications.  Does anyone have any suggestions for tuning things and is there a feasible upgrade for the graphics card if such a thing would make a difference?  I have recently started working with 21mb RAW files which I realise isn't helping.  Any thoughts would be appreciated.
    Matt.

    I just added a gorgeous LCD 24" to my MBP setup (the G5 is not Happy) The answer to your question is yes. Just go into Display Preferences and drag the menu bar over to the the 24 this will make the 24 the Primary Display and the MBP the secondary when connected.

  • JTree, displaying data from a database

    Hi, im doing an application that will display the listing of courses, and allow users to book them. For the display of courses, i plan to use JTree to display them.
    However my problem arises from fetchin data and putting them into the tree.
    This file connects to the database and fetch the 'Course Category' and puts it in an Array.
    public ArrayList<CourseCategory> getCategory() {
    ArrayList<CourseCategory> categoryArray = new ArrayList();
    try {
    String statement = "SELECT * FROM Category";
    rs = stmt.executeQuery(statement);
    while (rs.next()) {
    CourseCategory cc = new CourseCategory();
    cc.setCategoryID(rs.getInt("CategoryID"));
    cc.setCategoryName(rs.getString("CategoryName"));
    categoryArray.add(cc);
    rs.close();
    stmt.close();
    con.close();
    catch (Exception e) {
    //catch exception     }
    return categoryArray;
    CourseCategory File has the necessary accessor methods, and a toString method to display out the category name.
    The main file, which has the JTree
    public DisplayCoursesGUI() {
    try {
    courseDB = new CourseDB();
    courseDB.getCategory();
    catch (Exception e) {
    //catch exception }
    DefaultMutableTreeNode top = new DefaultMutableTreeNode("");
    for (int i=0;i<courseDB.test2().size();i++) {
    category = new DefaultMutableTreeNode(courseDB.getCategory());
    top.add(category);
    Codes for JTrees as follows.
    I have the output of
    e.g.
    [MICROSOFT OFFICE APPLICATIONS, WEB APPLICATIONS] repeated twice in the tree. Im hoping to achieve the following effects
    e.g.
    -MICROSOFT OFFICE APPLICATIONS
    ----Microsoft Word
    ----Microsoft Powerpoint
    -WEB APPLICATIONS
    -----Adobe Photoshop
    I have 2 MS Access Table.[Category]ID, CategoryName. [COURSE]ID,CourseName,CategoryID. They have a relationship.
    How do I modify my codes to get what i hope to achieve? Help really appreciated.
    Thank you!!

    Hi,
    If you read my first post, I wanted to achieve this effect.
    ----CategoryName1
    ----------SubCategoryItem1
    ----CategoryName2
    ----------SubCategoryItem2
    My Table Structure.
    CATEGORY TABLE
    ID (autonumber), Name(string)
    COURSES TABLE
    ID(autonumber),Name(string), CategoryID(int)(A Relationship is link to Category Table-ID)
    I have managed to retrieve the items from the Category Table into a result set, and I have added the result set into an Array (See 1st post)
    Now, the problem comes when im tryin to do a for loop to display out the categorynames from the array(see 1st post again).
    Now my array prints out as follows
    e.g.
    [CategoryName1,CategoryName2]
    And if i put a for look into my application to display a JTREE,
    My end results is
    ------[CategoryName1, CategoryName2]
    ------[CategoryName1, CategoryName2]
    How should I ammend my codes to get:
    -------CategoryName1
    -------CategoryName2

  • Options to control display performance of CLOBs, etc. in Query Result view?

    Whenever I attempt to query a table that contains LOBs (e.g. a CLOB or XMLTYPE), the lack of performance pretty much makes the "Query Result" view (from F9) unusable. Any time I attempt to scroll the results, SQL developer apparently continues to query the database for the additional characters to populate the view.
    Resizing the columns containing the LOB to only a few characters almost solves the issue. Unfortunately, the size of the columns showing the LOBs apparently attempt to resize to the length of the LOB, making the column several pages long - and the same performance issue prevents resizing it smaller.
    Ideally, there would be some way to resize a column to a given or even a predefined and small size, without having to drag the resize handle the entire width of the desired resize amount. Alternatively, there could be a user preference to never set default column widths above a given number of pixels or characters. Another option would be a user preference to disable the in-line display of LOB contents, displaying only and requiring a click on the "..." (or pencil icon) button to open the "View Value" dialog. Ideally, all 3 of these options could be implemented.
    One crude work-around I'm using for now is to exclude the LOB columns from the results, requiring me to make secondary queries to see the LOB contents when necessary, and doesn't allow for scrolling through and viewing the LOB contents at all. Another work-around is to run the query as a script (F5) instead of a query (F9), and view the results in the "Script Output" view instead.
    I'm currently using SQL Developer 2.1.0.63, but experienced this same issue with all previous versions, including 1.5.5.
    Thanks!

    I agree.
    When I requested to auto-width the columns, I said to build in a maximum, but apparently they didn't.
    I suggest you log 2 feature requests on the SQL Developer Exchange; 1 for the maximum width, 1 for the CLOB contents/performance. Like this others can vote too and add weight for future implementation (I will).
    Have fun,
    K.

Maybe you are looking for

  • List View Printing Problem

    Greetings, I'm using iCal 2.0.3 on OS X 10.4.3. I'm having two problems making a "List View" print look correct. Problem #1: I have a To Do item that was due several days ago. It shows up in the main iCal To Do pane with an attention icon next to it

  • HT1766 I am unable to verify my icloud account for my ipad and ipad mini

    Help - for both my ipad and my ipad mini - i have been unable to set up my icloud back up because the email id i currently have as my sign in - i no longer have access to.....so it is sending a verification email to an account I can't access.  I trie

  • Instant Client problem with php 5.1.4 install

    Hello, I'm trying to get my php 5.1.4 compiled using the oracle 10.2.0.1 instant client. I configure the php install with the following .. ./configure --with-apxs2=/usr/local/apache2/bin/apxs prefix=/usr/local/apache2/php with-ldap with-oci8=instantc

  • Retrieve resources ordered by a custom property value

    Hi guys, I'm newbie in SAP development and I have the following problem. I have developed a custom Java servlet which runs in SAP Portal NetWeaver '04; now, I need to retrieve a set of files in a specific RID but, they have to be ordered by a value o

  • Bar Chart Bar Width

    I am strugllig hard to have all my bars have a same width. Followig is what the code looks like: <?xml version="1.0"?> <!-- charts/UsingBarSets.mxml --> <s:Application     xmlns:fx="http://ns.adobe.com/mxml/2009"     xmlns:mx="library://ns.adobe.com/