Managing multiple documents.

Hi,
In a text editor, i'm able to create multiple document (each document is an instance of a classe named MyDocument).
I keep a list of my opened document with somethin' like Vector or ArrayList. Each time a document is created I add a menu item under menu "Window":
MyDocument npadDocument=new MyDocument(npDesktop);
vecDocumentList.add(npadDocument);
JMenuItem mnuWindow_doc=new JMenuItem("document title");
mnuWindow_doc.addActionListener(new java.awt.event.ActionListener()
public void actionPerformed(java.awt.event.ActionEvent eventDoc )
//---- here i want to switch to appropriate window
Inside the 'actionPerformed' method, how to know which document to set focus on ?
If it's unclear, ask questions, i'll put more informations.
Thanks again,
M.Carpentier

ok....
Here what I tried:
final NotePadDocument npadDocument=new NotePadDocument(npDesktop);
vecDocumentList.add(vecDocumentList.size(),npadDocument);
JMenuItem mnuWindow_doc=new JMenuItem(npadDocument.getFileName());
mnuWindow_doc.addActionListener(new java.awt.event.ActionListener()
public void actionPerformed(java.awt.event.ActionEvent eventDoc )
{ npadDocument.showWindow(); }
this does what I expect. But what is the effect of using final ? I already tried without the final attribute but didn't work, why ?

Similar Messages

  • Managing Multiple Documents in a PDF

    I was just hoping to get some advice for my project.
    I have created a User's Manual for my company.  The manual was made in Word with the intent of porting it to a PDF.  Each section in the manual has its own Word document.  I then did the "Combine in PDF" option to put them together. In the PDF there are a number of links within the documents, specifically on the table of contents as well as bookmarks.
    The problem lies in the updating of the manual.  I will not be maintaining the manual so I have to document an easy way for other people to make changes to the manual.  The best way I could find would be for them to make changes to the Word document, turn it into a PDF, delete those pages (that section) from the PDF, and then re-insert the section via Document>Insert pages.  Lastly, you'd have to go back and update any links to those pages, as well as add bookmarks for those pages and then update the page numbering.
    While this method works, Acrobat doesn't recognize the inserted pages as a document, but rather as a bunch of unique pages.  Whereas immediately after making the initial PDF file it does.  This is only a real issue because when it's recognized in its unique parts it's easy to delete the pages as a group.
    Mainly I'm asking - is there a better solution to managing a bunch of Word documents (roughly 14) in a PDF?  If not, is there a way to get Acrobat to recognize the sections of the combined manual as individual documents?
    This is really the first time I've used Acrobat, so I was hoping for some experienced user's advice.  I'm open to any and all suggestions/recommendations.
    Thanks!

    <on high horse>The best way to do this is not to use Word! You really want to create all your links, TOC, Index, etc in your original program. Update the files as needed and regenerate the pdf file so as to keep everything consistent. My recommendation would be FrameMaker, though these days perhaps InDesign would be a candidate for the mix.
    I know the arguement for using Word. We own it, the manual is finished, the people that will maintain it know how to use it. However, they will not know how to manage the final product in Acrobat, they will not be that conversant with Word's capabilties for making links in Word, creating TOC, Index, and managing the links in Word. In the long run FrameMaker is the better choice and will take less work. In fact, with the Technical Communications Suite's Robohelp you can also generate html files for the help system and use Captivate to make the content more compelling. Frame can import the Word files you created and if you did a good job of using styles the work of conversion from Word to FrameMaker won't be that hard. Remember well done user manuals are never finished, they are just the initial version until the next product update!
    If you really want to keep Word, Robohelp can convert your Word files to an html based help system as well.</on high horse>
    Sorry if I'm not being more helpful. Maybe someone that uses Word extensively can comment on how Word can do all of the above without needing to resort to manual linking in Acrobat. It may actually be possible.
    ...Mike

  • Download of multiple documents from Solution Manager

    Is there a way to download multiple documents from Solution Manager SOLAR01 project documentation tabs from multiple nodes rather than going one by one?

    Hi,
    At the application there is no such functionality but I belive if you try to download it directly from knowledge warehouse, you'll be able. You'll just need to pay attention to which folder is stored the documents. For this check the wiki page for documents in solar01 and solar02.
    http://wiki.sdn.sap.com/wiki/x/rBoMDg
    Kind regards, Fabricius

  • Can I apply a Rights Management policy to multiple documents in a folder at the same time using Adobe Acrobat Pro?

    How can I apply a single Rights Management Policy to multiple documents in a folder at the same time instead of applying it to each document individually?

    I don't know of a method with Acrobat, why not set up a watch folder and just drop all the files in that folder to have rights applied.  You might want to look at the workbench help if you've not done this before.

  • How do I manage multiple itunes devices ?

    How do I manage multiple itunes devices with other family members on a single computer?
    I do not want to share libraries.

    There's a couple of options (other than using specified playlists or manual management out of a single library).
    The following document is worth checking through: 
    How to use multiple iPods, iPads, or iPhones with one computer

  • Acrobat 9 hangs with multiple documents open

    HP pro 6200 4 G RAM, Win7Pro, Acrobat 9(fully updated), single computer affected, multiple users, documents are from C drive, network, and USB
    I've run a repair install, removed the popups/lines and other markup notifications, held shift down when starting to not load add-ins, logged in as another user, updated video card drivers, sprinkled fairy dust, changed desktop resolution(set at 800x600 per user preference), opened same documents on another computer with no problems, and yet I still cannot find out what is causing Acrobat 9 to hang after multiple pages are opened.  Sometimes it will hang completely and I have to go into task manager and kill it, other times the page has a hard time painting as I scroll.  The memory usage doesn't go over 100k in task manager.  If we  close out of the documents with task manager and open them back up it is fine for a while, then it starts back up again.  This seems like a common issue but all the common fixes I found aren't working.  I was not able to find a "preferences" folder under his user folder to delete those settings.
    Anyone have any other ideas?

    From: <[email protected]><br /><br />| I need to scan multiple documents and the "hide scanners interface" is grayed out. I<br />| recently upgraded from Acrobat 8 professional, which occassionally would allow me to<br />| scan multiple docs. Called Adobe and they suggested I upgrade to 9. Still can't scan<br />| multiple docs at a time. Need to set my scanner as not being recognized as a flatbed.<br />| HELP PLEASE!!!<br />| Apparently has something to do with the scanners interface setting.<br /><br />If you really need to scan multiple documents then what you may realy need is a scanner <br />with and Automatic Document Feeder (ADF).<br /><br />-- <br />Dave

  • Manage multiple InDesign and pdf files

    I'm looking for help managing multiple pdf files created from InDesign. I make several catalogs from multiple InDesign files. Each InDesign file could be used in multiple catalogs. These catalogs are output as pdf files. The pdf files are sent to print and also live on our website. I could update one InDesign file for a particular catalog. That same file could also be in another catalog that should be updated as well. The online version would need to be updated also. This doesn't always happen. There are so many things that have to be updated manually.
    I know this is confusing and vague. I'm guessing there has to be a way to not have to do everything manually. There has to be a smarter way to do this.
    I would appreciate any suggestions or even a push in the right direction for research.
    Thanks!

    You know you can place InDesign files directly into another InDesign file.
    Then when you update the master indesign file you will be prompted to update your links in any other document that this appears in.

  • STSUPLD.DLL not recognizing as an add-on; upload multiple documents disabled

    On my client system, Windows XP, Office 2007 and IE8 is installed. It is a 32 bit system. On the Sharepoint site, "upload multiple document" feature is disabled. After searching for the cause, I came to know about the STSUPLD add-on that needs
    to be enabled otherwise it remains greyed out. So I copied the DLL file to C:/.../Office12/STSUPLD.DLL
    IE does not detect any add-on when I start a new browser session. Between copying the DLL, and starting a new browser session, followed by checking Tools-->manage add-ons, am I missing an important step? (like installing...etc.)
    Thanks

    easy way is, if you can install the Office client on the server, the control will be available.
    also check this post for further detail:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/1a5af332-ed21-41ee-bf64-9122a7439623/sharepoint-not-activating-stsuplddll-upload-mutliple-documents-greyed-out?forum=sharepointgeneralprevious
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • How to manage multiple ipads in business

    Does anyone have to manage multiple iPads in a business environment? These are my concerns:
    Be able to push purchased apps to the devices
    Be able to use fine my iPad from icloud.com
    Allow people to purchase apps on their own if they like
    Does the number of iPads per apple ID exist for iPads too? I have 10 iPads to setup for users

    With ten devices it could be a toss up over hand management & a MDM solution.  Check out the layered model.
    Use VPP.  Select an MDM.  Read the Google doc below and nsdjoey write up.
    IT Resources -- ios & OS X -- This is a fantastic web page.  I like the education site over the business site.
    View documentation, video tutorials, and web pages to help IT professionals develop and deploy education solutions.
        http://www.apple.com/education/ipad/resources/
        scroll down after all the pretty picture.  Click on the words "For It".
        business site is:
        http://www.apple.com/lae/ipad/business/#browse-it-resources
        If necessary, scroll down until you see the Browse IT Resources button.  Click on button.
    Joe Rowe's Excellent guides
    IT managers who are new to configurator and managing a cart of ios devices:
          https://docs.google.com/document/d/1SMBgyzONxcx6_FswgkW9XYLpA4oCt_2y1uw9ceMZ9F4/ edit?pli=1
             [ original announcement  -- https://discussions.apple.com/thread/4256735?tstart=0 ]
    Quick help presentation for students:
         https://docs.google.com/presentation/d/18937JdleX2gymtSb8zfbDczV-76BdR2DIfCV9eJi yOE/edit#slide=id.g1b776944_0_224
    good tips for initial deployment:
    https://discussions.apple.com/message/18942350#18942350
    https://discussions.apple.com/thread/3804209?tstart=0
    See nsdjoey writeup.  See third post.
    https://discussions.apple.com/message/22286109#22286109
    Institutions in the USA and other countries can use the App Store Volume Purchase Program (VPP) to buy Apps.
    https://support.assistiveware.com/index.php?pg=kb.page&id=54
    "Deploying a great quantity of iOS devices means creating a great quantity of Apple IDs. This script allows automated Apple ID creation from a spreadsheet."
    http://www.enterpriseios.com/wiki/Apple_ID_Automation_Builder
    There are three ownership models:
        Personal
        Institution
        Layered. combines personal & institution.
    Watch this apple video on layered ownership.  It education based, but that's OK.
    http://www.apple.com/education/tutorials/#ios-layered-ownership

  • Help Required - Upload Multiple Documents functionality sometimes disappears in SharePoint 2010

    Hi All,
    We have a web application created in SharePoint 2010 & there we were facing an issue of not able to Upload multiple documents. After doing search on google, we have found that
    pre-requisites for this functionality to be working properly are as follows:
    Client Integration needs to be enabled for the web application.
    The STSUpld.UploadCtl IE add-in must be enabled. (located in C:\Program Files (x86)\Microsoft Office\Office12)
    The 32 bit version of Internet Explorer. The 64 bit version does not support it and neither do other, non IE, browsers.
    Office 2003 or newer on the client.
    After meeting all the above requirements, We are now able to see the Upload Multiple Documents link but we are failing in below 2 scenarios:
    On some machines it is working fine & on some it is not.
    On some machines, this option is available for sometime & sometimes it disappears.
    If any one of you have experienced the same problem, then please help us with your valuable suggestions & possible solution for it.

    Hi Manish,
    We've just been experiencing your initial issue with Office 2007 clients not being able to use the multi-file upload functionality.  Sure enough....turning on presence information in Central Admin fixes the issue.  The strange thing is though that
    when presence is turned off, Office 2003 and 2010 clients still work fine and it's only 2007 clients that fail.  Also this issue appeared to only exist for us inside applications that have been upgraded from MOSS2007 to SP2010.  Any new applications
    of even new site collections within an upgraded application worked fine across all 3 Office versions.
    Coincidently, we're also experiencing the more recent issue you've come across with files not uploading after clicking OK in the ActiveX.  Nothing happens.  Office 2010 clients work fine but 2003 and 2007 clients just don't upload the selected
    files.  We've found a workaround which "fixes" the issue but brings it's own set of problems so it's not ideal.  Here's what we've done...
    1. Open IIS, and navigate to the web where you want to use multi-file upload
    2. Select Handler Mappings and Add Script Map
    3. Set Request Path - shtml.dll
    4. Set Executable - C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\ISAPI\SHTML.dll
    5. Set the name to something meaningful - Multi File Upload
    6. Leave the Request Restrictions as default
    This should fix the issue with files not uploading but unfortunately it also prevents SharePoint Designer from accessing the site.  For the application where we desperately need multi-file upload we can manage without SPD access so it's not the end
    of the world but not ideal.  We've actually got an outstanding incident logged with Microsoft to resolve this issue but they've yet to find a solution for us.  We suggested to MS that we update authentication to Kerberos from NTLM and retry as we
    seem to be getting 401 errors in the call stack so thought that could be related.  We've not yet configured Kerberos so I'm not sure whether this is a solution or not.
    One other point worth mentioning is that SharePoint Designer 2010 (which is free) installs the latest version (14) of the Upload ActiveX and with this installed the uploads work as expected.  Also if you have Silverlight and SPD2010 installed then you
    get a Silverlight control to do the upload which also works fine.  Again, not ideal as rolling out SPD 2010 to affected clients isn't really a suitable solution.
    Sorry I can't be any more help.  Hopefully my findings might point you in the right direction.  If you do find a solution (other than the IIS handler mapping) then please re-post here,
    Good luck,
    Ben

  • Multiple Document Publishing

    Does anyone knows how to add a button to SharePoint ribbon that will enable users to select multiple documents and publish major versions all at one?
    I have users who have a need for this option rather than using Manage Content and Structure feature. I know this can be done through coding but I would need some guidelines.
    Thank you in advance.

    Hi Joe,
    According to your description, my understanding is that you want to customize a ribbon button to publish multiple documents at one time in SharePoint 2010.
    There is a good blog, and it provides custom ribbon button to bulk publish in SharePoint 2010, please take a look at:
    http://bernado-nguyen-hoan.com/2012/05/09/custom-ribbon-buttons-to-bulk-publish-approvereject-cancel-approval-and-unpublish-multiple-items/
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • How to manage custom document properties (e.g., company name, project name)

    Hi,
    How to manage custom document properties (e.g., company name, project name, event date...) in Apple iWork Pages like it is possible in Microsoft Office Word ?
    The idea is to simplify the management of multiple instances of same piece of information in a document by writing them once as a "properties" of the document that can be referencing in different places of the document. Changing the property value, will automatically change all its instances.
    Thanks in advance for your help

    Thanks for your help Peter.
    Search-Replace and Auto-Substitution are not requivalent for me since I'm looking for something more complex.
    Suppose you have a document about an Event which occur on a specific date (e.g., 11-09-2003).
    In your document, you may be interested in...
    - sometimes display the date as '11-09-2003',
    - sometimes display the date as 'Novembre, 2003',
    - sometimes display the date as 'Sunday, November 9, 2003'.
    With a document property, you would be able to define the EventDate as 11-09-2003, and then define different specific format (e.g., 'mm-dd-yyyy', 'mmmm, yyyy'...) for each reference to the EventDate document property.
    Using Search-Replace of Auto-Substitution, it will be painful since you will have to define as one token per format of a document property (e.g., EventDateAsMMDDYYY, EventDateAsMMMMYYYY...).
    More than that, suppose you have a Numbers table inserted in your Pages document.
    You may be interested in using some document properties in formulas.
    This can't be solved using Search-Replace.
    But its ok, I will wait until this feature will be supported in Pages.

  • How to manage multiple locations for Item (Management warehouse locations)

    Is there any way, with UDF and Formated Search, to manage multiple locations for Item in the same warehouse
    I must have several (at least 2) locations for the item in the Warehouse and that  i enter in goods receipt and have track of this location and search possibilities at sales order by item and WHS.
    read carefully and imagine how (Management warehouse locations)
    I added a user table '@Location' who linked to a user field 'U_Location in Item master data --> lnventory data line and an ather user field 'U_Location' in sales order
    I met the value of location in the table (list of locations for any warehouse), I select the location of each item while receiving merchandise in the user field of inventory data line (Item M data) and this value appears in the sales order 'U_Location' user field ( only the location value in the default warehouse for this Item)
    or
    create an user field 'location' in Good receipt PO to fill it while receiving merchandise that appears in the sales order to give possibility to find/select the location of the item at this order and in Item master data
    I think we will use all these tables and there is a relationship between all.
    @LOCATION
    PDN1
    OITM
    OITW
    OWHS
    RDR1
    a piece of code has been proposed, but it is not so simple
    SELECT T0.U_Location FROM [dbo].[OITM] T0 WHERE T0.ItemCode = $[$38.1.0]
    Thanks,
    Ouchen

    I believe you are talking about defining BIN's (locations) within a Warehouse.
    This is quite possible and has been explained / discussed on this Forum a few times in the past.  Though I am completely clear on how you would like to implement this I could give you some guidelines..
    Creating a @location UDT is correct to maintain list of warehouse locations
    UDF in Items - Warehouses (Item Master ..Inventory Data Tab..Rows)
    UDF in Marketing Document Rows (When you add a UDF here U_Location then this will available in all marketing documents, both AR and AP)
    You will define a location for an Item in the Item Master....
    In the GRPO..you can use FMS to list the location/s for the Item being received from the Item Master and the User can Select it.
    In the Sales Order, you can select the location from which the Item could be picked..
    Let me know if your process / ideas are different
    Suda

  • Managing multiple devices on 1 computer

    We recently purchased ipod shuffles for each of our kids. I have a ipod nano that i've had for years. How do I manage multiple devices through iTunes?

    Hi, welcome to Apple Discussions.
    *How to use multiple iPods with one computer*
    The Apple support document How to use multiple iPods with one computer suggests a number of ways. I use method two (Sync with selected playlists) with a slight twist. Rather than regular playlists I set the grouping field to indicate which users should receive which tracks and create smart playlists based on the content of this field.
    e.g.
    "Alice's Tracks" is "Grouping contains Alice" + "Kind contains audio"
    "Bob's Videos" is "Grouping contains Bob" + "Kind does not contain audio"
    Tracks that both Alice & Bob want on their iPods have the grouping set to "Alice/Bob"
    etc.
    I currently manage our family's five iPods using this system, each getting a different selection to suit their tastes and the capacity of their iPod. An advantage of using the grouping field is that it is stored in file tags (for non-wav audio files anyway) so that it is relatively easy to recreate the playlists should the iTunes library get trashed. Also useful if you move files about manually as playlist membership is preserved when you delete & re-import the tracks.
    tt2

  • I have multiple documents how can I combine them into one document?

    I have multiple document files in Pages. How can I combine them into one document?

    Menu > View > Page Thumbnails > click on the thumbnails > Copy/Paste into thumbnails of other document
    Peter

Maybe you are looking for

  • How can I change my e-mail on icloud to match my Apple id?

    I have recently changed my phone and got a new Apple ID, unfortunately it keeps popping up to enter the password on i cloud for my old Apple id which I cant remeber..... how can i change it so its the same??

  • Credit memo uses base document total and not balance due?

    Using SBO 2007 sp00 pl42 i have the problem that, having an AR invoice with a partial incoming payment, leaves an open balance of the invoice. Later i use the "copy to" function, to the credit memo, but it uses the whole original amount, and not only

  • Creating a vignette in Premiere Pro CC 2014

    In another thread, I was criticised for the way I chose to create a frame vignette in Premiere Pro. I've always created a vignette using the circle effect on a transparent video layer, inverting it and applying a feather.  The result can be made fair

  • Customer clearing process (F-32)

    Hi, Please help me with this scenario. Please provide the some solutions to automize the process of customer clearing on FIFO basis. as it take lots of manhour to clear near about 1000 customers account individually on every month. so please guide me

  • FICO Tables  G/L account group name  text

    Hai         I'm developing an Report  in ABAP , I would like to get the  G/L account group & its text , But am not getting account group text ,   G/L account group field is available  ( SKA1-KTOKS )  & ( T077S  Pooled  table , i could't find any TEXT