Transformer floattant vers int en virgule fixe
Bonjour,
Je code actuellement sous CVI, et j'ai besoin de transformer des nombre pouvant être négatif et à virgule en virgule fixe. Bien entendu le nombre de bits avant et après la virgule doivent pouvoir être paramétrable.
Je ne vois pas de solution simples pour se genre de problème, auriez vous quelques idées ?
Merci par avance !
Yanyves
please post in English
Similar Messages
-
Safari Ver 5.1.10 Fix For The "Old Style" Google Problem...
@ The mods/ Admins
I'm not sure if this is the correct place to post this but I cannot seem to find the thread where people were discussing the recent problem Google introduced by forcing some versions of Safari to revert back to their old style Google layout and format...
I was told by a moderator (Zack T.) that I could post my "Fix/ Solution" to this problem here on the site but I can't find the original thread for this. So I am posting the "Fix" here as I'm still getting inundated with emails from people here and from Googles "help" forums asking me for this solution...
Could you please if possible leave this thread available for those people running Safari Ver 5.1.10 so that they can try for themselves this "Fix" without having to contact me personally over it, or can you (if needed) move this post to the appropriate thread...
Thank you...
The following is a "Fix/ Solution" that I have created that solves the problem for users of Safari Ver 5.1.10 that Google introduced recently where they now block older version of Safari from using the "Modern Style" layout and features of Google which they had been used to...
You can still use the "Modern Style" Google with Safari 5.1.10 via the "Develop/ User Agent/ Other" menu to switch to a "User Agent" that allows you to use the "Modern Google" however, there is no way to make this as the permanent "Default User Agent" in Safari 5.1.10 and it has to be done for each new tab you open and every time you startup Safari... which is not exactly good or helpful...
That's where this "Fix" solves that for you. This fix will make sure Safari 5.1.10 starts up and uses a custom "User Agent" that allows you to continue to use the "Modern Style" Google and not have to constantly change the "User Agent" via the "Develop" menu...
It also has the benefit over other methods that are about of using FireFox "User Agents" in that this fix creates a Mac specific "User agent" that means you get the correct pages from whatever it is you are accessing on the internet (The FireFox one causes some changes to graphics and page layout when used on a Mac)...
As long as you are certain you are using Safari Version 5.1.10 on a Mac running OSX 10.6.8 (Snow Leopard) and they are all fully updated as far as they can be then this fix should work for you (it already has for several thousand other Safari 5.1. 10 users whom have tried it)...
INSTRUCTIONS.... Safari Version 5.1.10 Fix To Restore The "Modern Style" Google...
IMPORTANT !!! --- MAKE SURE SAFARI ISN"T RUNNING ---
Download the following DMG which contains the "Fix" for Safari Ver 5.1.10...
http://www.mediafire.com/download/7wsl4n5siu7cphw/Safari_Ver_5.1.10_Google_Fix.d mg
When you open the DMG file you will see a window that looks like this...
IMPORTANT --- MAKE SURE SAFARI ISN"T RUNNING ---
STEP 1: Double click on the folder called "A" to open it...
STEP 2: From the new window that opens from folder "A" find the file called "Safari" and drag
it to your Desktop screen to make a copy of it (this is both for safekeeping and in case the "fix"
doesn't work for you so that you can still restore the original file)...
STEP 3: Drag the file from the downloaded DMG window called "Safari" onto the folder in the
same window called "A"...
Now start Safari as you would normally and if the fix has worked you should once again be seeing the
"Modern" look Google once again. You should copy/ move the original "Safari" file you copied to your
Desktop screen to a safe place for storage (Downloads or Documents for example) in case you ever
need or want to restore the original file to Safari at some pint in the future...
IMPORTANT:- If you're still seeing the old version of Google in Safari after trying this fix then
unfortunately it hasn't worked for you and you MUST replace/ put back the
original "Safari" file you copied to your Desktop screen...
This is simple to do and is achieved by simply dragging the original "Safari"
file you copied to your Desktop screen onto the "A" folder in the "Safari Fix"
window...
Happy Googling - MadFranko008 (2014)I followed instructions from Carolyn Smith in another thread (see below) - but Safari did not start anyway. After that I discovered that Safari started when starting from /Program/-folder but not from Docks on the desktop.
So - throw away the old icon on the desktop and make a new one.
/Vesno
Carolyn Samit San Francisco Bay Area
Re: Safari quit unexpectedly after my last update, What do I do?
Mar 13, 2012 7:15 PM (in response to Mac Engineer)
Hi...
Quit Safari.
Go to ~/Library/Safari
Move these files from the Safari folder to the Trash.
History.plist
LastSession.plist
TopSites.plist
WebpageIcons.db
Now go to ~/Library/Caches/com.apple.Safari/Cache.db
Move the Cache.db file to and the Webpage Previews folder to the Trash.
Relaunch Safari.
~ (Tilde) character represents the Home folder.
edited by: cs
Re: Safari quit unexpectedly after my last update, What do I do? -
ANY news on ver. 1.1 fix?
Does anyone have an idea when a fix for 1.1 is coming out? Should I just revert to 1.0? Are there instructions (blessed by Apple) on how to do it? I just am amazed that Apple hasen't issued a fix yet, it not like these 60gig iPods cost $50.00.......I would like to use it to it's fullest.....
JimOnly Apple would know when or if a new updater is to be released, and they never announce such updates in advance.
The rest of us simply don't know. -
Which ver of J2SE AE fixes both namespace length and XMB2FILEWITHCONVERSION
We have implemented the SP09 J2SE adapter engine (SAPXICONS09_0-20001977.SCA) on most of our endpoints, after having recently upgraded from SP06 J2SE (SAPXICONS06_2-20001977.SCA).
SP06 J2SE (SAPXICONS06_2-20001977.SCA) throws an error when ever the namespace is greater than 60 characters, to solve this issue we decided to upgrade the version to SP09.
Everything seemed to be working fine, until we noticed NullPointerException error whenever we used the XMB2FILEWITHCONVERSION mode. Eg: J2SE file adapter
Surprisingly SP06 J2SE AE doesn't have this issue. Unfortunately for us, we have several interfaces which have both long namespace and the XML to Plain conversion issues.
I'm looking for any options worth exploring as we await SAP's response. We are running on PI 7.1 SP 06 currentlyI have figured out how to solve part of the problem. It was completely Xorg related, as you can see from the Xorg.0.log. I removed nouveau and installed Nvidia proprietary driver, in this way X doesn't timeout anymore but now I still have a problem with the time it takes X to start up. As you can see from these lines:
[ 20.141] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 20.141] (II) Loader magic: 0x818d80
[ 20.141] (II) Module ABI versions:
[ 20.141] X.Org ANSI C Emulation: 0.4
[ 20.141] X.Org Video Driver: 18.0
[ 20.141] X.Org XInput driver : 21.0
[ 20.141] X.Org Server Extension : 8.0
[ 44.585] (EE) systemd-logind: failed to get session: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
[ 44.585] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 44.586] (--) PCI:*(0:0:2:0) 8086:0416:1043:11cd rev 6, Mem @ 0xf7400000/4194304, 0xd0000000/268435456, I/O @ 0x0000f000/64
[ 44.586] (--) PCI: (0:1:0:0) 10de:0fe4:1043:11cd rev 161, Mem @ 0xf6000000/16777216, 0xe0000000/268435456, 0xf0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/524288
[ 44.586] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[ 44.586] (II) LoadModule: "glx"
There is quite a jump in the timestamps just where an error related with logind occurs. Is it normal or I have a problem? BTW, Xorg doesn't timeout anymore it seems.
Is there anyone who can help me? Maybe I have simply posted in the wrong section of the forum?
Last edited by Aliverix (2014-11-06 22:47:24) -
Int dereferencing error when transforming 2d array
Int WorkArray = new Int[9];
WorkArray.set( new int[] { 6, 3, 0, 7, 4, 1, 8, 5, 2 } );
for( Tloop = 0; Tloop <= 8; Tloop++ )
TransForms[0][Tloop].set( WorkArray.getValueAt( Tloop ) );
}I get the "Int Cannot be Dereferenced" error on the line beginning with TransForms.
The definition of the array TransForms is private int[][] TransForms = new int[9][9];That was a mistake yes, ive refined the code more but it still gives me this damn "Int cannot be dereferenced" error.
int[] WorkArray = new int[9];
int[] rotate90 = {6,3,0,7,4,1,8,5,2};
WorkArray = rotate90;
for( Tloop = 0; Tloop <= 8; Tloop++ )
TransForms[0][Tloop].setInt( WorkArray [Tloop] );
}basically the 0-8 array represents a 3*3 grid and this code is to create a transformation that represents that grid rotated right by 90 degrees. I have 8 more of these bits of code to do other transformations. Obviously none of them work as yet. But if I get this one fixed then i can apply this fix to the others. -
Probable fix for low DDR bandwidth
Sisoft results
SPD 2.5-3-3-8 4,325MB manual SPD setting
SPD 2-2-3-5 4,267MB manual SPD setting
SPD 2.5-4-4-8 4,645MB High performance SPD auto CPUID reports actual SPD 2.5-3-3-8 on my NEO2-S BIOS 1.2 twinmos pc3200
It seems that any manual settings on SPD causes the DDR bandwidth to decrease. There are some bugs in BIOS with these boards, as u can see SPD auto is 2.5-4-4-8 but CPUID says it's 2.5-3-3-8!!! Try setting high performance and leave SPD as auto to fix the problem.
MSI certainly knows about this problem, as BIOS 1.33beta trys to fix this SPD setting issue. Maybe that's why there's no PAT and D.O.T for most boards as this is a bigger concern!
Before the fix, OCing was dismal @208FSB limit. Now OCing @215FSB and going higher after fix. sisoft 4,864MB!!
Hopefully MSI will resolve this issue and give us what we paid for.
All MSI'er pls report in this thread whether this fix helps.
Any other fixes that help increase performance are also welcome.
Note: I never posted before, always receving and never giving. Becos of the wonderful contributions by others that resolved my many issues and thus making my computing experience a better one. Here's my thanks to all who spent their time and effort to help others. Also thanks to ad hoc and his thread on Interesting results with SPD settings and my NEO2 FIS2R for the fix.Hmmm....it seems that nobody is trying out this method or willing to share. Sad.
Anyway, just got back from work i flashed with BIOS 1.33beta. Set high performance, SPD auto. It showed 2.5-4-4-8, hey this BIOS ver was suppose to fix the SPD timming!!! Heck it, booted up to windows to check the actual SPD timming using CPU-Z. WOW,
with ver 1.2 it showed 2.5.3-3-8, with ver 1.33beta it was an amazing 2.5-2-3-5. Immediately started sisoft and this was the results
Int buffered - 4,986!!!
Float buffered - 4,991!!!
That's an increase of 700mb!!! All this after the fix!!! Can't wait for the final fix!!!
MSI is finally getting it right. Now for PAT and D.O.T
P4 2.6C
MSI 865PE NEO2-S
Twinmos PC3200 x2
Sapphire 9500PRO
WinXP PRO sp1 -
Trying to Update itunes to ver 11.05 in windows 7
Having trouble updating to itunes ver 11.05. Fixed rule in firewall. But still getting message stating - not connecting with itune server. Can anyone help?
I use itune with my iphone and new ipad. But have itunes located on my desktop computer which has windows 7 loaded.Hi AWintheweeds,
Thanks for visiting Apple Support Communities.
You may find the steps in these articles helpful:
iTunes for Windows: iTunes Store connection troubleshooting
http://support.apple.com/kb/HT1527
Can't connect to the iTunes Store
http://support.apple.com/kb/ts1368
If the difficulty with updating iTunes persists, try reinstalling the software using the steps in this article:
Trouble installing iTunes or QuickTime for Windows
http://support.apple.com/kb/HT1926
All the best,
Jeremy -
Null Pointer Exception with Oracle Transformer
Hi all,
I'm getting a NullPointerException after building a DOM tree and feeding it to a stream via the Oracle JAXP transformer. I am trying to convert the data in DOMSource to PDF file. The following code:
TransformerFactory transFact = TransformerFactory.newInstance();
Transformer transForm = transFact.newTransformer();
ByteArrayOutputStream pdfOutStream = new ByteArrayOutputStream();
DOMSource pdfInput = new DOMSource(doc);
StreamResult pdfOutput = new StreamResult(pdfOutStream);
transForm.transform(pdfInput,pdfOutput);
int pdfByteSize = pdfOutStream.size();
System.out.println("Size of pdfByteSize : "+ pdfByteSize);
pdfByte = new byte[pdfByteSize];
pdfByte = pdfOutStream.toByteArray();
InputStream formInputStream = new ByteArrayInputStream(pdfByte);
Iam getting error at "transForm.transform(pdfInput,pdfOutput);".
Here the StackTrace :
07/05/24 10:59:40 XML-22900: (Fatal Error) An internal error condition occurred.
javax.xml.transform.TransformerException: XML-22900: (Fatal Error) An internal error condition occurred.
at oracle.xml.jaxp.JXTransformer.reportException(JXTransformer.java:775)
at oracle.xml.jaxp.JXTransformer.transform(JXTransformer.java:374)
Caused by: java.lang.NullPointerException
at oracle.xml.parser.v2.XMLText.reportSAXEvents(XMLText.java:402)
at oracle.xml.parser.v2.XMLElement.reportChildSAXEvents(XMLElement.java:3072)
at oracle.xml.parser.v2.XMLElement.reportSAXEvents(XMLElement.java:3061)
at oracle.xml.parser.v2.XMLElement.reportChildSAXEvents(XMLElement.java:3072)
at oracle.xml.parser.v2.XMLElement.reportSAXEvents(XMLElement.java:3061)
at oracle.xml.parser.v2.XMLElement.reportChildSAXEvents(XMLElement.java:3072)
at oracle.xml.parser.v2.XMLElement.reportSAXEvents(XMLElement.java:2165)
at oracle.xml.jaxp.JXTransformer.transform(JXTransformer.java:337)
Environment we are using is Sun JDK 1.4.2_06 on Windows, running JDeveloper 10 g with OC4j as Application Server.
Can any one please explain me in this regard?
Thanks
ManojThanks for the Reply.
Before Null Pointer Exception I am getting another Fatal error:
javax.xml.transform.TransformerException: XML-22900: (Fatal Error) An internal error condition occurred.
at oracle.xml.jaxp.JXTransformer.reportException(JXTransformer.java:775)
at oracle.xml.jaxp.JXTransformer.transform(JXTransformer.java:374)
Please Help -
How to apply an XSLT transformation in OSB
Hello all ,
I tried to made a simple example - that apply a simple XSLT transformation in OSB .
I followed the http://blog.jayway.com/2010/05/07/xslt-transformations-in-oracle-service-bus/ example but still is not working in my project .
If I apply the imported xslt over the xml in testing window is working fine .
But the action to replace the content of the xml with the new one is not working.
Here is the xslt
<xsl:template match="/">
<ns0:donateToFund>
<arg0>
<xsl:value-of select="/Report/CustomerName"/>
</arg0>
<arg1>
<xsl:value-of select="/Report/CustomerNumber"/>
</arg1>
<arg2>
<xsl:value-of select="/Report/ReportName"/>
</arg2>
</ns0:donateToFund>
</xsl:template>
and here is a xml sample
- <Report>
<ReportName>Customer Report</ReportName>
<CustomerName>XXX</CustomerName>
<CustomerNumber>3423</CustomerNumber>
<GeneratedDate>2010-11-25 08:15:24.695</GeneratedDate>
- <Rowset>
- <Row>
<Quantity>100154</Quantity>
<CustomerPartNo>ee</CustomerPartNo>
<eSiliconPartNo>ee</eSiliconPartNo>
<Sector>ee</Sector>
<Location>eee</Location>
</Row>
- <Row>
In my action I put /Report as XPath ; body as variable and XSL fro transformation .
Can anyone help to fix this ?
Many thanks in advance,
StefanFollowing works for me:
XSLT
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" omit-xml-declaration="yes"/>
<xsl:template match="/" xmlns:ns0="http://tempuri.org">
<ns0:donateToFund>
<arg0>
<xsl:value-of select="/Report/CustomerName"/>
</arg0>
<arg1>
<xsl:value-of select="/Report/CustomerNumber"/>
</arg1>
<arg2>
<xsl:value-of select="/Report/ReportName"/>
</arg2>
</ns0:donateToFund>
</xsl:template>
</xsl:stylesheet>Input to Proxy
<Report>
<ReportName>Customer Report</ReportName>
<CustomerName>XXX</CustomerName>
<CustomerNumber>3423</CustomerNumber>
<GeneratedDate>2010-11-25 08:15:24.695</GeneratedDate>
<Rowset>
<Row>
<Quantity>100154</Quantity>
<CustomerPartNo>ee</CustomerPartNo>
<eSiliconPartNo>ee</eSiliconPartNo>
<Sector>ee</Sector>
<Location>eee</Location>
</Row>
<Row>
<Quantity>100154</Quantity>
<CustomerPartNo>aa</CustomerPartNo>
<eSiliconPartNo>aa</eSiliconPartNo>
<Sector>aa</Sector>
<Location>aaa</Location>
</Row>
</Rowset>
</Report>Output of Proxy:
<ns0:donateToFund xmlns:ns0="http://tempuri.org">
<arg0>XXX</arg0>
<arg1>3423</arg1>
<arg2>Customer Report</arg2>
</ns0:donateToFund>I am using a single Replace action in the request pipeline.
It works for both configs below:
Replace [ entire node ] of [ ./* ] in [ body ] with [Xslt Resource: default/OTN/temp
Input Document: $body/Report
Variable Names And Bindings ]
Or
Replace [ Node Contents ] of [ . ] in [ body ] with [Xslt Resource: default/OTN/temp
Input Document: $body/Report
Variable Names And Bindings ]
You need to ensure that if you are doing replace entire node of . in body or / in body then you should replace it with an XML whose root node is soap:Body. To achieve that you will need to change the XSL and add soap:Body as root of the output. Easier solution is to use replace contents of . body or replace entire node of ./* in body. -
Financial statement version INT does not exist
Hello Friends,
I hope someone can help me figure this out and I've read discussions similar, just not exactly what I'm looking for. When I run the following reports:
S_ALR_87012271
S_ALR_87012272
S_ALR_87012273
I receive the following error message:
Financial statement version INT does not exist
When I first received this message, I went to T-Code OB58 and entered the "INT" Financial Statement Version here. I've also created a chart of accounts with INT values as well. Can someone help me out on how to eliminate this error and set up cash flow? If you have done this already, please do reply. If not, then please allow those with more experience to help.
Thanks so much!
JohnJohn,
You can define FSVs for a specific chart of accounts, for a group chart of accounts, or without any specific assignment.
In your case, double-check whether you are running the report for the same CoA assignment that you have defined your FSV for in the first place.
As somebody's mentioned earlier, these reports are made using Report Painter (GRR1 / 2 / 3, etc.). Seems FSV = INT has been fixed in these reports for your system. You'll have to edit these reports (using GRR2) and the correct FSV.
Regards
Gulshan -
What else does "netsh int ip reset" do?
According to
this article when you run the "netsh int ip reset" command, all it does is to reset the content of two registry keys:
SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\
SYSTEM\CurrentControlSet\Services\DHCP\Parameters\
but on my test system it appears to do more.
On a Windows Server 2012 R2 x64 machine, after my application does something wrong, if I try to set up a static IP to a network interface I get instant BSOD.To fix the issue I have to run "netsh int ip reset" and then I can set a static IP.
Now, I'm trying to figure it out how does "netsh int ip reset" fix the problem.I know is not the content of those 2 registry keys because I did the following
on my virtual machine:
Make a VM backup when the system is troubled.
Launch the VM and run the "netsh int ip reset" command
Export the two registry keys
Roll back to the backup made before the "netsh int ip reset" command
Import the saved registries keys
Set up a static IP on an network interface, but I still get a BSOD
When my application tries to configure a network interface with an IP address that was already used by another network interface in the past, first it has to remove that IP configuration for the non-present device and then it can use that IP.
To do that I search in every registry in SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces and see if any of the interfaces did use the IP addres I want to use by comparing the value in "IPAddress" property with the one I want to use.
If I find a match, I first check if that interface is live, and if it's not, I delete the value in "IPAddress" property and set property "EnableDHCP" to 1, then I use that IP on my interface.
This is what my application did wrong. When this interface comes back live again, it will get an IP configuration through DHCP, but it will BSOD if you try to set a static IP on it.
The correct way to do it is to set "IPAddress" property to "0.0.0.0" and "EnableDHCP" to 1. If you leave "IPAddress" empty and set "EnableDHCP" to 1, something goes wrong in TCPIP configuration, that "netsh
int ip reset" will fix .. but what exactly it fixes, I have no idea. All I know it's that it's not in the two registries keys that the
KB article mentions.
So what else does "netsh int ip reset" do, except resetting the content of those two registries, that fixes the problem on my test system?Hi,
The analysis result is :
* Bugcheck Analysis *
IRQL_NOT_LESS_OR_EQUAL (a)
An attempt was made to access a pageable (or completely invalid) address at an
interrupt request level (IRQL) that is too high. This is usually
caused by drivers using improper addresses.
If a kernel debugger is available get the stack backtrace.
Arguments:
Arg1: 00000000000000a8, memory referenced
Arg2: 0000000000000006, IRQL
Arg3: 0000000000000001, bitfield :
bit 0 : value 0 = read operation, 1 = write operation
bit 3 : value 0 = not an execute operation, 1 = execute operation (only on chips which support this level of status)
Arg4: fffff8000298636f, address which referenced memory
Debugging Details:
WRITE_ADDRESS: GetPointerFromAddress: unable to read from fffff80002b090e8
GetUlongFromAddress: unable to read from fffff80002b09198
00000000000000a8 Nonpaged pool
CURRENT_IRQL: 6
FAULTING_IP:
nt!PsChargeProcessCpuCycles+10f
fffff800`0298636f 4c296628 sub qword ptr [rsi+28h],r12
DEFAULT_BUCKET_ID: WIN7_DRIVER_FAULT
BUGCHECK_STR: 0xA
ANALYSIS_VERSION: 6.3.9600.16384 (debuggers(dbg).130821-1623) amd64fre
TRAP_FRAME: fffff8800584b190 -- (.trap 0xfffff8800584b190)
NOTE: The trap frame does not contain all registers.
Some register values may be zeroed or incorrect.
rax=0000000000000001 rbx=0000000000000000 rcx=0000000000000006
rdx=0000000000000022 rsi=0000000000000000 rdi=0000000000000000
rip=fffff8000298636f rsp=fffff8800584b320 rbp=fffff80002a4ae80
r8=0000000000000029 r9=0000000000000000 r10=0000000000000000
r11=fffffa800f13518c r12=0000000000000000 r13=0000000000000000
r14=0000000000000000 r15=0000000000000000
iopl=0 nv up di pl nz na pe nc
nt!PsChargeProcessCpuCycles+0x10f:
fffff800`0298636f 4c296628 sub qword ptr [rsi+28h],r12 ds:00000000`00000028=????????????????
Resetting default scope
LAST_CONTROL_TRANSFER: from fffff800028d7be9 to fffff800028d8640
STACK_TEXT:
fffff880`0584b048 fffff800`028d7be9 : 00000000`0000000a 00000000`000000a8 00000000`00000006 00000000`00000001 : nt!KeBugCheckEx
fffff880`0584b050 fffff800`028d6860 : fffff8a0`0391c0ac 00000000`00000000 00000000`00000000 00000000`00000002 : nt!KiBugCheckDispatch+0x69
fffff880`0584b190 fffff800`0298636f : fffff8a0`02007f20 00000000`00000000 00000000`00000000 fffff800`00000000 : nt!KiPageFault+0x260
fffff880`0584b320 fffff800`028d403a : 00000000`00000000 fffff880`0584b3e0 fffffa80`0dd1ff00 fffff800`02a031de : nt!PsChargeProcessCpuCycles+0x10f
fffff880`0584b360 fffff880`04b7a02e : fffff880`04b792fc 00000000`00000000 00000000`00000022 fffffa80`0e355e50 : nt!KiChainedDispatch+0x10a
fffff880`0584b4f8 fffff880`04b792fc : 00000000`00000000 00000000`00000022 fffffa80`0e355e50 fffffa80`0f066840 : 0xfffff880`04b7a02e
fffff880`0584b500 00000000`00000000 : 00000000`00000022 fffffa80`0e355e50 fffffa80`0f066840 fffff880`0584b540 : 0xfffff880`04b792fc
STACK_COMMAND: kb
FOLLOWUP_IP:
nt!PsChargeProcessCpuCycles+10f
fffff800`0298636f 4c296628 sub qword ptr [rsi+28h],r12
SYMBOL_STACK_INDEX: 3
SYMBOL_NAME: nt!PsChargeProcessCpuCycles+10f
FOLLOWUP_NAME: MachineOwner
MODULE_NAME: nt
IMAGE_NAME: ntkrnlmp.exe
DEBUG_FLR_IMAGE_TIMESTAMP: 4ce7951a
IMAGE_VERSION: 6.1.7601.17514
FAILURE_BUCKET_ID: X64_0xA_nt!PsChargeProcessCpuCycles+10f
BUCKET_ID: X64_0xA_nt!PsChargeProcessCpuCycles+10f
ANALYSIS_SOURCE: KM
FAILURE_ID_HASH_STRING: km:x64_0xa_nt!pschargeprocesscpucycles+10f
FAILURE_ID_HASH: {8eeeeb21-a639-8c21-c8a3-9a37cf39b50b}
Followup: MachineOwner
For the bugcheck, please refer to the article to troublshoot the issue.
Bug Check 0xA: IRQL_NOT_LESS_OR_EQUAL
http://msdn.microsoft.com/en-us/library/windows/hardware/ff560129%28v=vs.85%29.aspx
Hope this helps,
Ada Liu
TechNet Community Support -
Hierarchy INT does not exist for Financial Statement item 0glaccext
Hi,
I am facing a problem while executing the Standard Business content "Cash Flow statement" query. I am getting the message "Hierarchy INT does not exist for Financial Statement item 0glaccext".
I am not able to find this Hierarchy in the "avaialble Hierarchies from OLTP". I think this is a standard SAP Hierarchy.
Any thoughts on how to resolve this issueJohn,
You can define FSVs for a specific chart of accounts, for a group chart of accounts, or without any specific assignment.
In your case, double-check whether you are running the report for the same CoA assignment that you have defined your FSV for in the first place.
As somebody's mentioned earlier, these reports are made using Report Painter (GRR1 / 2 / 3, etc.). Seems FSV = INT has been fixed in these reports for your system. You'll have to edit these reports (using GRR2) and the correct FSV.
Regards
Gulshan -
Hello everyone,
i have just signed up for the java forum and i have a problem as you may easily understand.
i have been working for a project related to image processing, and my supervisor asked me to write a code that implements one of the distance transform algorithms such as Euclidean or Gaussian. However, we do not need the transformed and grey-scale output of the input image but the coordinates and radiuses of the inner circles that represents the features of the original image.
actually i have no idea how can i compete those coordinate and radius values. so far, i have written a code that takes an image as input and then computes its pixes values (i used PixelGrabber class) in order to store them into both 1D and 2D arrays. the next step is to calculate the values of the transformed image in order to access the values i have been trying to get; however, i cannot really see any way to do so.
here is a link for those who do not have any idea about the circles i mentioned to understand what i meant:
http://sog1.me.qub.ac.uk/Research/medial/medial.php
if you have any idea about competing the circle values, i will be in your debt.
thanks to everybody who pays attentionhere is the code i have written to obtain the pixel values.
as you can see, this code takes an image from the directory where you put the code, stores the pixel values of the input image into 1D and 2D arrays.
aside form the pixel calculation, i tried to implement a distance transform algorithm i found in the web but i think i could not correctly integrate it to my own code.
import java.awt.*;
import java.awt.image.*;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import javax.imageio.*;
public class Pixel {
public static void main(String[] args){
PixelGrabber pg;
File file;
BufferedImage image = null;
try {
// Read from a file which is in the same directory with this code
file = new File("aaa.bmp");
image = ImageIO.read(file);
} catch (IOException e) {
pg = new PixelGrabber(image, 0, 0, -1, -1, false);
try {
System.out.println(pg.grabPixels());
} catch (InterruptedException e) {
e.printStackTrace();
int ysize = image.getHeight();
int xsize = image.getWidth();
System.out.println("Row sizw: " + ysize + " pixel");
System.out.println("Column Size: " + xsize + " pixel");
pg.startGrabbing();
byte[] data = new byte[xsize*ysize];
data = (byte[]) pg.getPixels();
int i=0;
//printing the 1D array
do{
System.out.print(data);
i++;
if( i%xsize == 0)
System.out.println();
}while(i<data.length);
System.out.println();
System.out.println();
System.out.println();*/
//copying the 1D array to 2D array
int index=0;
int[][] matris = new int[ysize][xsize];
for(int a=0; a<ysize; a++)
for(int b=0; b<xsize; b++){
matris[a] = data[index];
index++;
//printing the 2D array
for(int a=0; a<ysize; a++){
for(int b=0; b<xsize; b++)
System.out.print(matris[a][b]);
System.out.println();
//Backing up the 2D array
int[][] mat1 = new int[ysize][xsize];
for(int a=0; a<ysize; a++)
for(int b=0; b<xsize; b++)
mat1[a][b] = matris[a][b];
int temp, j;
//performing the distance transform (got this part from net)
for(j=0;j<ysize;j++)
for(i=0;i<xsize;i++)
if(mat1[i][j]==0)
continue;
if((j==0)||(j==ysize-1)){
mat1[i][j]=1;
continue;
if((i==0)||(i==xsize-1)){
mat1[i][j]=1;
continue;
temp=findmin(mat1[i-1][j],mat1[i-1][j-1],mat1[i][j-1],mat1[i+1][j-1]);
mat1[i][j]=temp+1;
//performing the distance transform from bottom (got this part from net)
for(j=ysize-1;j>=0;j--)
for(i=xsize-1;i>=0;i--){
if(mat1[i][j]==0)
continue;
if((j==0)||(j==ysize-1)){
mat1[i][j]=1;
continue;
if((i==0)||(i==xsize-1)){
mat1[i][j]=1;
continue;
temp=findmin(mat1[i-1][j+1],mat1[i][j+1],mat1[i+1][j+1],mat1[i+1][j]);
if(temp>(mat1[i][j]-1))temp=mat1[i][j]-1;
mat1[i][j]=temp+1;
//printing the original pixels
for(int a=0; a<ysize; a++){
for(int b=0; b<xsize; b++)
System.out.print(matris[a][b]);
System.out.println();
System.out.println();
System.out.println();
System.out.println();
//printing the transformed values
for(int a=0; a<ysize; a++){
for(int b=0; b<xsize; b++)
System.out.print(mat1[a][b]);
System.out.println();
private static int findmin(int num1, int num2, int num3, int num4) {
int min=4000;
if(min>num1)
min=num1;
if(min>num2)
min=num2;
if(min>num3)
min=num3;
if(min>num4)
min=num4;
return min;
please help me about how can i convert the 2d array into an image output in order for me to check the correctness and validity of the distance transform algorithm i found in the web. and i still need to figure out how to compete the coordinates and radiuses of the circles.
thanks everybody -
Hej!
Har ny data med Windows 8, har nu problem med att installera flach player, är dålig på engelska så då kanske ni förstår varför jag skriver på svenska också.
Jag har prövat,men det fungerar inte riktigt. När jag kör program där det ska vara flach hakar det upp sig hela tiden, såååå frusterande. Hjälp!
Önskar en personlig support som kan vägleda mig igenom och då en på mitt hemspråk, det skulle vara underbart. Tacksam för all hjälp på hur jag ska göra!
Mvh
Marianne ÖstlundFlash Player is embedded in Windows 8; you do not need to install it.
Use Windows Update to update your Flash Player version on Windows 8.x
Swedish; courtesy of Google Translate:
Flash Player är inbäddad i Windows 8, du behöver inte installera det.
Använd Windows Update för att uppdatera din Flash Player version på Windows 8.x -
How to expand a JTree depending on a property
Hi I have a JTree that needs to be expandAll if a property in the ini file is true. Can some tell me how I can do it or give me an example. If needed i can post my code. Here the addtreeDisplays() has to expandAll depending on a string(true ).
Can some help me out.
Thanks,
public class TreeDisplayPanel extends JPanel implements QMRequestListener,
TopologySelectionListener,
PropertyChangeListener
/** Creates new TreeDisplayPanel */
//Key to get from property file
String _treeKey = "tree.display.type";
//default display
public final static int TREE_DISPLAY = 0;
public final static int STAR_DISPLAY = 1;
public final static int BOTH_DISPLAY =2;
Properties _displayProp = null;
//Main panel where everything gets put on to be displayed
public JPanel _mainDisplayPanel;
//current default display
private int treeDisplayPreference = STAR_DISPLAY;
private MQETabbedPane _treeTabPane;
private MQETabbedPane _viewTabPane;
private String treeDisplayTitle;
static private final String treeviewKey = "tree.view.text";
static private final String starviewKey = "star.view.text";
static private final String splitviewKey = "split.view.text";
static private final String mergeviewKey = "merge.view.text";
// Default tree displays.
private HyperbolicTreePanel hyperbolicTreePanel = null;
private NavigatorTreePanel navigatorTreePanel = null;
// A store for any queue manager tree displays created
// by the user. This will enable these trees to be
// modified whenever the user invokes a expand/collapse
// all action on a node or whenever the user changes
// the leaf node expansion preference.
private Vector<NavigatorTreePanel> qmgrTreeDisplays =
new Vector<NavigatorTreePanel>();
//HashMap of indexes correspond to indexes in tabbed paned that are merged, it contains
//hashtables of components in those merged indexes
HashMap _qmMergedIndexes = new HashMap();
//Current listeners to this panel on node selections
protected Vector<TopologySelectionListener> _tsListeners =
new Vector<TopologySelectionListener>();
private TopologyModel m_model = null;
private TopologyModelNode m_nnode = null;
private TopologyDisplayPanel tdp = null;
public TreeDisplayPanel(TopologyModel model, Properties prop, String displayTitle) {
super(new BorderLayout());
m_model = model;
_displayProp = prop;
treeDisplayTitle = displayTitle;
initComponent();
initGui();
private void initComponent()
_mainDisplayPanel = ComponentFactory.getInstance().createTitledPanel(treeDisplayTitle);
_mainDisplayPanel.setLayout(new BorderLayout());
add(_mainDisplayPanel, BorderLayout.CENTER);
private void initGui()
if (_displayProp != null)
// Get the current display preference.
String defaultDisplay = Integer.toString(STAR_DISPLAY);
treeDisplayPreference = Integer.parseInt(_displayProp.getProperty(_treeKey, defaultDisplay));
try
//Add according to your display property
_treeTabPane = new MQETabbedPane();
_viewTabPane = new MQETabbedPane(JTabbedPane.BOTTOM);
_viewTabPane.addMouseListener(new MouseListener()
public void mouseClicked(MouseEvent e)
final int tabNum = _viewTabPane.getUI().tabForCoordinate(_viewTabPane,e.getX(),e.getY());
//Only if the mouse click is a right mouse and tab number is not on overview pane or doc pane is the popup valid
if (SwingUtilities.isRightMouseButton(e) && tabNum > 1)
final String tabStr = _viewTabPane.getTitleAt(tabNum);
JPopupMenu popup = new JPopupMenu();
JMenuItem menuItem1 = new JMenuItem(new AbstractAction("Close " + tabStr)
public void actionPerformed(ActionEvent e)
//Remove it from our HashMap of merged panes if it exists
if (_qmMergedIndexes.containsKey(tabStr))
_qmMergedIndexes.remove(tabStr);
// Remove the Qmgr tree display.
NavigatorTreePanel treePanel = (NavigatorTreePanel)_viewTabPane.getComponentAt(tabNum);
ExpandingModelNode model = (ExpandingModelNode)treePanel.getNavigatorTreeModel();
model.getNode().removeTreeModelListener(model);
qmgrTreeDisplays.remove(treePanel);
_viewTabPane.removeTabAt(tabNum);
String mergeview = StringFactory.getString(mergeviewKey);
JMenu merge = new JMenu(mergeview);
merge.setEnabled(false);
int numTabs = _viewTabPane.getTabCount();
//System.out.println("Num of tabs " + numTabs);
//Only allow merging if you have more then 2 panes (1 - Overview, 2 - Qmgr, 3-Qmgr....
//Also if the current pane is not a merge pane already
if (numTabs > 3 && !_qmMergedIndexes.containsKey(tabStr))
//Do not enable this menu if the number of already merged Indexes - the number of tabs
//is greater then two (One Valid pane + Overview pane). The reason is because then there is
//no valid pane to merge with
if ((numTabs - _qmMergedIndexes.size()) > 3)
merge.setEnabled(true);
for (int i = 2; i<numTabs; i++)
//Add only valid tabs and not already merged tabs
if (i != tabNum && !_qmMergedIndexes.containsKey(_viewTabPane.getTitleAt(i)))
//JMenuItem mergeItem = new JMenuItem(new AbstractAction(_viewTabPane.getTitleAt(i))
JMenuItem mergeItem = new JMenuItem(new AbstractAction(_viewTabPane.getToolTipTextAt(i))
public void actionPerformed(ActionEvent e)
try
//System.out.println("Action Name for " + e.getActionCommand());
//Work around for java bug in JTabbedPane
_viewTabPane.setSelectedIndex(0);
_viewTabPane.validate();
//End workaround
//Strip off the fully qualified name to contain only the name of the QM name
String mergeTabName = m_model.getQMgrName(e.getActionCommand());
JPanel splitPanel = new JPanel(new BorderLayout());
JSplitPane splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);
splitPane.setBorder(null);
splitPane.setOneTouchExpandable(true);
int mergeTabIndex = _viewTabPane.indexOfTab(mergeTabName);
String mergeTabString = _viewTabPane.getTitleAt(mergeTabIndex);
Component mergeComp = _viewTabPane.getComponentAt(mergeTabIndex);
String mergeCompAddress = _viewTabPane.getToolTipTextAt(mergeTabIndex);
splitPane.setLeftComponent(mergeComp);
int currentTabIndex = _viewTabPane.indexOfTab(tabStr);
Component currentComp = _viewTabPane.getComponentAt(currentTabIndex);
String currentCompAddress = _viewTabPane.getToolTipTextAt(currentTabIndex);
splitPane.setRightComponent(currentComp);
splitPanel.add(splitPane, BorderLayout.CENTER);
String mergeName = mergeTabName + "/" + tabStr;
String toolTipName = mergeCompAddress + " | " + currentCompAddress;
//_viewTabPane.addTab(mergeName, splitPanel);
addTabToDisplay(mergeName, toolTipName, splitPanel);
splitPane.setDividerLocation(.5);
int mergeIndex = _viewTabPane.indexOfTab(mergeName);
if (mergeIndex != -1)
//_viewTabPane.setToolTipTextAt(mergeIndex, mergeName);
//_viewTabPane.setSelectedIndex(mergeIndex);
//Now lets update our ongoing vector/hashmap
//Create a hash map with the current merged view
Hashtable mergeViews = new Hashtable();
mergeViews.put(mergeCompAddress,mergeComp);
mergeViews.put(currentCompAddress,currentComp);
_qmMergedIndexes.put(mergeName, mergeViews);
catch (Exception ex)
ex.printStackTrace();
merge.add(mergeItem);
String splitKey = StringFactory.getString(splitviewKey);
JMenu splitMenu = new JMenu(splitKey);
splitMenu.setEnabled(false);
//Only allow to split if the current tab has a merged view
if (_qmMergedIndexes.containsKey(tabStr))
splitMenu.setEnabled(true);
Hashtable mergeHash = (Hashtable)_qmMergedIndexes.get(tabStr);
Enumeration enumeration = mergeHash.keys();
while (enumeration.hasMoreElements())
//Create a new menu item for each QM in View
String node = (String)enumeration.nextElement();
JMenuItem mergeItem = new JMenuItem(new AbstractAction(node)
public void actionPerformed(ActionEvent e)
//Work around for java bug in JTabbedPane
_viewTabPane.setSelectedIndex(0);
_viewTabPane.validate();
//End workaround
String splitTabName = e.getActionCommand();
//Get the merge hash for this tab num
Hashtable splitHash = (Hashtable)_qmMergedIndexes.get(tabStr);
Enumeration enumeration = splitHash.keys();
_viewTabPane.removeTabAt(tabNum);
int iIndexOfSplit = 0;
while (enumeration.hasMoreElements())
//Add new pane for the views in the hashtable
String nodeAddress = (String)enumeration.nextElement();
String nodeName = m_model.getQMgrName(nodeAddress);
NavigatorTreePanel currentComp = (NavigatorTreePanel)splitHash.get(nodeAddress);
addTabToDisplay(nodeName,nodeAddress,currentComp);
//Now if this tab this we just added is equal to the menu item of the split menu,
//store this so that we can give focus to it later
if (splitTabName.equals(nodeAddress))
iIndexOfSplit = _viewTabPane.getTabCount()-1;
//Also remove it from our vector of merged tabs
_qmMergedIndexes.remove(tabStr);
//int mergeIndex = _viewTabPane.indexOfTab(splitTabName);
//if (mergeIndex != -1)
if (iIndexOfSplit != -1)
//_viewTabPane.setSelectedIndex(mergeIndex);
_viewTabPane.setSelectedIndex(iIndexOfSplit);
splitMenu.add(mergeItem);
popup.add(menuItem1);
popup.add(merge);
popup.add(splitMenu);
if (popup != null)
Point p = e.getPoint();
popup.show((Component)e.getSource(), (int)p.getX(), (int)p.getY());
public void mouseEntered(MouseEvent e)
public void mouseExited(MouseEvent e)
public void mousePressed(MouseEvent e)
public void mouseReleased(MouseEvent e)
//Don't forget to add the tree's
addTreeDisplays();
_viewTabPane.addTab(StringFactory.getString("perspective.display.overview.tab"), _treeTabPane);
_viewTabPane.addTab(StringFactory.getString("perspective.display.documentation.tab"), new DocDisplayPanel());
_mainDisplayPanel.add(_viewTabPane, BorderLayout.CENTER);
catch(Exception e)
e.printStackTrace();
private void addTabToDisplay(String nameStr, String toolStr, JComponent c)
if (_viewTabPane == null)
return;
_viewTabPane.addTab(nameStr, c);
int tabNum = _viewTabPane.getTabCount()-1;
if (toolStr != null)
_viewTabPane.setToolTipTextAt(tabNum, toolStr);
_viewTabPane.setSelectedIndex(tabNum);
private void addTreeDisplays()
String starKey = StringFactory.getString(starviewKey);
String treeKey = StringFactory.getString(treeviewKey);
//navigatorTreePanel.expandTreePath(this, true);
String test = MQEPreferencesDialog.getPreferenceValue("expand.leaf.startup");
System.out.println("test{{{{{{{{{{"+test);
//System.out.println("test{{{{{{{{{{"+m_nnode.);
if (treeDisplayPreference == BOTH_DISPLAY)
hyperbolicTreePanel = new HyperbolicTreePanel(m_model);
hyperbolicTreePanel.addQMRequestListener(this);
hyperbolicTreePanel.addTopologySelectionListener(this);
//hyperbolicTreePanel.expandTreePath((TopologyModelNode)m_model.getRoot(), true);
//hyperbolicTreePanel.expandTreePath(m_nnode, true);
_treeTabPane.addTab("", IconFactory.getInstance().getIcon("staricon"), hyperbolicTreePanel, starKey);
navigatorTreePanel = new NavigatorTreePanel(m_model);
navigatorTreePanel.addQMRequestListener(this);
navigatorTreePanel.addTopologySelectionListener(this);
_treeTabPane.addTab("", IconFactory.getInstance().getIcon("treeicon"), navigatorTreePanel, treeKey);
else if (treeDisplayPreference == TREE_DISPLAY)
navigatorTreePanel = new NavigatorTreePanel(m_model);
navigatorTreePanel.addQMRequestListener(this);
navigatorTreePanel.addTopologySelectionListener(this);
_treeTabPane.addTab("", IconFactory.getInstance().getIcon("treeicon"), navigatorTreePanel, treeKey);
else
hyperbolicTreePanel = new HyperbolicTreePanel(m_model);
hyperbolicTreePanel.addQMRequestListener(this);
hyperbolicTreePanel.addTopologySelectionListener(this);
_treeTabPane.addTab("", IconFactory.getInstance().getIcon("staricon"), hyperbolicTreePanel, starKey);
public void addTopologySelectionListener(TopologySelectionListener tsl)
if (tsl != null)
_tsListeners.add(tsl);
public void removeTopologySelectionListener(TopologySelectionListener tsl)
if (tsl != null)
_tsListeners.remove(tsl);
protected void fireTopologySelection(TopologyModelNode node)
for (TopologySelectionListener tsl : _tsListeners)
tsl.receiveTopologySelection(node);
/* TopologySelectionListener methods */
public void receiveTopologySelection(TopologyModelNode node)
//Since this panel can have multiple panels in it's current Tabbed display.
//This class registers to each of the TopologyDisplayPanels as a listener for selections
//This way no matter who is currently active, they will funnel the event to here and it this
//panel will send the event on foward
if (node != null)
fireTopologySelection(node);
/* QMRequestListener methods */
public void receiveQMRequest(TopologyModelNode node)
//Check to see if this node is already in a Tab already
System.out.println("Queue Manager request");
boolean doesExist = false;
int tabNum =0;
//Fix for activity 00033248 TAB PANES FOR IDENTICAL QMANAGERS ON DIFF MACHINES
//The only unique names are in the tooltips so lets just cycle through all the tabs
//and search for this Queue Manager name. Using indexOfTab in JTabbedPane will not
//work here because it will return first location of a matching queue manager name, but
//we could have multiple tabs open with same queue manager name.
for (int i = 0; i < _viewTabPane.getTabCount();i++)
String toolTipStr = _viewTabPane.getToolTipTextAt(i);
//Using the string method for indexOf, covers us when we have a merged tab window
if ((toolTipStr != null) && (toolTipStr.indexOf(((ResourceProxy)node).getAddress().trim()) != -1))
//We already have existing queue manager tab open
doesExist = true;
tabNum = i;
break;
if ( !doesExist)
//Create the tab
NavigatorTreePanel treePanel = new NavigatorTreePanel(new ExpandingModelNode(node));
treePanel.addTopologySelectionListener(this);
// Add the tree panel to a container so that it can be accessed
// for expand/collapse all and tree refresh actions.
qmgrTreeDisplays.add(treePanel);
//Fix for activity 00033248 TAB PANES FOR IDENTICAL QMANAGERS ON DIFF MACHINES
addTabToDisplay(((ResourceProxy)node).getName().trim(), ((ResourceProxy)node).getAddress().trim(), treePanel);
node.getModel().expandNode(node);
else
_viewTabPane.setSelectedIndex(tabNum);
/* PropertyChangeListener methods */
public void propertyChange(PropertyChangeEvent evt){
String propertyChanged = evt.getPropertyName();
if (propertyChanged.equals(MQEDisplayPreferences.treeDisplayProperty)){
int newPreference = ((Integer)evt.getNewValue()).intValue();
changeTreeDisplays(newPreference);
else if (propertyChanged.equals(MQEDisplayPreferences.expandLeafProperty)){
// The enable leaf node preference has changed so update the MQE
// tree displays according to the new preference setting.
refreshTreeDisplays();
else{
// Ignore the property change event.
* Changes the trees displayed by MQE according to
* the preference set by the current user.
* @param the new trees display preference.*/
public void changeTreeDisplays(int preference)
// Assign the new tree display preference.
treeDisplayPreference = preference;
// Recreate the tree display according
// to the new preference.
m_model.removeTreeModelListeners();
_treeTabPane.removeAll();
addTreeDisplays();
refreshTreeDisplays();
* Fully expands the Navigator display trees from the specified node.
* @param the node from which each tree will be fully expanded.
public void expandAll(TopologyModelNode node)
node.expandAll();
final TopologyModelNode fnode = node;
Runnable doTask = new Runnable(){
public void run(){
// Fire a tree structure changed notification for
// the StarTree, (1) because it will not display
// tree nodes correctly without it and (2) it appears
// to be the only tree interested in doing anything
// with it!
fnode.fireTreeStructureChanged(TopologyModel.STRUCTURE_CHANGE);
if (hyperbolicTreePanel != null)
hyperbolicTreePanel.expand(fnode);
if (navigatorTreePanel != null)
navigatorTreePanel.expand(fnode);
for (NavigatorTreePanel navTreePanel : qmgrTreeDisplays){
navTreePanel.expand(fnode);
SwingUtilities.invokeLater(doTask);
* Fully collapses the Navigator display trees from the specified node.
* @param the node from which each tree will be fully collapsed.
public void collapseAll(TopologyModelNode node)
final TopologyModelNode fnode = node;
Runnable doTask = new Runnable(){
public void run(){
if (hyperbolicTreePanel != null)
hyperbolicTreePanel.collapse(fnode);
if (navigatorTreePanel != null)
navigatorTreePanel.collapse(fnode);
for (NavigatorTreePanel navTreePanel : qmgrTreeDisplays){
navTreePanel.collapse(fnode);
SwingUtilities.invokeLater(doTask);
* Will ensure that all tree nodes, starting from the root, are correctly displayed.
public void refreshTreeDisplays()
if (hyperbolicTreePanel != null){
TopologyModel model = hyperbolicTreePanel.getTopologyModel();
if (model != null){
hyperbolicTreePanel.expandTreePath((TopologyModelNode)model.getRoot(), true);
hyperbolicTreePanel.refreshTreeDisplay((TopologyModelNode)model.getRoot());
if (navigatorTreePanel != null){
TopologyModel model = navigatorTreePanel.getTopologyModel();
if (model != null){
navigatorTreePanel.refreshTreeDisplay((TopologyModelNode)model.getRoot());
navigatorTreePanel.repaint();
for (NavigatorTreePanel navTreePanel : qmgrTreeDisplays){
ExpandingModelNode model = (ExpandingModelNode)navTreePanel.getNavigatorTreeModel();
if (model != null){
navigatorTreePanel.expand((TopologyModelNode)model.getRoot());
navTreePanel.refreshTreeDisplay((TopologyModelNode)model.getRoot());
navTreePanel.repaint();
}you really don't need to post all that code, few people will read it, or try to compile/run it.
just a tree in a scrollpane in a frame is all you need, then add the method/problem to the basic,
and post that so its only 20 to 30 lines long.
here's your basic tree/scrollpane/frame, with an expandAll()
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
class Testing
public void buildGUI()
JTree tree = new JTree();
expandAll(tree);
JFrame f = new JFrame();
f.getContentPane().add(new JScrollPane(tree));
f.pack();
f.setLocationRelativeTo(null);
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
f.setVisible(true);
public void expandAll(JTree tree)
int row = 0;
while (row < tree.getRowCount())
tree.expandRow(row);
row++;
public static void main(String[] args)
SwingUtilities.invokeLater(new Runnable(){
public void run(){
new Testing().buildGUI();
}so, is your problem with the expandAll(), or with reading the properties file?
Maybe you are looking for
-
I found my old ipod touch and it says the ipod is disabled and to connect it to itunes but when i try to connect it to itunes it says cannot connect cause ipod has passcode but i cant unlock passcode cause ipod disabled. Please anyone have an idea?
-
Camera raw 7.1 update error code U44M2P7 product cs6 - camera 600D/T3i
Received error code U44M2P7 while trying to update to camera raw 7.1 I'm running CS6 and my camera is a 600D/T3i
-
Remove output type in PO through a report/BAPI
Hi, am creating a PO from a report through BAPI .What i need to all the output types are triggered except a specific one. I want to achieve this .........I Don't want to change the settings. Thank you Mohsin
-
How do i set up a rescue email adress
???
-
Backed up phone now photos are missing
backed up my phone becuase it was having a problem that I had been told by Apple to restore as new phone for. Where does my backup save so I can get my pics/contacts/etc from so I don't lose them? Help