Grigbag, how to dynamically locate and replace components??

Hi there :)
The thing is. I am making a projectplanner kinda program. What i want is to use a gridbag layout. Then i want to make the size of the gridbag panel depend on the lengt of the active project, and with the lenght of on field per day. This works great.
Then i want to add a component in all the "empty" fields, this component has a set size, and the only visible thing here is the right border. this way i have a table kinda thing that dynamically changes depending on the projects size.
However now i want to add my projects. The idea was for the projects to be coloured JPanels with a name. And they would have to be placed according to their create date and deadline.
The problem is:
when i have calculated the field from which i want a certain "project" to be added. there is allready an emptyfield panel... How do i replace the first panel with the new one?? is it even possible? or am i simply too much of a noob :)
I really hope you can help me!!

thanks. but how about the constraints?? am i wrong in thinking that i have to use them in order to place my components at the right places??

Similar Messages

  • How do I find and replace a word in PDF?

    How do I find and replace a word in PDF?

    In the Find window (Ctrl+F) there's an option to replace the searched text.
    This is in Acrobat XI, and there's no Replace All-function.
    On Thu, Jan 15, 2015 at 4:27 PM, claireb88184899 <[email protected]>

  • My computer was stolen. How do I locate and transfer my my personal unpurchased music that was on I tunes to my new computer?

    My computer was stolen. How do I locate and transfer my personal unpurchased music that was on I tunes to my new computer?

    If by "unpurchased" you are referring to music that you obtained from CDs or other sources, you will have to restore the music from your backup or some other device such as a smartphone or music player.
    Regards.

  • How can I remove and replace a purchased app that is malfunctioning.

    How can I remove and replace a purchased app that is malfunctioning.?

    Delete the App and redownload it...
    Touch the app and hold your finger down until all the apps start to jiggle.
    You will see a circled "x" in the upper left corner.
    Tap it to delete an app. When done press the Home button.
    ( You cannot delete any pre-installed iOS app.)
    http://www.apple.com/support/ipad/applications/
    Download Past Purchases
    http://support.apple.com/kb/HT2519
    Log into iTunes using the account the Purchase was made with... Click on Buy... and a notice will come up saying you already have it... do you wish to download it again... Click Yes...

  • How do I locate and remove malware from my macbook ?

    How do I locate and remove malware from my Macbook ?

    Check the links below for options to remove the Adware.
    The Easy, safe, effective method:
    http://www.adwaremedic.com/index.php
    If you are comfortable doing manual file removals use the somewhat more difficult method:
    http://support.apple.com/en-us/HT203987
    Also read the articles below to be more prepared for the next time there is an issue on your computer.
    https://discussions.apple.com/docs/DOC-7471
    https://discussions.apple.com/docs/DOC-8071

  • TS2570 how do i locate and restore my previous itunes library?

    How do i locate and restore my previous i tunes library?

    I have the same question.  I opened my itunes and there is only songs that I have brought for the last 2 years.  What happened to all the other songs I bought?
    If I'm in the wrong place to ask this question, do you know where I can find some HELP?

  • Imac 333mhz/96mb battery location and replacement

    My fruit colored imac 333mhz/96mb is not turning on. I suspect that the original battery has died. Where is the battery location and replacement information?

    Thanks! I also just found this: http://www.djonmac.com/battery/changebattery.html

  • How do I find and replace text in PHP files?

    How can I in CS3 make sitewide changes to the text in PHP pages without changing variable names etc that have the same name?
    For example if I have an installation of a PHP forum and I want to change every instance of the word 'forum' to 'message board'...
    If I used the 'inside tag' search with " as the tag, then if "" contained a variable called 'forum' it would also be changed and therefore corrupt the code....
    Is there a simple way around this?
    Thanks!
    I'm using CS3 on Windows Vista.

    It looks like you're trying to find and replace source code, so you may be able to look at the various places that are looked at when finding and uncheck the ones that don't apply.
    But, if it's all source code then that won't help.  One thing that may work is to expand the search option - for example if the work "forum" that you're wanting to change it preceded by another word, or character or something that sets it apart, then do you find on that. You can expand that search phrase as far out in either direction that you need to to make it different, if of course that is practical in your situation.
    The only other way I can think of is to somehow create an exception rule, but I'm not sure if that's possible or how to do it.

  • How do I search and replace for invisibles in Pages 5.5.2?

    Three related problems all involving search and replace for invisibles.
    1. A block of text where all double returns need to become single returns.
    2. A block of text where all returns need to be replaced with a single word space.
    3. A block of text where all double word spaces to be replaced with a single word space.
    Pages 09 could do all three this handily. How can these be done in Pages 5.5.2?
    Appreciated.

    Here are screenshot of my attempts to make reducing double returns to one. First up selection of a double return:
    Copy to the clipboard. Do a Command-F. Here's the resulting dialogue:
    I paste in the contents of the clipboard:
    Note the Search field no longer has an empty slot selected. Something is clearly in there, but no instance of whatever is has been found. Nevertheless, I proceed to set up the Replace field by selecting a single return:
    Copy that to the clipboard and paste into the Replace field:
    Nothing to search for and therefore nothing to replace. Am now wondering what that little scoop to the right of the eyeglass icon might indicate. Clicking on it reveals this:
    Definitely not "a solution that just works."

  • How do I search and replace in comments in Acrobat XI?

    I use a Mac and just downloaded Acrobat Pro XI specifically to search and replace phrases in comments in a large PDF. According to this Adobe Help page, I should be able to do this: https://helpx.adobe.com/acrobat/using/searching-pdfs.html I copied the relevant section below and marked with ***. However, I don't see I don't see an arrow for the options that would allow me to include comments. I understand how to include the comments with advanced search, but I want to also replace text. I also checked in preferences and searched the forums. Could someone please advise and maybe include a screenshot, if possible. Thanks!
    Choose Edit > Find (Ctrl/Command+F). 
    Type the text you want to search for in the text box on the Find toolbar. 
    To replace text, click Replace With to expand the toolbar, then type the replacement text in theReplace With text box. 
    (Optional) Click ***the arrow ***next to the text box and choose one or more of the following: 
    Whole Words Only 
    Finds only occurrences of the complete word you type in the text box. For example, if you search for the word stick, the words tick and sticky aren’t found.
    Case-Sensitive
    Finds only occurrences of the words that match the capitalization you type. For example, if you search for the word Web, the words web and WEB aren’t found.
    Include Bookmarks
    Also searches the text in the Bookmarks panel.
    ***Include Comments***
    Also searches the text of any comments.

    Here are screenshot of my attempts to make reducing double returns to one. First up selection of a double return:
    Copy to the clipboard. Do a Command-F. Here's the resulting dialogue:
    I paste in the contents of the clipboard:
    Note the Search field no longer has an empty slot selected. Something is clearly in there, but no instance of whatever is has been found. Nevertheless, I proceed to set up the Replace field by selecting a single return:
    Copy that to the clipboard and paste into the Replace field:
    Nothing to search for and therefore nothing to replace. Am now wondering what that little scoop to the right of the eyeglass icon might indicate. Clicking on it reveals this:
    Definitely not "a solution that just works."

  • How do you find and replace "within selected text" in a textedit document (version 1.8, mountain lion)

    In the textedit version on Snow leopard it was possible to search and replace within a peice of selected text only i.e. not the entire file. This was a very useful feature because you could select a paragraph and replace all occurences of word1 with word2 within that paragraph only! This feature appears to be missing from the mountain lion version of textedit (version 1.8). Or can anyone tell me how to do it ... ?

    Having 46 people view a post without replying is not unusual. Some people look at a question to see if it's something they'd like to know the answer to, and then come back  when it has eventually been answered.
    I'm not sure if you need to escape forward slashes in Dreamweaver's Find and Replace dialog box, but I normally do because both JavaScript and PHP normally use forward slashes as delimiters to mark the beginning and end of the regex like this:
    var pattern = /[A-Z]{4}/; // JavaScript
    $pattern = '/[A-Z]{4}/';   // PHP
    When a forward slash appears inside the regex, you need to escape it with a backslash to avoid confusion with the closing delimiter.
    As you have worked out, a capturing group is created by wrapping part of the regex in parentheses.
    If you want to match exactly 38 characters, you can use [\S\s]{38}. That includes spaces, newline characters, symbols, everything.
    If you're trying to find everything between two tags, you can do this:
    (<\/tag_name>)([^<]+)
    The closing tag is captured as $1 and everything up to the next opening tag is captured as $2.
    Learning regular expressions is not easy. I don't claim to be an expert, but I enjoy the challenge of trying to solve them. If you're interested in regular expressions, there are several books published by O'Reilly. "Mastering Regular Expressions" is the ultimate authority, but it's a difficult read (not because it's badly written, but because of the complexity of the subject). "Regular Expressions Cookbook" is very good. There's also a new "Introducing Regular Expressions", but I haven't read it.

  • How can i find and replace xml tags?

    Hi, i am using xml in my workflow and want to be able to remove certain tags if they contain particular text.
    here is an example of my xml structure…
    <entry>
        <name>DEFAULT</name>
        <tel>DEFAULT</tel>
        <address>DEFAULT</address>
    </entry>
    I am using this initial structure to set the paragraph styles to be followed when the xml data is imported.
    This leaves DEFAULT in place wherever an entry doesn't have any content for that field.
    I want to be able to import my XML then run a script that removes any tags that include DEFAULT, - I need the entire xml tag to be removed not just the text, if i do a normal find and replace it will only remove the text not the tags which is causing problems with styling. I also want to remove the end of para/return (^p) that i've placed at the end of the line. So it would be the same as opening up story editor and removing the content + tags + hard return in there, but i want to automate the process…
    So i think this is what i need to search for in each case
    "<name>DEFAULT</name>^p"
    and i want to replace it with nothing ""
    Can this be done through scripting (ideally javascript)?
    I have a little knowledge of javascript but am not sure how to search and target that kind of string in indesign...
    using indesign cs5
    many thanks

    Hi,
    Script should do it in two steps:
    1. find all occurences of i.e. ">DEFAULT<"
    2. remove whole paragraph which is a found_text's container.
    For example this way -JS - (a textFrame filled with your text should be selected) :
    var mStory = app.selection[0].parentStory;
    app.findTextPreferences =  null;
    app.findTextPreferences.findWhat = ">DEFAULT<";
    var myF = mStory.findText();
    var count = myF.length;
    while (count--)
         myF[count].paragraphs[0].remove();
    rgds

  • How can I search and replace fonts?

    iOS 7 doesn't support the Adobe workhorse fonts I've most relied on for years, and arbitrarily changes them to iOS built-in fonts when I link my standard documents and templates to the iPhone, via iCloud. There's no apparent logic to how it does this; a Pages document in Minion Pro, a serif font, gets changed to the sans-serif Helvetica. Myriad Pro may come out in Times New Roman. I accept that the iPhone's limited number of fonts makes translation necessary, but does Pages offer a way in which I can search and replace inappropriately substituted fonts for more logical alternatives?

    You noticed the first one yourself: the Found item list seems to randomly jump around the document -- I believe you are correct in your observation it may be due to the object construction order. That tells me, by the way, something about your lot numbers that tou didn't mention: your text is not one continuous long threaded story, but it's all or partially in disconnected etxt frames. The Found list does return everything inside a single story in the correct order, but it goes over each separate story in the order they were constructed.
    The only solution is to gather all of your lot numbers, *re-sort* them according to the page number they appear on (and some sort of Worst Case Scenario is when you might have more than one lot number frame per page; in that case you also need to sort by textframe, top to bottom -- yet even worse is if you also may have these textframes side by side!).
    Only then you have a reliable counting order.
    This isn't too bad. We can just extend the method I offered for sorting top-to-bottom/left-to-right in Re: Working around the frame selection order issue in CS 4 and make it also include page numbers:
    function byPageYX(a,b) {
        var
            aP = a.parentTextFrames[0].parentPage.index,
            bP = b.parentTextFrames[0].parentPage.index,
            aY = a.baseline[0],
            bY = b.baseline[0],
            aX = a.horizontalOffset[1],
            bX = b.horizontalOffset[1],
            dP = aP-bP,
            dy = aY-bY,
            dx = aX-bX;
        return dP?dP:(dy?dy:dx);
    myResults.sort(byPageYX);
    Or something like that.
    As for actually implementing the above I cannot be of any help with Applescript.
    Once we're dealing with sorting I think you're much better off in Javascript anyhow.

  • How do I locate and install Activity Monitor?

    I cannot find Activity Monitor on my computer.
    When and how it disappeared I do not know, but is there anyway of locating and installing a copy without a complete re-install?

    "Activity Monitor" is stored on the Utilities folder, inside the Applications folder. Before reinstalling OS X, I recommend you to search it with Spotlight.
    To search it in Spotlight, press Command and Space keys so, if you have a look at the top right of the display, Spotlight will appear. Then, type "Activity Monitor" without quotes, and check if the application appears. If it appears, it hasn't disappeared because you can use it. If it doesn't appear, you have to reinstall Mac OS X. Insert the Mac OS X disc, hold the C key while your computer is starting, and reinstall Mac OS X. You won't lose anything from your computer

  • How do I locate and delete the "other" used space on my Ipod 2 ?

    Not only did I get curious about the Autofill button and lose all of my music on my Ipod Nano 2nd Edition but now my Ipod is showing that I have 90% Other stored on it and can't figure out how to locate and delete it! I have looked all over online and nothing seems to work because mine is a different model.. :/  Someone HELP me PLEASE!

    You probably have data corruption.  You may want to do a Restore, as the simplest fix.  The Restore button is on the iPod's Summary screen in iTunes.  It will erase the iPod, reinstall its software, and set it to default settings.  All data will be erased, including whatever is taking up space as "Other."

Maybe you are looking for

  • Lightroom slideshows in dreamweaver

    I'm new to Lightroom. After creating a slideshow, how can I use it in my website in Dreamweaver?

  • Plz give the ans

    1)why we used tiff file in  scripts? 2) if we have a quality client 300 in this client is it works scripts? 3) what is difference 4.6 c and 4.7 EE version? 4) give me some idea about ecc 6.0  version? 5) what is the purpose of code inspector? 6) in L

  • Safari in Lion crashing on opening

    I click on Safari, it bounces in the dock for a few seconds and then I get an error page with "Safari quit unexpectedly" and then all this gumpf in the Problem Report. Does anyone have any idea how to rectify this? Process:         Safari [397] Path:

  • Inkjet Failure Hp Photosmart 3310 How to resolve issue?

    Can anyone help me with troubleshooting methods to resolve an inkjet failure with a Hp Photosmart series 3310 Printer Please?

  • I can not send e-mail as i get an authentication rejected message

    I just purchased a new IMac and had no problem sending e-mails for a few days until after I had been asked for my server password and entered the wrong one by mistake. Shortly after that when Itry to send an e-mail I get a message "Authentication rej