JTree look,why it si different in the same application

Hi,
I have app that consists of two panels ,in each panel i have placed jtree component(each jtree has its own model-source)
First panel is OK:
http://img135.imageshack.us/img135/5049/goodmx7.jpg
Unfortunately, in the second panel when i cretae new jtree using absoltely the same method,its look is completely different:
http://img135.imageshack.us/img135/4403/badrg8.png
How to make the second jtree looks like the first one?

cichy410 wrote:
I have app that consists of two panels ,in each panel i have placed jtree component(each jtree has its own model-source)When you say "I have app" do you mean you wrote the app or got it from somewhere?
If the former, post some code and ask a specific question about what you don't know or understand. Better still, post a SSCCE that clearly demonstrates your problem.
If the latter, you might consider asking the source, since we know nothing about it. Of course, I'm assuming you have the right to use the code.
db

Similar Messages

  • Why -Command behaves differently for the same command ?

    I have a script called a.ps1 containing
    exit 38
    We can run this script in the following three ways and we will get three
    different results. Can somebody explain what is going on? Why this behaviour?
    References to good sources of information would be greatly apreciated.
    PS> powershell -File .\a.ps1; $LastExitCode
    38
    PS> powershell -command { .\a.ps1 }; $LastExitCode
    1
    PS> powershell -command "& { .\a.ps1 }"; $LastExitCode
    0
    quilx

    Hi Quilx,
    I'm so sorry for missing your points, However, these information may be helpful for you:
    The folowing is an example:
    param($code=99)
    exit $code
    Save this in a.ps1 script file. Launch a cmd.exe and run your script
    Powershell.exe –noprofile –file “pathtoscript.ps1” 1234
    Echo %ERRORLEVEL%
    This returns 1234 (or whatever code you submitted to your script when you called it). The reason why so many people have trouble with returning exit codes is that they miss the –file parameter:
    Without –file, powershell.exe returns either 0 or 1. That’s because now your code is interpreted as a command, and when the command returns an exit code other than 0, PowerShell assumes it failed. It then returns its own exit code, which is always 0 (command
    ran fine) or 1 (command failed).
    Reference from:
    Returning Exit Codes from PowerShell
    Returning Exit Code from Script
    Best Regards,
    Anna

  • Why does Photoshop display colors differently from the other applications even in sRGB mode ?

    Hello all !
    Here is my problem :
    Photoshop is set to use sRGB workspace (in edit/colors.../workspace/RVB).
    If I understand correctly this is how all native windows applications work.
    This means Photoshop and the other applications should display the same colors on a file with a sRGB profile.
    Now this is the case until I calibrate my monitor.
    When I do, Photoshop colors become different from the other applications (irfanview, explorer, browsers...).
    The only way I found to let everything display the same colors is to set Photoshop to use Proofing/RVB Monitor.
    What upsets me even more is that Photoshop colors look "better" to me (dark grays seem to dark to me in the other applications.)
    I have read that this is because Photoshop takes the new profile into account and others applications do not. But I don't think this is relevant here because everything is in sRGB so the only profile is my monitor's and I think calibration is handled globally by windows : everything (including browsers, explorer, and Photoshop) changes color if I choose to apply the monitor's profile or not with windows color management tool ("use my parameters for this device").
    Here is my system configuration :
    - Photoshop CS4 (11.0.2)
    - Windows 7 64 bits
    - HP ZR2440W and DELL 2209WA (these are not wide gamut screens)
    I have spent two days trying to figure the logics behind this and really am upset. Any help would be greatly appreciated. Don't hesitate to ask me if there is something that is unclear or some information I forgot to mention.
    Thanks in advance,
    Yannick

    That sounds like an invitation to continue to talk about the issue.  Fair enough.
    I'm not sure where you're getting "insecurity"...  I am just trying to help you help others more effectively.
    I invite you to re-read just the first sentence of what you wrote very carefully, putting yourself in the shoes of someone struggling with both the terminology and the concepts:
    Photoshop (CMS) reads an embedded ICC profile and CONVERTS it to the custom monitor profile for a theoretical 'true color' display
    Think about what "Photoshop (CMS)" might mean to a person who doesn't know the acronym might stand for "Color Management System" (which is I assume what you meant).  Adobe themselves don't call it "CMS", they use the acronym "CMM" (Color Management Module).  The term "CMS" is used in the computer industry for about a dozen different things.
    While a color profile might have been embedded in an image file before it was opened by Photoshop, Photoshop works on documents.  A profile is not "embedded" in a document, it is maintained by Photoshop with the document and describes the color values in the document.  If Photoshop opens a document without an embedded profile, depending on settings and user choices it might assign a profile or it might even operate on the document without color-management.  Oversimplification doesn't help people when they're trying to learn new things unless it's described as such, for example, "This is a bit of an oversimplification..." or "Generally speaking..."
    Not every monitor profile is a "custom monitor profile".  Quite often a standard profile (e.g., sRGB IEC61966-2.1) is associated with a monitor by the operating system as a default, or a factory profile is installed by a driver package or system update.  Your use of the term "custom" is a bit ambiguous and could be read as implying the creation of a profile using a calibration and profiling device specific to the particular monitor.
    Photoshop's color management code does not convert an embedded ICC profile at all (read carefully what you wrote).  As I said, it transforms color values.  That was the key error in your description that prompted me to comment.
    If ever there is a time to pick words carefully, it's in a color-management discussion.
    -Noel

  • Why is the contact attached to voicemail different from the same contact in my contacts app?

    Why is the contact attached to voicemail slightly different from the same contact in my contacts app?

    Perhaps you have 2  or more contacts with the same phone number? If you do anything that displays the name associated with a phone number will chose at random.

  • MAX and ValueMotion: execute differently given the same trajectory parameters

    I'm trying write a LabVIEW program to move a stepper motor to a specific position at specific velocity and acceleration. The end product needs to be a user-friendly VI that can do all needed steps without the user opening Measurement and Automation Explorer(MAX).
    Here's the problem:
    The only way that I've been able to get the thing to move at the desired acceleration/ velocity profile is to make the same motion immediatly prior using MAX.
    For example, I want it to move at 2000 steps/s and 100 steps/s^2. This is what I have the initilization configuration set to. However if I pass this information directly into my labView program it actually moves differently (slower acc.) then if I run it
    directly from MAX (the interactive 1-D part). However if I make it move using MAX and then immediatly run my LAbVIEW VI it operates identically to the MAX execution.
    I've tried directly telling the VI the velocity, acc. etc. parameters, that doesn't help. The acceleration factor everywhere is the same (1). I don't understand why 100 steps/ s^2 in my LabVIEW code excutes differently at different times.
    Thanks.

    I will advise you to try out the examples shipped with LabVIEW to see if this makes a difference. You can find the examples at:
    C:\Program Files\National Instruments\LabVIEW 6\examples\Motion\ValueMotion
    ... specifically look for the library name stepper.llb which has inside an example VI named "Sequence of Moves with Low Level Parameters". Please try this example and check the VI "low level parameters" in the block diagram so you can manipulate the parameters and see if they do take effect on your motion system.
    Also make sure that you have the latest driver for Valuemotion which is 5.0.2 (http://www.ni.com/downloads/) and if you still see more issues you may want to contact us directly to troubleshoot the board or software, please find the procedure at www.ni.com/a
    sk on the web.
    Last, please do check that this settings you mention are actually set in MAX but in the axis trajectory settings, not in 1D interactive, because 1D interactive will reset to its default value whenever MAX is closed, so this is why you may be seeing the same movement only after you run MAX. Please check the example that may give us some idea, and please do it with MAX closed. Thanks!
    Regards,
    Nestor Sanchez
    Motion Control Support
    National Instruments
    Nestor
    National Instruments

  • Same colors appearing different in the same document

    I have a document where I have filled different table cells with the same RGB color. However, they sometimes appear as two different shades, one darker than the other. I checked to be sure it was the same RGB color and it was, but it appears quite different both in InDesign and when I export it to pdf. Any idea why the same color is appearing differently in the same document?

    It doesn't appear to be a monitor problem, as the colors are different both on my laptop screen and on my external monitor. As I do not have the ability to print a hard copy before the file gets sent to the printer to make a proof, I need to know which is the "right" color (or at least the once closest to how it will print). Even if the colors are showing up differently on screen, if the swatch for both is exactly the same, will it show up as the same color once the actual hard copy is printed?

  • How can I make different windows of the same application I have open remain on their respective desktops/spaces after reboot?

    Hi all,
    I use the same applications for work, entertainment and other personal activities, so it's impossible to simply assign different apps to different desktops/spaces. Thus, I have open windows of the same programs (Pages, TextEdit, Preview) arranged on several desktops. If I reboot my laptop, the windows are just crammed on Desktop 1. Can something be done about it?

    Barney,
    many thanks for your efforts and your time (preparing and posting the screenshot, answering to this question,...).
    Unfortunately, moving the focus to the next window only works with windows on the same desktop.
    btw, using a german keyboard layout and german language settings the shortcut is "cmd+<".
    I can switch with this shortcut between different windows of my Safari which reside on the same desktop, but I cannot swith between different safari windows distributed over several desktops.
    Thanks,
    equi    

  • How to multiple/ parellal sets of books to generate more than one financial statement based on different (or the same) accounting principles.

    How to multiple/ parallel sets of books to generate more than one financial statement based on different (or the same) accounting principles.
    My Client needs Parallel Ledger in SAP B1 similar like SAP ECC. Is this functionality available ?

    Dear Mr. Nagrajan,
    Thank you for your response. I have already gone through documents but not able to understand. Is there any setup for this ? or its just work around i.e. using template and special field in JV i.e. Ref. 1 /2
    My doubts :
    I understand that Chart of Account structure is one and common for IFRS and other accounting method. We need to create only those account separately ( 2 times with prefix like IFRS revenue account, GAAP Revenue account).
    Now at time of entry, Assume some entries / adjustment are specifically for IFRS and not for other ledger. In this case, What need to do ?
    You have mentioned about DTW approach but do we need to insert all JV's again with other ledger ?
    Someone suggested that if any entry which are specific to IFRS Ledger, We need to user Ref.1 /2 column or Transcation code column and in which we can put IFRS
    Based on this, Need to create 2 seperate template for IFRS and other ledger for all report.
    This is my understanding of Solution in SAP B1. Please help me to clarify my though process
    Please do needful.If you have done implemenation and if you can share doucment, it would be great help.
    Email :[email protected]

  • Why don't I have the same options in my calendar for appointments iCloud/iPad

    Why don't I have the same opoisions in my calendar for appointments? Online in iCloud calendar there are options to pick from for days of the week and how many weeks to set an appointment. Why can't I do this on my iPhone or iPad? Am I missing a setting to be able to do this? I make most of my apointments away from my desk and would like to send a invitation at that time.

    Restart iPhone: Hold down the Sleep/Wake button and the home button together until the apple logo appears (ignore the ON/OFF slider) then let both buttons go and wait for phone to restart (no data will be lost).

  • HT204406 I have subscribed to match on iTunes and organized my music on my Mac Book.  Why does it not appear the same way on my iPad

    I would like my music to appear organized in the same way on my iPad as I have done it on my Mac Book.  (and on my iPhone as well)  Since it is in the cloud, why does it not appear the same way in all devices?

    The purpose of iTunes match is to make your music library available to all of your devices anywhere. It will sync Playlists, but no other type of organization you may have made.
    If you're having trouble, be sure you are logged into the same Apple ID on all devices but be sure to read this article and pay special attention to associating your devices with an Apple ID. There are important restrictions you should know about.

  • Ibooks author is continuously deleting pages from my book until i'm left with nothing, does anyone know why this is or have the same problem?

    ibooks author is continuously deleting pages from my book until i'm left with nothing, does anyone know why this is or have the same problem?

    What are you doing BEFORE the pages start deleting?

  • Does anyone know where the iWeb data files are located or what they are called?  I can't find them.  I looked in Finder for files named the same as my website, but found nothing.  Any help would be appreciated.

    Does anyone know where the iWeb data files are located or what they are called?  I can't find them.  I looked in Finder for files named the same as my website, but found nothing.  Any help would be appreciated.

    If you erased or replaced your hard drive since iWeb was cancelled, then they are gone. Otherwise, if you have maintained backups then check those.
    Usually such files are in the /Home/Library/ folder or a sub-folder.
    Exposing the /Home/Library/ Folder
    Pick one of the following methods:
    A. This method will make the folder visible permanently. Open the Terminal application in your Utilities folder and paste the following at the command prompt:
    chflags nohidden ~/Library
    Press RETURN.
    B. Click on the Desktop, press the OPTION (⌥) button, select Library from the Finder's Go menu.
    C. Select Go To Folder from the Finder's Go menu. Paste the following in the path field:
    ~/Library
    Press the Go button.

  • After backup, TM cannot eject itself automatically, and then both my mac and TM get high temperature. why is that, I had the same problem twice.

    after backup, TM cannot eject itself automatically, and then both my mac and TM get high temperature. why is that, I had the same problem twice. I re-start my mac, it doesn't work at tall, still the same problem.

    Are you saying, right now that the TM refuses to work even after a re-boot?
    Is the light solid green at least?

  • Why charged me twice for the same item? They have withdrew money from my bank account for the second time about half an hour later after the transaction was completed leaving me overdrawn.

    Why charged me twice for the same item? They have withdrew money from my bank account for the second time about half an hour later after the transaction was completed leaving me overdrawn.

    Hi Benjamins,
    I've checked your account—you have two ExportPDF subscriptions. One placed on October 20 2013, and the other placed on October 11 of this year. So, you were probably charged the auto renewal for the subscription placed in 2013, and then the new charge for this year's order.
    Please Contact Customer Care so that an agent can help get things situated for you. There's no reason to have two subscriptions to the same service, so an agent can help you cancel one, if you'd like.
    Best,
    Sara

  • Balance Display are different for the same GL account in FS10N & FAGLB03

    Hi,
    It was noted that the GL account Balance Display are different for the same GL account in FS10N & FAGLB03.
    Please advice what would have cause the matter.
    Thank you,
    Regards,

    Hi Vani,
    Think you are using version 6.0.
    I had observed that TCode FAGLB03, displayes balances for particular Ledger (0L) leading by default.
    While in FS10N there is no option for selecting ledger.
    Try FAGLB03 with all ledgers one by one.
    Add the total and then try to matc wiht FS10N.
    Assign points of Good.
    thanks

Maybe you are looking for

  • Limit QoS

    hi! how limit speed - for windows update? WSA hardware. i find: Set action for 5 applications of type: Software Updates but not avialable - speed limit, use global setting... Software Updates Set default action for application type: Software Updates

  • Two problems with setting up arch. Keyboard layout and wifi card.

    Hi guys. I have installed arch on my old laptop (LG le express) and I have two problems. 1. I wasn't able to create a Hebrew keyboard layout. 2. I don't know how to install my wifi card. (Ralink 2500). as for one, I changed my xorg.conf to this: sect

  • How will I block/restrict the user to change the payment term in FBL5N?

    Hi All, How will I block/restrict the user to change the payment term in FBL5N???? I have tried on following objects: F_BKPF_BLA F_BKPF_BUK F_BKPF_GSB F_BKPF_KOA F_IT_ALV F_KNA1_BED F_KNA1_BUK F_LFA1_BUK S_ALV_LAYO But, not succeeded. =>Actually user

  • Business Process Code?

    Hello! What is a Business Process Code? How can I define it in my SAP System? I have such situation: As soon as I press F8, I'll take error message: "Business Process Code XXXXXXXXXX is not defined". How can I configure it?? Thanks in advanced!!

  • Single User: Does My User Name HAVE to be "Home"?

    Thanks to Roam's help I've now got just the one user on my MacBook (at last!). I read somewhere that you have to have at least one User Name set as "Home" to avoid certain problems. Is that correct? I'd prefer to set my User name as "Steve" (purely f