Display style of JTree
Can we display JTree in top-down form rather than left-right (explorer) form?
Hi,
What web part do you use? Or is it a custom web part?
If there is no such OOTB feature can modify the style, a workaround is using custom CSS code to implement your own custom style for it. With custom CSS, we will be
able to achieve more complex styles.
https://www.nothingbutsharepoint.com/2013/05/02/understanding-sharepoint-csslink-and-how-to-add-your-custom-css-in-sharepoint-2010-aspx/
More demos about how to create table style with custom CSS:
http://css-tricks.com/almanac/properties/d/display/
http://www.creativedev.in/2013/01/table-layout-using-div-tags/
About how to add custom CSS to SharePoint:
http://fitandfinish.ironworks.com/2010/01/the-best-way-to-add-custom-css-to-sharepoint.html
Best regards
Patrick Liang
TechNet Community Support
Similar Messages
-
Silver Combo Box Display Style Bug
[LV2011, Windows XP]
There appears to be a small bug with the Silver-style Combo Box control when you right-click and select Visible Items->Display Style. For the string control a glyph appears properly, but for the combo box the glyph appears in the wrong place, and the colours are wrong. In fact, the glyph only appears properly if you click on it, or do something else to force a redraw of the control.
This combo box is a bit confusing, since it has no "Radix Shadow" part like the string control does, and in fact only the Silver-style combo box lets you display the "Display Type" glyph. The other styles of combo box have no "Display Type" feature in the "Visible Items" menu, but the "Display Style Visible" checkbox does appear on the "Appearance" tab of the Properties dialog box (though checking it has no effect, and it appears unchecked if you re-launch the dialog box".
I've attached a new version of the control which is close to fixing the bug, but the glyph region is 1 pixel skinnier than the string version. Copy this to your "..\vi.lib\silver_ctls\String" folder if you want it to replace the version in the palettes.
Jaegen
Solved!
Go to Solution.
Attachments:
Combo Box NI_Silver.ctl 6 KBJaegen:
Good catch, there is now a Corrective Action Request filed for this issue. It is correct that this property is
not supported by the Combo Box found in the Modern Palette. However, this should at least be documented in the
"Display Style Visible" property documentation if this is case, which it is not.
Thanks for alerting us to this error and if you would like to follow the CAR, look for CAR# 312717 listed in
bug fix reports for later releases of LabVIEW.
Please let me know if you have any questions or need any more help with this issue.
Tori W.
National Instruments -
CSS Styles not displayed properly in design view - SOLVED (not 'Display Styles')
For several weeks, I've been troubleshooting the issue of CSS
and inline styles not being displayed properly when in Dreamweaver
CS3 design view, and checking in to the forums occassionally to see
if there was a solution other than making sure "Display Styles" was
selected under View -> Style Rendering (it was, and still
nothing would display properly!).
After much frustration, I may have found the solution to
those still experiencing the issue even after "Display Styles" is
appropriately checked. I went in to my master template for the
site, and found an erroneous <br> tag after the <link
href> for the stylesheet, which I must have inadvertantly
inserted when I added the code for the site's favicon. (You get so
used to Shift-Enter in layout mode, it's almost automatic,
regardless of what pane your in.) I can't believe I missed this
before! Deleting the erroneous tag cleaned up the whole
site.I had the same thing happen to me. After hours of trouble
shooting I found a bit of inappropriate code left in the HTML.
Cleaned that up and all is good. Seems like it is often something
so simple. Guess that is why it is so maddening when i can't figure
it out! -
PrE9-Video Track Display Styles on Timeline
Could someone please explain why in PrE9 on Timeline there are four Track Display Styles. What is the practical reason for this?
As Ted states, each has a plus, but most come with a minus, i.e. display re-draw of the thumbnails.
I'll normally set that display to First Frame, or to None, once I get into the real editing of the Project.
All is good to start, when one has longer Clips, with "scenes" in it. As the thumbnail display is just an emulation, one still probably needs to use the Program Monitor, and the Frame tick marks on the Time Ruler, to get to the exact Frame, where they would want to Cut. I will use the All thumbnails as a rough locator, and then the arrow cursor keys to jog to the exact Frame for my Cuts.
If an editor uses the Source Monitor to Trim their Clips with IN & OUT Points, and then just drag instances of that Clip to the Timeline, they probably will not rely on thumbnails at all, and the None, with just the Clip Name will be good enough.
As with many operations, PrE offers several ways to do things, depending on how the user likes to work, or to provide the workflow that suits them best.
Good luck,
Hunt -
Dreamweaver CS3 freezes when "Display Styles" is on
Hi guys, I hope you can help me here. Recently I changed computers and am now experiencing this problem with all the webpages I work with. When I open a page, everything seems fine until I click in either the code view or design view, then it freezes with no error message. I then have to close the program through the task manager.
If I go to View > Style Rendering, then turn off Display Styles, then everything works great, but it just doesn't looke right. When I turn it back on it freezes again.
I think that this has something to do with the CSS files, but I don't know much about this. If it helps to see the pages, they are at www.iscatech.com.
Thank you in advance.Brett,
Hi guys, I hope you can help me here. Recently I changed computers and am now experiencing this problem with all the webpages I work with. When I open a page, everything seems fine until I click in either the code view or design view, then it freezes with no error message. I then have to close the program through the task manager.
If I go to View > Style Rendering, then turn off Display Styles, then everything works great, but it just doesn't looke right. When I turn it back on it freezes again.
I think that this has something to do with the CSS files, but I don't know much about this. If it helps to see the pages, they are at www.iscatech.com.
I looked at your web page. First of all there is some duplicated markup in the <head>. That's probably not your problem, but your page will load faster and more predictably if you clean that up.
I opened StyleSheet.css. It has a set of styles that are duplicated 39 (not a typo: thirty nine) times! Have you waited to see if DW eventually loads your page? It could just be taking it a long time to process that 147KB file. Try removing the duplicate styles.
I don't have CS3 anymore, but I can open it in CS4.
With that said, it's still possible that you may have a style (or combination of styles) that is causing CS3 to hang. Try using the binary process of elimination to isolate the CSS rules. In other words:
1. Comment out half of your existing styles
2. Restart DW
3. If it hangs, go to step #1
4. If it does not hang, continue
5. Un-comment half of the styles you commented out in the previous iteration
6. Go to Step #2
Repeat until you have it isolated to the minimum number of rules.
HTH,
Randy -
Dreamweaver cc unusably slow with CSS or Display Styles
Dreamweaver cc 2014.1.1 6982 build is so slow I can no longer use it. Running 10.10.2 on a 2.7 GHz Intel Core i5 iMac with 16gb and Dreamweaver has so much delay between when you click or type and something happening. I have found that if you don't use any css it is fine and if you turn off Display Styles it also speeds it up. However not having these make using dreamweaver pretty pointless.
Now going to have to go back to CS6 or use a different program completely.A lot of people are using CC successfully. Everyone's system is different. Slowness can be caused by various things including but not limited to:
network drives,
backup software,
anti-virus software,
GA Tracking code,
null protocol links // to scripts on 3rd party servers like Typekit.
Google Ads,
CSS @import,
code validation errors
If none of the above are relevant, try Deleting Corrupted Cache in DW
http://forums.adobe.com/thread/494811
If that doesn't help, try Restore Preferences
http://helpx.adobe.com/dreamweaver/kb/restore-preferences-dreamweaver-cs4-cs5.html
If all else fails, use the CC Cleaner Tools below followed by a software re-install.
http://helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems.html
Also ensure that you have Java SE 6 runtime. Yosemite ships with 8 but that won't help you with DW.
Java SE 6 Direct download:
http://support.apple.com/kb/DL1572
Nancy O. -
Hi, I would like to ask you how can I display my Tree? in JTree?
I create tree:
Folder fol = new Folder(folderName, numFiles);
DefaultMutableTreeNode treeNode = new DefaultMutableTreeNode(fol);
....But now I does not know how to display tree with folder names. When I use tree.setModel(...); it display object, but not folder names...
And how can I use red font color for folder names with 0 files(numFiles = 0)?Hi, I would like to ask you how can I display my
Tree? in JTree?
I create tree:
Folder fol = new Folder(folderName, numFiles);
DefaultMutableTreeNode treeNode = new
DefaultMutableTreeNode(fol);
....But now I does not know how to display tree with
folder names. When I use tree.setModel(...); it
display object, but not folder names...you need to walk through your tree and create a new DefaultMutableTreeNode for each of your nodes and add to its parent node of your JTree (remember there is a distinction between view and control). the user object of your DefaultMutable TreeNodes is the file/folder, which should be in its own class (see below) and overwrite toString() to return the name. then the JTree will show what you want.
>
And how can I use red font color for folder names
with 0 files(numFiles = 0)?you need a tree cell renderer. it gets your file/folder object (see above) as a parameter. you can query it about the number of files and set the foreground/background accordingly.
thomas -
Tomahawk JSF pagination display style
I am new to JSF.
I am using tomahawk data scroller. My requirement is to display pagination like below
<previous> page x of y <next> .
If I am entering any thing inside <facet name ="previous" those are not displayed as I wish. Please let me know How to do this.Ah OK, I now see and understand your problem.
Sorry, I can't give a detailed answer on this as I've never used the t:dataScroller before. How does the generated HTML output look like? You could play a bit with CSS to align out the positioning. Does it maybe help if you add the <h:outputText value="#{PageIndex} of #{PageCount}"/> to the first facet?
E.g.
<f:facet name="previous">
<h:panelGroup>
<h:outputText value="Previous Page"/>
<h:outputText value="#{PageIndex} of #{PageCount}"/>
</h:panelGroup>
</f:facet>
<f:facet name="next"><h:outputText value="Next Page"/></f:facet> -
Why can't I choose "fan" as display style for Smart Folder added to Dock?
I added a Smart Folder to my Dock, which is cool.
But, control-clicking it doesn't give the typical dock folder options such as "fan, grid, list, automatic"...
Can I make it display the Smart Folder as "fan"?
Thanks.Guess I found my answer:
https://discussions.apple.com/message/5653553
Not possible. -
[CS2/CS3] - TreeView - display style
Hi, I'm trying to use TreeViewWidget to use it for isnerting rows witch CheckBoxWidget + StaticTextWidget and the problem is that the default look of TreeView is with points and numbers like you can see from screenshot bellow. Please could you help me how to change this default behaviour?
Thanks, marxinThank you for your post, it was helpfull advice, now I am able to insert into TreeView CheckBoxes.I redefined TreeViewWidgetMgr and also TreeViewHierarchyAdapter, but now I'm not familiar with adding and removing nodes, there is 10 nodes if I start Plug-In ?
Is possible to add frame to TreeView ? My last question is about observer, how to realize which checkboxes are selected, how to save this information ?
Thank you very much, marxin -
I use a JTree that requires periodic changes to its nodes. I cannot get the display of the JTree to update however. I have tried many different things such as JTree.updateUI(), DefaultTreeModel.reload(), DefaultTreeModel.nodesChanged().
Currently my code looks like this:
// initialization
createTreeNodes();
treeModel = new DefaultTreeModel(rootNode); treeModel.addTreeModelListener(this);
tree = new JTree(treeModel);
// code invoked whenever changes to JTree must be made
createTreeNodes();
treeModel.reload();
tree.repaint();
// this is the function "createTreeNodes"
private void createTreeNodes()
rootNode = new DefaultMutableTreeNode("File Name");
DefaultMutableTreeNode headerNode = new DefaultMutableTreeNode("Header 1");
for(int i=0; i<cardArray.size(); i++)
DefaultMutableTreeNode cardNode = new DefaultMutableTreeNode(cardArray.get(i).getFront() + " (" + (i+1) + ")");
// above line simply creates a node with a string
System.out.println(cardArray.get(i).getFront() + " (" + (i+1) + ")");
// the above line recreates the code 2 lines above for debugging purposes
headerNode.add(cardNode);
// above code adds child to parent
rootNode.add(headerNode);
// above code adds parent to root node
}The tree is updated in createTreeNodes().
If a file is opened by a user, cardArray changes and I reflect these changes by updating the JTree. The System.out.println() statement in the createTreeNodes() function prints the expected data to the console, which proves that the data is being updated. The display of the JTree does not update however.
And for further explanation about my code:
- the part that I commented "Initialization" is located in the program constructor. At this point cardArray is equal to 0, and the program simply displays one leaf node with a value of 'null'
- If the user opens a new file, cardArray (an ArrayList) is updated. I call the createTreeNodes() function which updates the JTree data. I also call treeModel.reload() to signal to the DefaultTreeModel that its data has been updated
- the function 'createTreeNodes()' simply adds DefaultMutableTreeNodes to the JTree hierarchy
My thanks in advance for any help you may be able to provide.Hi,
I have taken a look at your code, and I can't see that you are updating the tree. Your createTreeNodes method does only create a new root node, and stores the reference in the attribute rootNode. That does neither affect the root or the model created in the initialization block.
/Kaj -
Can't display Chinese Characters in JTree
The default encoding has beed set to GB2312 by system. (I use eWin98&Richwin system)
I can display Chinese in JEditorPane, can output Chinese using System.out.println, can read Chinese from files. BUT, I can not display Chinese in JTree, they all appear as squares.
Is there any one can help me to solve this urgent problem? Thank you very much.You probably did that, but just in case you didn't i'd use
.setFont(...); -
Display Data on waveform chart or XY graph over a long period of time
Display Data on waveform chart or XY graph over a long period of time
Can anyone help?
I am acquiring data from an Ni DAQ card with the following parameters - sample rate = 12800, number of samples = 4096. I want to extract order information so as to track changes in the amplitudes of certain frequency harmonics. So I use the sound and vibration toolkit to extract this information as shown in the attached Vi. I will like to plot the resulting amplitudes against real-time starting at the time the Vi was run. I really want the display to show these changes over long periods (eg. days, months and even years).
Problem.
I have tried to plot the Y component of the resulting magnitude for a given order on a waveform chart. My choice of the waveform chart is because I also want to display alarm limits (using the mask and limit vi) (I can't have these lines displayed on an XY graph plot). I tried adjusting the scale offset using the property node and setting the offset to current time. However, the display on the X-axis can only show a span of 2 minutes as will be seen when you run the attached vi. I want the time display on the x-axis to be over a period of days, months and even years. Is there a way to set the maximum scale on the x-axis to be say a year or so in future.
I really want the display to be like the one in in the second attachment.
Attached is a sample VI created using an Ni USB 9234 DAQ card. Any card will do but I am only getting the signal from one channel for this example
I will appreciate any help that can be given to me.
Thanks
Attachments:
Real-Time Graph Display.vi 170 KB
Sampe screen1.doc 37 KBLong term testing can be tricky- and we'l get into that later. Lets start with the basics that you have wrong.
The vi as you have constructed it has only one memory element, the chart history length (default is 1024.)
You can change the number of points the Chart will remember by Right-clicking the chart an select Chart History Length from the menu.
But for a long term test - and one where you want to REMEMBER the first value you need a memeory element that is independant of the application. Your PC WILL loose power or need to be rebooted eventually. Heck it might even need to be replaced! you really need to store your data in a file. Preferablly in a file that is backed-up on a regular basis so you don't lose every point of data if the PC dies. It realy hurts when you have to restart a 2yr test because you've lost the 18months of data you collected.
For an application like this I would seperate my "collection" and "Evaluation" operations.
Have one vi that takes the reading and writes it to a file at a configurable rate You may want 1reading per minute for seveal days then 1 per hour for a few weeks- then maybe only once or twice a week for the next couple of years since you are looking for LONG TERM stability. having too much data to evaluate can take a lot of digging to find the few things that interest you (but always take more that you think you need)
Have another utility that COPIES the files, reads them and displays the data you are interested in that day. The data you want to look at won't change over time HOWEVER, you WILL want to analize it in different ways depending on what the data trends look like. Having seperate routines for collection and display allows you to update the display style and analisys without even stopping the collection vi (much less editing the vi)
Jeff -
Images and styles not showing in Design view on CS3
Hi all,
I am playing around with a CSS website template that I downloaded and
opened in DW-CS3. I am just using this to learn and play around with. It
came with the style sheet, jpg images etc.
I just noticed that when in Design view for the index page, that the images
and styles, menus are not displaying, only the html text is visible in Design view.
When I preview the site with a browser like IE or FF, it displays fine along with
any changes I have made.
Does anyone have any ideas?
Regards,
danoIn DW, View > Style Rendering > Display Styles on?
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/
http://twitter.com/altweb -
Problem with Jtree to xml tranform..how to set/get parent of a node?
Hi,
I am trying to develop xml import/export module.In import wizard, I am parsing the xml file and the display it in Jtree view using xml tree model which implements TreeModel and xml tree node.I am using jaxp api..
It is workin fine.
I got stuck with removal of selected node and save it as a new xml.
I am not able to get parent node of selected node in remove process,itz throwing null.I think i missed to define parent when i load treemodel.Plz help me out..give some ideas to do it..
thanks
-bala
Edited by: r_bala on May 9, 2008 4:44 AMthere's no way anyone can help you without seeing your code.
Maybe you are looking for
-
OWB Error while deploying the mapping Io exception: The Network Adapter co
Hi, We are using OWB 10.2 in our production environment.Actually we are using OWB only for development. After deploying each mapping we will create scheduler job for execution of these mappings. Recently our staging DBs port has been changed to 1522
-
Is there any software of korean language pack for ...
Is there any software or upgrade for my 6120c to support korean language that I can download? Because I have a lot of korean song which are written in korean (hangul) and it only appears as some squares, so it s a rather difficult to recognize each s
-
Naming exception from the pcd... occurred in PI 7.1
In PI 7.1 Iu2019ve got a process which gets invoked as SOAP service and synchronously calls a second SOAP service. The service returns the correct result and works, when called from the Web Services Navigator. When I call the Service on PI the Web Se
-
How do I reinstall photoshop elements on a new computer
Please help how do I reinstall photoshop elements on a new computer
-
Com.borland.jbcl.layout package
When I am executing my code I am getting this error. "package com.borland.jbcl.layout does not exist" So from where can I download this package and where to load this pacage. Can anyone help me fast.