Q:  Window Titles for Identically Named Objects and Views

How does such an application described on
http://java.sun.com/products/jlf/at/book/Windows8.html#50028
behave when there are 4 Windows and Window #2 is closed ?
Will 3 and 4 renumbered to 2 and 3 ? or Do they stay and the next Window opened becomes #2 ?

Aside from testing it yourself, reading the link,
you the programmer must add "something" to identify
each windows...
How shall I test it ? - I don't think SUN is giving
SMC away for free ...Don't need SMC, it was used as an example, It could be a text editor with multiple windows pointing to the same file object...
>
so following that logic, the next window that gets
opened will be "5"...
How do you know ? - Is there a reference
implementation of a swing program ???
Best explained in this statement from the link...
If multiple primary windows show views of the same object, distinguish each of the windows by appending the suffix :n to the object name in the window title
So lets say that I am using multiple Windows (like JFrame) to display the same object... Then as part of the opening sequence for each window would do a check to see if it is the same object, if so, then it would increment an int like int windowNumber; then use the setTitle("myObjectname" + windowNumber)
since the int windowNumber increments by one each time a new window opens up displaying the same object, then logically it I have 4 windows open, they would be numbered 1-4 with the next one being 5 regardless of whether the other windows are open or not...
Unless I wrote some code that upon closing a windows, it re-numbers the window... Which brings us to this question below...
you would need to program something ( like a method
) that renumber your windows...
Really ?!? - That's why I'm asking: HOW should it be
renumbered ???Well this would be the fun part...
each window would have a int variable to indicates is number if its the same object...
each window object will be kept in a list...
upon closing a windows, it will check all windows containing the same object who ID number is greater than the window ID number of the closed window and decrement them by one... so if window with ID number 2 gets closed, then window with ID number 3,4,5 6 gets decremented by one making its 2,3,4,5 respectively...
Which means that you will have to create a method that upon closing a windows with an ID number, call the decrement method that iterates through the list and decrements the ID number...
psuedo code:
upon windows close call renumber menthod...
renumberMethod ( windowList,ID , object)
for (int i=0; i < windowList.size() -1; i ++){
            if ((windowList.getObject() ==object)&&(windowList[i].getID() > ID){
windowList[i].decrementID();}
//... some code...
decrementID(){
--IDnumber; // where ID number is an instance variable of the Window object
setTitle(ObjectName + IDnumber);
Or something along these lines...
- MaxxDmg...
- ' He who never sleeps... '

Similar Messages

  • Change icon & window title - for Mac projectors? (but not Zinc)

    I need to change the icon and window title for a Mac projector made with CS5 (on Windows).
    I know there are a few solutions for the Windows exe.
    But I can't find an affordable solution for the Mac projector. Any ideas?
    I tried the Windows version of Zinc, it created exactly what I need for both the PC and Mac - but there's no way I'm paying $800+ for Zinc just to change the icon and window title.

    My feeling was that there was a residual window spec left
    over from a previous build. (You can go on adding windows via
    Project>Windows rightclick.)
    Now - if you Open <yourprojectname>.hpj the project
    summary is displayed in dialog format. The first line reads 'This
    file is maintained by HCW. Do not modify this file directly.'
    Nevertheless, it is possible to do so - doubleclick on any of the
    sections to bring up an editable dialog on its settings. There are
    buttons at right, too, that replicate several of the doubleclicks.
    I'm annoyed that I can't remember which file stores all this data
    in an accessible form.
    In the General tab of the resulting Windows dialog there are
    the options to Add, Remove and Include window types and enter/edit
    Title texts. It's worth having a look at what's shown here just in
    case there is an Include being copied from another (and possibly no
    longer available?) project file.
    Perhaps try this (having backed up, of course!!):
    1 Note the required spec for your second window.
    2 Open the .hpj windows dialog and Remove any and all windows
    apart from Main.
    3 Open the project and see if the ghost is still there.
    4 Is it??
    (No-one else going back this far?)
    Brian

  • Configuring the browser window title for an iWeb-created page?

    Hello all,
    How do you customize the text that appears in the browser window's title for an iWeb-created page? (e.g., at the top of the browser window where it says "Apple - Support - Discussions - etc."). I had assumed that the the name I designated for the page via the Inspector would be used as the browser window title, but instead iWeb is using the first line of text within the page itself.
    Thanks!

    You can do it with a HTML snippet with the following code:
    <script type='text/javascript'>
    parent.document.title = "name you want to appear at the top of the window";
    </script>
    It takes about a second or two to replace the original text as can be seen in this test page.
    Put the snippet box off somewhere where it won't overlap on any other element. It is invisible on the web page and in iWeb until you click on it. I had to do a Select All to find it just now to get the code.
    OT

  • Read group membership for a user object and populate every group with matching user from another domain

    I have LON\JSmith in LON domain and DEL\JimSmith in DEL domain
    I would like to extract group memberships of LON\JSmith in LON domain and append matching by email (i.e. DEL\JimSmith) user object in every group in LON domain.
    for instance
    LON\JSmith and DEL\JimSmith is the same person and has same email address [email protected]
    LON\JSmith belongs to 3 groups - LON\localadmingroup;LON\univdesktop;LON\globalsurvey
    The outcome of the script should be
    LON\JSmith; DEL\JimSmith    should be in 3 groups - LON\localadmingroup;LON\univdesktop;LON\globalsurvey.
    How can i do it?
    Navgup

    Hi Navgup,
    Please refer to the script below, to query users in other domain by specifying the parameter "-Server" in the cmdlet "get-aduser", and also note I haven't tested the script below:
    import-module activedirectory
    get-adgroupmember "group"|foreach{
    $email=(get-aduser $_.samaccountname -properties *).EmailAddress#get the user email
    Get-ADUser -filter {EmailAddress -eq $email} -properties * -server DomainB.company.com|select samaccountname, memberof}#filter user name and group with the email in other domain
    To get users across domain, please also refer this blog:
    Adding/removing members from another forest or domain to groups in Active Directory:
    http://blogs.msdn.com/b/adpowershell/archive/2010/01/20/adding-removing-members-from-another-forest-or-domain-to-groups-in-active-directory.aspx?Redirected=true
    I hope this helps.

  • Dependency between projects for presentations, BPM objects and external res

    Hi,
    I am trying to create a common project for all our exceptions, presentations and external resources...
    I have updated the properties of the project1 for dependeny on project2(exceptions project)
    but I am not able to see the user exception BPM Objects in the depended project to use...
    Project 1 is having all code that needs to call the BPM objects, presentations and external resources on the Project 2
    but these objects and presentations etc., are not visible to the project1.
    please advice if I need to do anything in relation to configs apart from making the Project 1 properties to dependency --> check box ticked and selecting the Project 2.
    thanks
    Satya

    When you use the project dependency feature, you do not see the BPM Objects in the Catalog. You see them (shown in blue) when you add variables in the process that refer to BPM Objects from the master project. You see them when you create a new attribute in your BPM object that is an BPM Object in the master project. You see them when you use them in logic inside your methods.
    Dan

  • Code for Custom Business Object and Adding/Updating Data

    Hi,
    I would like to update/insert data thru Custom Business Object to sql Server.Pls let me know is it possible in MSA.If yes I would appreciate if you can share the code/Process in this forum.
    Thanks and Regds
    Harish

    Harish
    Depending on what data you update you need to do the following:
    If updating SAP tables or customer tables which are an extension of a SAP object like business partner, material, activity or similar:
    1. Create the extension of the data object via the easy enhancement workbench (EEWB). This will also create mapping functionality from MSA to CRM Server and extend the BDocs.
    2. Go to the BDoc modeler. Find the sBDoc for data exchange (type Write BDoc), that contains your object and check whether the new segment is there.
    3. In the Mobile Application Studio (MAS) you can now create a custom business object related to the standard sBDoc mentioned in 2 which is mapped to the new segment. This way the data exchange happens together with the main object
    4. Drag & drop the fields of the new BO to a new tile, and link that tile to the existing main object in the UI via the appropriate relation.
    If you would create a new business object / BDoc for a set of attributes belonging to a main object and not use an extension of the existing BDoc then the data would get its own flow and when replicating it would not come together with the main data. This can lead to data inconsistencies and in surplus effort administrating this data.
    If you have your own objects not related to a SAP object, you can do it the following way:
    1. Create your own table(s)
    2. Create a Write sBDoc on the table(s)
    3. Create BO's on each BDoc segment / table
    4. (as above)
    Hope this helps,
    Kai

  • Help needed for javax.naming.Context and javax.naming.InitialContext

    I need help on this two..
    I am currently doing a project which required Connection Pooling. And this is the first time i'm exposed to all this.. I know nothing about these files.. But, i manage to get help from someone on DataSource. But i can't find any for naming.context and naming.InitialContext.. Can anyone help me? I need to know where i can get these 2 files or how to configure it.. Thanks! ;p

    This'll help you:
    http://java.sun.com/products/jndi/tutorial/

  • Adjustable window title for ttashadow

    Hi,
    is there a way to overwrite the default window title of a ttashadow
    window, as it occurs as pupil
    application in a classroom situation.
    The common way to tell an X app it's window title,
    like
    xterm -title my_title
    doesn't work in this case.
    Is there an app-defaults file for ttashadow? - like
    Xedit in /usr/lib/X11/app-defaults on a Linux system.
    Kind regards,
    Tankred

    Tillmann Basien wrote:
    Tankred schrieb:
    Hi,
    is there a way to overwrite the default window title of a ttashadow
    window, as it occurs as pupil
    application in a classroom situation.
    The common way to tell an X app it's window title,
    like
    xterm -title my_title
    doesn't work in this case.
    Is there an app-defaults file for ttashadow? - like
    Xedit in /usr/lib/X11/app-defaults on a Linux system.
    Kind regards,
    Tankred
    No! There is no resource for the title.
    Btw. Be careful with Classroom Shadowing.It does not work in a array.
    TABTillman,
    nice to read from you.
    Is the above a known bug/issue with which version of SGD-EE ?
    Thanks,
    Roberto
    Roberto Zini - r.zini<@AT@>strhold.it
    "Has anybody around here seen an aircraft carrier?"
    (Pete "Maverick" Mitchell - Top Gun)

  • Change the Page Title for all the pages when viewing the Reports in Bi Publisher

    Hello ,
    I have a requirement for changing the Page Title for all the report displayed pages on the browser window.

    As far as I know, answer is NO.
    it's very simple answer  Manikandan-S-Oracle
    for 1210326 's requirements there are some places for changes of property "title" and in some pages "title" can be different
    "one place or option for changing" does not exist imho ( may be i'm wrong )
    so you can change places for your needs but not sure what it's adequate
    as example
    ...wls\user_projects\applications\bipdomain\xmlpserver\catalog\navigator.jsp  -->  find <title>
    it changes title in http://somehost:7001/xmlpserver/servlet/catalog
    ... wls\user_projects\applications\bipdomain\xmlpserver\home\home.jsp  -->  find <title>
    it changes title in http://somehost:7001/xmlpserver/servlet/home

  • Windows patching for UCCE 7.2 and IVR

    Just a general question concerning patching windows servers. We are running Windows server 2003 for our UCCE and IVR. Does everyone patch their servers when microsoft releases new patches or how is that done? Fairly new to using UCCE and IVR so I don't want to cause any issues as the system is running pretty smoothly.

    How does the Cisco Impact Assessment figure into the process. It was my understanding that Cisco reviewed the Microsoft patches and then only suggested applying the ones listed in the Impact Assessment as "Impacting". Am I correct in that?
    http://www.cisco.com/web/about/security/intelligence/IA_mar10.html

  • Version 31.3.0 hangs on Windows 7, for 2 IMAP servers and for yahoo

    Just upgraded to 31.3.0 on Windows 7. I have 2 IMAP servers and yahoo accounts configured. Thunderbird client just hangs there (shows Searching... at the bottom), doesn't show any emails. Also, unable to bring up various windows: Tools->Add Ons and Tools->Options do not pop any windows. Worked just fine in previous version.

    what happens when you hold shift while starting Thunderbird?

  • What are some uses for the aggregate object and definition file?

    Can anyone share some examples for using the aggregate object in a Lookout process file? I've spent only a little bit of time with it, but I can't see how it provides any useful functionality. I guess I'm open to suggestions--thanks in advance! JT
    John T. Sampson

    If you want to reuse code in a modular sence than the Aggregate object will work. Although it works best to start the development with the intent to reuse that segment of code.
    Look at the Sequencer Object Example from the Developer Zone. Follow the README file to copy all files into the Lookout/Examples folder. The Help_Template is an Aggregate process that was used many times in different examples for the web. The state file, .l4t, holds the text that gives further details on the development of the example. The Sequencer process has an Aggregate object used in it to open the Help_template.
    Sequence Example

  • [SOLVED] Multiple Dynamic View Objects and View Links - ADF Tree Table

    Hi all,
    I've got a method that creates 3 dynamic viewobjects using this:
                ViewDefImpl Level1ViewDef = new ViewDefImpl("Level1View");
                Level1ViewDef.addViewAttribute("LevelDescription","LEVEL1_DESCRIPTION",String.class);
                Level1ViewDef.addViewAttribute("SetOfBooksId","SET_OF_BOOKS_ID",Number.class);
                Level1ViewDef.addViewAttribute("CodeCombinationId","CODE_COMBINATION_ID",Number.class);
                Level1ViewDef.addViewAttribute("Level1","LEVEL1",String.class);
                Level1ViewDef.addViewAttribute("AccountType","ACCOUNT_TYPE",String.class);
                Level1ViewDef.addViewAttribute("PeriodYear","PERIOD_YEAR",Number.class);
                Level1ViewDef.addViewAttribute("PeriodNum","PERIOD_NUM",Number.class);
                Level1ViewDef.addViewAttribute("PeriodName","PERIOD_NAME",String.class);
                Level1ViewDef.addViewAttribute("PtdActual","PTD_ACTUAL",Number.class);
                Level1ViewDef.addViewAttribute("YtdActual","YTD_ACTUAL",Number.class);
                Level1ViewDef.addViewAttribute("LtdActual","LTD_ACTUAL",Number.class);
                Level1ViewDef.addViewAttribute("BudgetName","BUDGET_NAME",String.class);
                Level1ViewDef.addViewAttribute("BudgetVersionId","BUDGET_VERSION_ID",Number.class);
                Level1ViewDef.addViewAttribute("PtdBudget","PTD_BUDGET",Number.class);
                Level1ViewDef.addViewAttribute("YtdBudget","YTD_BUDGET",Number.class);
                Level1ViewDef.addViewAttribute("LtdBudget","LTD_BUDGET",Number.class);
                Level1ViewDef.addViewAttribute("EncumbranceType","ENCUMBRANCE_TYPE",String.class);
                Level1ViewDef.addViewAttribute("EncumbranceTypeId","ENCUMBRANCE_TYPE_ID",Number.class);
                Level1ViewDef.addViewAttribute("PtdCommitment","PTD_COMMITMENT",Number.class);
                Level1ViewDef.addViewAttribute("YtdCommitment","YTD_COMMITMENT",Number.class);
                Level1ViewDef.addViewAttribute("LtdCommitment","LTD_COMMITMENT",Number.class);
                Level1ViewDef.setQuery(sql_level1);
                Level1ViewDef.setFullSql(true);
                Level1ViewDef.setBindingStyle(SQLBuilder.BINDING_STYLE_ORACLE_NAME);
                Level1ViewDef.resolveDefObject();
                Level1ViewDef.registerDefObject();
                ViewObject vo1 = createViewObject("Level1View",Level1ViewDef);I can create the view objects fine and create a single viewlink between two of them, however i'm getting problems with 2 view links.
    This is how I'm creating a view link:
                ViewLink Level2Level1FKLink = createViewLinkBetweenViewObjects("Level2Level1FKLink1",
                                                        "Level2View",
                                                        vo1,
                                                        new AttributeDef[]{
                                                          vo1.findAttributeDef("Level1")
                                                        vo2,
                                                        new AttributeDef[]{
                                                          vo2.findAttributeDef("Level1")
                                                        "LEVEL1 = :Bind_Level1");
                ViewLink Level3Level2FKLink = createViewLinkBetweenViewObjects("Level3Level2FKLink1",
                                                        "Level3View",
                                                        vo2,
                                                        new AttributeDef[]{
                                                          vo2.findAttributeDef("Level2")
                                                        vo3,
                                                        new AttributeDef[]{
                                                          vo3.findAttributeDef("Level2")
                                                        "LEVEL2 = :Bind_Level2");I can get the data to display on an adf tree table if i'm only using a single view link, but when i try and implement 2 view link (for 3 levels on the adf tree table) i'm getting problems displaying the data.
    I'm getting the following error:
    Aug 10, 2007 2:44:39 PM oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelPartialRootRenderer encodeAll
    SEVERE: Error during partial-page rendering
    oracle.jbo.NoDefException: JBO-25058: Definition Level3View of type Attribute not found in Level2View_Level2Level1FKLink1_Level2ViewThe thing is, Level3View isn't in the Level2Level1FKLink viewlink.
    I've been reading about something similar here
    BC4J Master-Detail-Detail
    but I am still unsure of what the problem is.
    Thanks in advance.

    I found the answer here:
    http://radio.weblogs.com/0118231/stories/2004/06/10/correctlyImplementingMultilevelDynamicMasterDetail.html

  • ADF launchDialog and window title

    Hello there
    is it possible to set Window title for dialog opened via
    AdfContext launchDialog?
    I am redirecting dialog to another servlet out of Faces context to show some pdf files in the browser.
    What properties are supported for the window properties parameter, except width and height?
    ferdo

    I used the handleLaunch method and then set up the url along with parameters that generates the pdf report:
    public void handleLaunch(LaunchEvent launchEvent){
    parametros = "P_CD_PARCEIRO=" + (codParceiro.getValue()==null?"":codParceiro.getValue()) + "&P_DT_INICIO=" + dtInicio + "&P_DT_FIM=" + dtFim +
    "&P_TP_DOCUMENTO=" + tpDocumento.getValue() + "&P_NU_DOCUMENTO=" + this.retiraMascaraCampo((String)("2".equals(tpDocumento.getValue())?numeroDocumentoCNPJ.getValue():numeroDocumentoCPF.getValue())) +
    "&P_CD_BANCO=" + codigoBanco.getValue() + "&P_CD_AGENCIA=" + codigoAgencia.getValue() +
    "&P_NU_CHEQUE=" + numeroCheque.getValue() + "&P_CD_CLIENTE=" + codigoUnidadeServico.getValue();
    String url = resource.getString("historicocobranca.url") + parametros;
    //Set the url value into the report page (Dialog)
    Object urlObj = url;
    launchEvent.getDialogParameters().put("url", urlObj);

Maybe you are looking for

  • How to compile a java file in a java program

    Hi, I don't know to compile a java file in a java class. Could somebody help me? Thanks.

  • B85-G43 overclocking i5-4570K ?

    What is the situation with overclocking (by adjusting multiplier) "K"-line CPUs on B85-G43 ? Is it possible ? Does it depend on BIOS version or CPU's production date ? I want to buy B85-G43 with i3-4130 but change it in the future to some i5-4...K Th

  • Getting star(*) as the value of the column

    Dear All, i have created a report on the cube which will display the country wise Expected sales Volume and Weighted sales volume. for all country i am getting the correct value but for the country which are NOT ASSIGNED i am getting Star(*) as the v

  • Help with importing lens profile to Lightroom 5.4 for Windows

    Hi, I'm running Adoble Lightroom 5.4 on Windows. I recently bought a Rokinon 14mm lens for Canon and have a couple lens profiles that I want to try out. I have already tried importing to the two following locations below and nothing showed up when I

  • Best device for personal media streaming??

    Hello i am pretty new to the mac world. I Have about ten years worth of digital media ( mostly home movies ,pics and mp3s) that i have brought with me over the years and can't  seem to find a device that will allow me to save and stream this content