Changing the pane content in a swing frame

hi
I am now trying to implement a GUI, which consist of a JSplitPane including two JScrollPane-s. The left scroll pane is a JTree and the right should display a sequence of JLabels and JTextFields, depending on the selected tree node on the left.
I can't figure out how I can change the content of the right scroll pane with each new selection in the tree.
Here is a part of my code, it seems straightforward, but it displays an EMPTY right JScrollPane.
Do you have any idea why it is empty?
NOTE: maskViewPane is my right JScrollPane, which does not display anything!!!
public void valueChanged(TreeSelectionEvent e) {
        Node node = (Node)tree.getLastSelectedPathComponent();
        if (node == null) return;
        JPanel pane = new JPanel(new GridBagLayout());
              for(int i = 0; i < labelsVALUES.size(); i++) {
                   JLabel labelComponentI = new JLabel(labelsVALUES.get(i));
                   labels.add(labelComponentI);
                   c.insets = new Insets(15, 15, 0, 30);
                   pane.add(labelComponentI, c);
                   JTextField tfComponentI = new JTextField(TextFieldsVALUES.get(i));
                   textFields.add(tfComponentI);
                   c.insets = new Insets(0, 15, 0, 30);
                   pane.add(tfComponentI, c);
         maskViewPane.removeAll();  //NOTE: maskViewPane is my right JScrollPane, which doesn't display anything
         maskViewPane.setViewportView(pane);
         maskViewPane.repaint();
         this.repaint();
    }

Let me introduce to to this wonderful place:
http://forum.java.sun.com/forum.jspa?forumID=57
:)

Similar Messages

  • I can't change the pan / zoom duration in Premiere Elements 13

    Ok I'm getting really frustrated especially after I just watched a video tutorial which clearly shows how to do this in Premiere Elements 10 and I have JUST purchased version 13!
    What I'm not able to adjust is the speed or duration between focus frames in a pan / zoom; after it's set up.
    You are supposed to be able to go into the PAN TOOL, and either click on the pan duration, or in the In the Pan Time dialog, scrub the time duration to the desired value, or enter a value in the dialog box, OR simply adjust / drag the focus frame markers in the timeline (like in the video tutorial I watched...) to change the pan duration.  In my software at least NONE of these work.  (All these from:  Adobe Premiere Elements Help | Pan and zoom to create video-like effect)
    I can't click on the pan duration, well if I do nothing happens, I can't even get a Pan Time Dialog box; so I can't do it that way; and lastly I can't click and adjust the focus frame markers in the timeline....none of it works and I can hardly believe that this is correct...the only way that I can adjust the pan time, is to delete the effect completely and start it over...this can't be correct can it??
    Any help would be appreciated!!!

    Ok yep you are great, so I'm sorry I'm attempting to do it on video clips, not stills. 
    I was aware that the last versions of PE had similar Pan and Zoom workspaces, that's why I knew or thought I knew that my situation could be solved.
    The first link that you recommend is exactly where I got the third paragraph of my question, so I had already reviewed that and to me when you read the directive it still makes it sound like you can adjust the focus frame markers....?  (very confusing)
    The second link you sent might have helped me realize that the tool doesn't work the same way for Stills and it does for Video clips; (I really think like on the Adobe web site this difference should be markedly more clear to help with confusion; but in their defense maybe it's me being slow to understand)
    I was able to figure out some of the difference through perseverance last night, and did figure out (like your last link explains) that you can move the CTI and then add a new focus frame...BUT I still have my original question...how can you adjust the pan duration on a video clip after it's been made and you have left the pan and zoom tool like if you want to edit that timing... I think the answer is that you can't lol, I think it has to be deleted or a new focus frame added and the other deleted to adjust the timing...am I correct?
    This quote is taken from the Adobe web site one of the links you shared 
    You can work with focus frames in videos the same way that you work with focus frames for images. However, only those options that are relevant to movie clips appear in the pan and zoom tool.
    I think maybe the last sentence is attempting to explain that but it's just so ambiguous...
    Just trying to figure it out!  I do appreciate your help! 

  • Changing the EMail content for a message either failure or success

    Hi All,
    I  need some information about how to change the Email content which was sent by the system which was triggered during process chain. we want to get  the subject of the message rather than all the details which are part of default messages like
    Log for This Process:
    Log of Respective Background Job:
    and others.
    Since we are trying to send the message to Cell Phones  , just need a short message either sucess or failure.
    Is there any exit or methid to override this message to a custom message.
    Any help in this regard is appriciated.
    Thanks on advance.
    sree

    Hi,
    I know its a very old post, but I'm facing this issue now.. It would be great if you guide me.
    I'm getting the following error
    "Message handle error.
    error while attempting to process the message "com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessage"; the reported exception is: Transaction Rolledback.: weblogic.transaction.internal.TimedOutException: Transaction timed out after 303 seconds
    BEA1-01502373650AE964512F
    Thanks,
    Girish.

  • Changing the email Content for the Contact Person Creation

    Dear All
    We are on SRM 7.0. We need to change he mail content that goes to the Contact Persons of Vendors. These contact Persons are created in SRM for bidding.
    How to change the email content?.
    Thanks in Advance.
    velu

    Hi,
    Pl. follow the following steps :-
    1. Create smartforms containing your own content to be sent to contact persons.
    2. Implement the BADI : BBP_OUTPUT_CHANGE_SF.
    3. There is one interface(method) in the above BADI e.g. :change_forms.  You have to call smart forms in this interface.
    I hope you may achieve your task by following the above steps.
    regards
    HARSHB

  • Email Notification need anyone changes the PCD content..

    Hello,
    Can someone give me a solution for this issue.
    An email should be sent to a person if someone has changed the PCD content. Can be an iveiw property, role property, workset property etc,.
    Or if any thing is created or modified in PCD i should get an email notification that so and so content has been modified by so and so person.
    Regards,
    Krishna

    Hello Krishna,
    As far as regarding to your question there is no built in functionality with portal. Email notification for subscription and notification service can be configured in the portal as:
    Sys admin - System Configuration - Knowledge Management-Content Management - Utilities-channels - email channels  by this you can configure the communication channels available in the portal. However this is used to send information to the users.
    Also the email notifications are used in the User Management where the user profile changes can be tracked by the Administrator, similarly for tasks and notification's we can configure the UWL for the email communication.
    Some of the useful links are:
    /thread/34939 [original link is broken]
    EP-Email Configuration
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2678e05a-0701-0010-fa86-ddfbec5a2b94
    Outlook Email Based Approval
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d6bdc790-0201-0010-4597-da11d5f9e5a1
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/41d59a90-0201-0010-ba9d-e1c5c0078a71
    Creating An Import File For UME From Excel
    In these there are threads which explain you some concepts of Collaboration rooms by which you can track the details of PCD and also like the System landscape monitoring.
    I hope this information would give you an idea as of how email channel could be used in portal where in as specific to your question i think we need to build an application and try integrate it with portal to test it.
    Thanks,
    Aparna
    'Please reward point if helpful'

  • How to Change The Pan and Volume

    Hi
    I wondered how you can change the pan and volume for the audio tracks?
    Thanks

    This info was provided to me recently on panning and has helped me wonders
    http://discussions.apple.com/thread.jspa?threadID=705593&tstart=0
    J

  • I need to change the panning of 120 samples...

    Hi,
    does anyone know of a quick way to change the panning of an AIFF sample?? I sampled my Yamaha P80 piano into the EXS24, but afterwards I found out that a part of the samples is panned too much to the left, and not just a little bit, I'm afraid. And only a part of the samples is wrong, so I can't just pan the whole instrument to correct the error.
    I could, of course, load a sample in the arrange window, use the channel strip's pan knob, and mix it down to a new sample, but to do that 120 times.....
    If I could only select either the left or right channel of a sample in the sample editor, I could simply pump up the gain of the weak channel a bit, but as far as I can see, LE8's sample editor can't do that.
    Any suggestions for a quick method??
    Thanks!
    Regards,
    Jaap

    Jaap,
    You need some kind of batch processing obviously. I only have LE and that doesn't seem to have the ability to batch jobs like this.
    However what about Automator that comes with Mac OS?
    I'm guessing you could simply add a job that does the conversion for you with a script - that's the kind of thing Automator is for.
    Other options are going to be third party tools (unless anyone knows if Logic pro can batch process files like this).
    Sox for instance is very powerful CLI driven (free too) but only comes in *nix or windows flavours.

  • Change the colour of title bar of frame

    how can we change the colour of title bar of any frame?

    i want to have control of the title bar.there must be some way out.look & feel gives it colour of that perticular types colour(motif,met,native).but i want my choosen colour for it.if you have any direction to solve it please suggest me that.

  • How to change the Button content as CamelCasing in Windows phone 8.1 Message dialog

    This was already raised in
    Stack over flow, While showing the native Message dialog in Windows phone, i cant change the captions as camel case of command buttons. Is this a bug with windows phone 8.1(WinRT) are is there any workaround to fix this issue?
    Sankar

    This isn't recommended and violates the system style.
    If you want a custom dialog you need to use a different control. The MessageDialog always lower cases the buttons to match the system style and is not generally customizable.
    If you use a ContentDialog you can customize it fairly extensively, and it doesn't try to fix the case of its buttons. You'll probably want to create your own ContentDialog class (there's a template under Add.New Item...) with your desired contents, but here's
    a quick content-free example:
    ContentDialog cd = new ContentDialog();
    cd.Title = "My Title";
    cd.PrimaryButtonText = "CoNtInUe";
    cd.SecondaryButtonText = "sToP";
    await cd.ShowAsync();
    Also note that the guidelines
    for message dialogs suggest using clear and specific verbs rather than generic OK/Cancel.

  • How to create, place, format and paste the clipboard contents into a text frame

    I am new to scripting and need help. I have an existing Indesign document. I need to be able to create a text frame on my current page, the width of my margins with the top of the text frame at the top margin and 1" in height, then format it to be 1-column, and then paste the clipboard contents into it and tag the text with a particular paragraph style. I am using Indesign CS4 on a mac, if that makes any difference. Thanks for any help.

    May this will help you. It will create an anchored object with a text what you desired, with object style. You should create an object style before with the x and y co ordinates. You can choose either para style or character style.
    var the_document = app.documents.item(0);
    // Create a list of paragraph styles
    var list_of_paragraph_styles = the_document.paragraphStyles.everyItem().name;
    // Create a list of character styles
    var list_of_character_styles = the_document.characterStyles.everyItem().name;
    // Create a list of object styles
    var list_of_object_styles = the_document.objectStyles.everyItem().name;
    // Make dialog box for selecting the styles
    var the_dialog = app.dialogs.add({name:"Create anchored text frames"});
    with(the_dialog.dialogColumns.add()){
    with(dialogRows.add()){
    staticTexts.add({staticLabel:"Make the anchored frames from ..."});
    with(dialogRows.add()){
    staticTexts.add({staticLabel:"This character style:"});
    var find_cstyle = dropdowns.add({stringList:list_of_character_styles, selectedIndex:0});
    with(dialogRows.add()){
    staticTexts.add({staticLabel:"Or this paragraph style:"});
    var find_pstyle = dropdowns.add({stringList:list_of_paragraph_styles, selectedIndex:0});
    with(dialogRows.add()){
    staticTexts.add({staticLabel:"Leave one dropdown unchanged!"});
    dialogRows.add();
    with(dialogRows.add()){
    staticTexts.add({staticLabel:"Delete matches?"});
    var delete_refs = dropdowns.add({stringList:["Yes","No"], selectedIndex:0});
    dialogRows.add();
    with(dialogRows.add()){
    staticTexts.add({staticLabel:"Anchored text frame settings:"});
    with(dialogRows.add()){
    staticTexts.add({staticLabel:"Object style:"});
    var anchor_style = dropdowns.add({stringList:list_of_object_styles, selectedIndex:0});
    with(dialogRows.add()){
    staticTexts.add({staticLabel:"Frame width:"});
    var anchor_width = measurementEditboxes.add({editUnits:MeasurementUnits.MILLIMETERS, editValue:72});
    with(dialogRows.add()){
    staticTexts.add({staticLabel:"Frame height:"});
    var anchor_height = measurementEditboxes.add({editUnits:MeasurementUnits.MILLIMETERS, editValue:72});
    the_dialog.show();
    // Define the selected styles
    var real_find_cstyle = the_document.characterStyles.item(find_cstyle.selectedIndex);
    var real_find_pstyle = the_document.paragraphStyles.item(find_pstyle.selectedIndex);
    var real_anchor_style = the_document.objectStyles.item(anchor_style.selectedIndex);
    // Check if a style is selected
    if(find_cstyle.selectedIndex != 0 || find_pstyle.selectedIndex != 0) {
    // Define whether to search for character styles or paragraph styles
    app.findChangeGrepOptions.includeFootnotes = false;
    app.findChangeGrepOptions.includeHiddenLayers = false;
    app.findChangeGrepOptions.includeLockedLayersForFind = false;
    app.findChangeGrepOptions.includeLockedStoriesForFind = false;
    app.findChangeGrepOptions.includeMasterPages = false;
    if(find_cstyle.selectedIndex != 0) {
    app.findGrepPreferences = NothingEnum.nothing;
    app.findGrepPreferences.appliedCharacterStyle = real_find_cstyle;
    } else {
    app.findGrepPreferences = NothingEnum.nothing;
    app.findGrepPreferences.appliedParagraphStyle = real_find_pstyle;
    app.findGrepPreferences.findWhat = "^";
    // Search the document
    var found_items = the_document.findGrep();
    myCounter = found_items.length-1;
    do {
    // Select and copy the found text
    var current_item = found_items[myCounter];
    if(find_pstyle.selectedIndex != 0) {
    var found_text = current_item.paragraphs.firstItem();
    var insertion_character = (found_text.characters.lastItem().index) + 1;
    var check_insertion_character = insertion_character + 1;
    var alt_insertion_character = (found_text.characters.firstItem().index) - 1;
    var the_story = found_text.parentStory;
    app.selection = found_text;
    if(delete_refs.selectedIndex == 0) {
    app.cut();
    } else {
    app.copy();
    } else {
    var found_text = current_item;
    var insertion_character = (found_text.characters.lastItem().index) + 2;
    var check_insertion_character = insertion_character;
    var alt_insertion_character = (found_text.characters.firstItem().index) - 1;
    var the_story = found_text.parentStory;
    app.selection = found_text;
    if(delete_refs.selectedIndex == 0) {
    app.cut();
    } else {
    app.copy();
    // Make text frame from selection
    try {
    app.selection = the_story.insertionPoints[check_insertion_character];
    app.selection = the_story.insertionPoints[insertion_character];
    } catch(err) {
    app.selection = the_story.insertionPoints[alt_insertion_character];
    var the_anchored_frame = app.selection[0].textFrames.add({geometricBounds:["0","0",anchor_height.editContents,anch or_width.editContents],anchoredObjectSettings:{anchoredPosition: AnchorPosition.ANCHORED}});
    app.selection = the_anchored_frame.insertionPoints[0];
    app.paste();
    // Apply the object style now to "force apply" paragraph style set in the object style
    if(anchor_style.selectedIndex != 0) {
    the_anchored_frame.appliedObjectStyle = real_anchor_style;
    myCounter--;
    } while (myCounter >= 0);
    } else {
    alert("No styles selected!");

  • How to change the speed of a clip without frame blending?

    Hi,
    I changed the speed of a clip to 200%. I expected Premiere to drop every second frame. Instead, there is some frame blending making my progressive footage interlaced. For some reason, the frame blending cannot be disabled by using the Use Frame Blending option.
    How can I make Premiere simply dropping every 2nd frame?
    Thanks in advance!

    In my test, all I need do was right click the clip and make sure Frame Blend was not checked.

  • Can I change the Jar contents trough Java code ?

    It may seems a little bit wierd, but it could solve a lot of acessibility problms....
    Can I change/set the jar contents using java code ?
    My real problem: I'm creating a EDI Client and using a XML file as configuration file. It's running well but this XML is much exposed to unauthorized users....
    Can I set a value in this XML file if it is inside a jar file ??

    you can look at class JarOutputStream . You could also use class RunTime to just create a new jar with the proper files via the normal jar command.

  • Can I change the timecode from hr:min:sec:frame to hr:min:sec:milliseconds?

    I have an assignment im doing where im using frameforge to mimic an action scene, the problem is that when i tween (blend) scenes together it wants it in seconds:milliseconds but premiere is showing seconds:frames so i can not properly convert this without doing math for every shot. So my question is, is there a way to change the ":frames" to some fraction of a second?

    No, since it makes no sense when the output is limited to frames only. That is the nature of video.

  • Change the Related Content Server name in FR Studio

    Hello All
    We are on Hyperion EPM 11.1.1.3 and we are currently have a requirement where we want to change the name of the Related Content Server in Financial Reporting Studio.
    eg;
    existing - hostname1.domain.com
    new - hostname2.domain.com
    Found a note on metalink " How to Add or Change a Related Content Server [ID 803074.1]" But it applies only for Release: 9.0 to 9.3.
    Moreover the file in the above note doesn't exists on 11.1.1.3. Even though the parameter "FR_BaseWebApp" exists in another file called fr_configcache.properties, change to that parameter wasn't reflected where expected.
    Found another note "Cannot Add Related Content to a Report in Financial Reporting Studio [ID 1068491.1]" but using this note we can only change the properties like port, isSSL etc but not the hostname.
    I would be grateful if you can help me in this matter.
    Regards
    Sree

    Hi Sree,
    Were you able to resolve this issue? We are facing the same problem.
    When changing the server name in fr_configcache.properties, we restart the services. This however replaces the newly added name with the old one.
    Please let me know which other file needs to be changed.
    Thanks

  • Changing the mail content - Someone has started following me

    Hi 
    I would like to change the content of the mail sent to the user that is triggered when some one starts following that user. Please let me know how can this done, thanks.
    Regards,
    Senthil

    I don't think it can be done.  The contents/formatting of that message are hard coded in some of the .dlls used by SharePoint.  The words and phrases used are most likely stored in the .RESX files used by the system for localization.  So
    you could edit the wording by editing those, but you won't be able to change the overall layout of the message or add additional dynamic information.  I also don't recommend changing the .RESX files used by the system since they could be over-written
    by any update that is applied to the system.
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

Maybe you are looking for

  • How to insert a default value into MS server in java - help please

    hi suppose if i have a table and one of the column has a default value when the table was created. how can i insert the default value into this column? assuming that the column is the second column and i can't specify the column name when inserting.

  • Color shift from content window to preview window

    I need some help!!!  When I open a photo in bridge the color is vibrant and vivid.  When I click on the photo so I can view it in the preview box the color shifts and becomes dull and flat.  Why is that?  How do I fix it?  After I have viewed the pho

  • Default behaviour based upon ACCTYPE

    Hello, I am a new BPC user and so, I would appreciate any help provided. I have done a lot of web search on this and aside from a couple of articles on SDN, I have not managed to find anything on this. I have previously posted a question on a similar

  • Problem with "Convert to Compiled Clip"

    I have a MovieClip symbol called BarGraph, set to Export, with Linkage Identifier BarGraph, and AS 2.0 Class specified as BarGraph. The BarGraph class is in BarGraph.as, stored in the same folder as the .fla file. When I right-click the symbol in the

  • Error when executing interface which load data from csv file which has 320

    Hi, Can some one provide a resolution for below error: I have created an interface which load data from csv file which has 320 columns, to a Synonym which has 320 columns in it using LKM File to SQL, IKM Sql Control Append. I am getting below error w