Design for mirroring keytyped events for a shared editor

Hi there,
Can anyone suggest a layout for an algorithm which will allow a shared editor to handle keytyped events and have that mirrored in the listening client?
So far the received packets get added to a JEditorPane by a setText() call, but this is useless as it overwrites anything in the JEditorPane.. As every KeyTyped event is fired the packet gets sent to another client that needs to append them to the JEditorPane. But I also need to consider the Caret position, deleted text, tab and space (everything under the sun that could happen when someone is editing text in the JEditorPane).
Has anyone got any suggestions as to how to correctly tackle this problem..
Thanks : -)
Adrian

It may be possible but I still wouldn't do it that way. Mainly because key events aren't sufficient to synchronize two documents. It's possible to change a document without a keyevent occurring -- for example if you press Ctrl-V on many computers, it will paste the contents of the clipboard into the document. I don't know if you get a key event in this case, but even if you do it doesn't tell you enough to synchronize the remote document properly.

Similar Messages

  • Handling keyTyped events in JTable for TAB key

    In my app, I have a JTable. Some columns are non-editable.
    I have attached a keyListener to the table and have overridden keyTyped() and keyReleased() methods.
    In keyReleased(), I do something depending on the key code. For example: if its the VK_DELETE, I delete the row. If its some other user configured key, then I show a popup dialog where the user can enter some data, etc...
    In keyTyped(), I first check if the column is one of the specific columns. Then I get the keyChar. After this, I show a dialog and pre-populate a JTextField on this dialog with that keyChar.
    My issue is that 'TAB' key events arrive in keyTyped() and not in keyReleased(). As a result, the dialog is shown and the tab takes place inside the JTextfield which is incorrect.
    I would like to ignore TAB keyTyped events. When I look up the keyCode in keyTyped() method, it is 0. So there is no way for me to tell what key was typed.
    How can I ignore TAB events in my keyTyped() method?
    thx

    I now do the following to determine if TAB key has been typed
    public void keyTyped(KeyEvent e) {
    char c = e.getKeyChar();
    if (c == KeyEvent.VK_TAB) {
    Is this correct ?
    Edited by: tsc on Sep 28, 2007 12:40 PM

  • Design for redundancy of access switch

    hello all,
    I have the following design for a site:
    Provider delivers channel with HSRP redundant routers, but access level in not redundant and represented by one switch.
    Am I correct that there is no way no provide redundancy on access level only with access switches or there are any design proposals?!

    Disclaimer
    The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.
    Liability Disclaimer
    In no event shall Author be liable for any damages whatsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.
    Posting
    As Reza describes, many hosts only have a single connection to network, so that single connection is always a possible point of failure.  But there's a couple of things you can do to minimize the impact of a network infrastructure device failure.
    When working with small appliance type switches, you might have multiple smaller switches rather than one large switch.  For example, instead of having one 48 port switch, you might have two 24 ports switches, or six 8 port switches, etc..  If a switch fails, not all hosts lose connectivity.
    You can also have additional ports, ideally enough to handle lost of any one unit of hardware,  So, for example, if you have seven 8 port switches, when you only need 48 ports, if a switch fails, you only lose 1/7 of your hosts until they can be repatched into available ports on the other switches.
    If some of your hosts have multiple NICs, then there are various method to use the two NICs to avoid a single network unit failure from dropping the host.  Usually only shared servers merit that level of redundancy.

  • Design for "featured providers"

    I don't know what the feature is called but when you click in the itunes store on podcast and then on "featured providers" then you can see that big podcast providers with more than one podcast seem to have their own "chapter" "section" or whatever it is called. (so what is it called?). Just take a look at BBC for example. It is defined by a distinct design with a huge space on top with their logo and image material and a text block. Further down you have a box with all their podcasts.
    My question is: how do I provide a design for this. Where do I upload the background design files and when, do I do that when I register the podcasts? Can anyone tell me how this feature is called at all? I have noticed that providers that aren't even on the "featured providers" list have their own chapters.

    Disclaimer
    The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.
    Liability Disclaimer
    In no event shall Author be liable for any damages whatsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.
    Posting
    As Reza describes, many hosts only have a single connection to network, so that single connection is always a possible point of failure.  But there's a couple of things you can do to minimize the impact of a network infrastructure device failure.
    When working with small appliance type switches, you might have multiple smaller switches rather than one large switch.  For example, instead of having one 48 port switch, you might have two 24 ports switches, or six 8 port switches, etc..  If a switch fails, not all hosts lose connectivity.
    You can also have additional ports, ideally enough to handle lost of any one unit of hardware,  So, for example, if you have seven 8 port switches, when you only need 48 ports, if a switch fails, you only lose 1/7 of your hosts until they can be repatched into available ports on the other switches.
    If some of your hosts have multiple NICs, then there are various method to use the two NICs to avoid a single network unit failure from dropping the host.  Usually only shared servers merit that level of redundancy.

  • This workflow cannot be imported because it was created in SharePoint Designer for a different Site

    Hello everyone.  I am getting this error when attempting to move minor workflow changes from mirror SharePoint development / production environments and hoping someone can help me.
    "This workflow cannot be imported because it was created in SharePoint Designer for a different site, or the original workflow has been moved or deleted.  To move a workflow between sites, use Save as Template (.wsp file) instead of a Visio workflow
    drawing."
    So basically I have taken an image of our single SharePoint server, Domain Controller, and a client and restored them to an OFFLINE development environment for the testing of workflow changes prior to production.  I've put quite a bit of time into one
    particularly and would like to export/import rather than re-created from scratch.
    I've successfully created the form template and imported.  This created the necessary list items nicely and the form appears to work as expected.  However, when attempting to import the .VWI file exported from dev SharePoint, I am getting the above
    error.  If I change the .VWI to .zip and remove the "workflow.xoml.wfconfig.xml" file, then re-zip and change the file extension back to .VWI I get a dialog that allows me to import, but I have to choose a new name and much of the related content
    is lost.  I need to be able to overwrite/merge the existing workflow with the import.  Any suggestions?
    One strange thing I ran into was during a test of an export/import from and to the exact same environment. If I simply export to .VWI, then import from .VWI with no changes, SAME everything I still get this error. Very weird. Hoping someone can shed some
    light on the subject. Thank you.
    Adam Tyler

    Hi Adam,
    Here is a blog talk about the same issue would be helpful:
    http://techiescode.blogspot.com/2014/09/copymove-sharepoint-2010-designer.html
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Architectural design for FTP batch processing

    Hello gurus,
    I would like your help in determining the design for the following.
    We receive several HL7 messages as a text file and copied to a shared network folder. All these files are created into several different folders depending on the region, message type. We need to come up with a B2B process to read all the files from the netwrok folder using FTP (batch process) and translate if needed (depending on the scenario) and transfer the files over to other destination folder on the network (using FTP).
    For this, we can create TPs with Generic FTP channel and this works without any issues. By doing this way, we need to create TP for each and every type of message which reads the files from its own specified directory location on the network based on the the polling interval.
    My question is, instead of creating TPs for each and every type of file, is there a way by which I can write a common web service that reads the source files from the network and based on the type of the file route to the proper destination folders. If it is possible, I would like to know the architecture for accomplishing this task.
    I really appreciate your kind help on this.
    Thanks and regards,
    Raghu

    Hi Raghu,
    Is it a B2B communication scenario?
    By doing this way, we need to create TP for each and every type of message which reads the files from its own specified directory location on the network based on the the polling interval.Why cann't you have only one TP with multiple documents, channels and agreements?
    My question is, instead of creating TPs for each and every type of file, is there a way by which I can write a common web service that reads the source files from the network and based on the type of the file route to the proper destination folders. If it is possible, I would like to know the architecture for accomplishing this task.Depends on your use case and products you want to use. You can very well use FTP adapter with BPEL and poll for files. Use DVM in composite to figure out the destination and send it there. You may use OSB if it is a typical routing case with heavy load and performance is a concern. You may use B2B as well here. So ultimately you need to figure out what you want and what tools you want to use.
    Regards,
    Anuj

  • Using Exchange Web Service (EWS) Streaming Notifications for a shared mailbox in Exchange Server, works or not?

    Hi,
    I am planning to develop an application to use EWS managed API streaming notification for listening the new email event of a shared mailbox. Will it will work or not? I knew it works for a personal mailbox, where the authentication of EWS can be performed
    with the associated Active directory account. For the shared mailbox in Exchange Server, is there such an Active Directory account associated?
    Thanks,
    Richard

    >> Are you saying that if an Active Directory account has the access to a shared mailbox, and then this account can be used for creating the Streaming subscription for that mailbox
    Yes that's correct (try it yourself with the EWSEditor)
    >> In other words, the way how Exchange Server works is that the new messages like new emails are automatically sending to all of the AD accounts which have the access to a mailbox.
    Not sure what you mean by this ? A Shared a Mailbox is just like any other Exchange Mailbox if you have rights to the Folder then you can create a subscription against it. There is no automation involved.
    Cheers
    Glen

  • Report design for hierarchical xml data

    I need to create a report that shows hierarchical xml data. I already have an xml saved to a database. How would I go bout creating a design for such a report? Should I be doing groups on every parent with children? Any example?
    Thanks

    Hi markgoldin,
    I tested the issue in my local machine by following steps:
      1. Created a table and store the xml into the table with the following query:
    CREATE TABLE xmlTbl (id INT, xmlVal xml);
    INSERT INTO xmlTbl values(1,
    '<Customers>
    <Customer ID="11">
    <FirstName>Bobby</FirstName>
    <LastName>Moore</LastName>
    </Customer>
    <Customer ID="20">
    <FirstName>Crystal</FirstName>
    <LastName>Hu</LastName>
    </Customer>
    </Customers>'
     2. Created a stored procedure to retrieve data from the table with the following query:
    create procedure xml_report
    as
    DECLARE @xmlDoc XML;
    SELECT @xmlDoc = xmlVal FROM xmlTbl WHERE id=1;
    SELECT T.c.value('(@ID)','int') AS ID,
    T.c.value('(FirstName[1])','varchar(99)') AS firstName,
    T.c.value('(LastName[1])','varchar(99)') AS lastName
    FROM @xmlDoc.nodes('/Customers/Customer') T(c)
    GO
      3. In the Report Data pane, right-click Data Sources and click Add Data Source.
      4. For an embedded data source, verify that Embedded connection is selected. From the Type drop-down list, select a data source type; for example, Microsoft SQL Server or OLE DB. Type the connection string directly or click Edit to open the Connection
    Properties dialog box and select Server name and database name from the drop down list.
      5. For a shared data source, verify that Use shared data source reference is selected, then select a data source from the drop down list.
      6. Right-click DataSets and click Add Dataset, type a name for the dataset or accept the default name, In Data source, select the name of an existing shared data source, select StoredProcedure in Query type, then select xml_report from stored procedure
    name drop down list.
      7. In the Toolbox, click Table, and then click on the design surface.
      8. Drag the Date field from the dataset to the cells in the table.
    The following screenshot is for your reference:
    For more information about how to use the xml data type methods, please refer to the following document:
    http://msdn.microsoft.com/en-us/library/ms190798.aspx
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu

  • HT4557 Does an iOS device such as an iPad count as one of the five devices allowed for home sharing.

    Does an iOS device such as an iPad count as one of the five devices allowed for home sharing?

    This page says :
    Home Sharing in iTunes is designed to let you easily share your iTunes media libraries between up to five computers in your household. You can also use Home Sharing to play your iTunes content on your iOS devices and Apple TV (2nd generation) if they are connected to your home Wi-Fi network.

  • Control to layout a design for instance a business card

    From my cold fusion app I want to have a control (any adobe control) to lay out a design for a business card . Is there any control that I can out of the box? I would prefer to use a Flash control.
    Thanks in advance.

    Dear,
    If you have ABAP team with you, an email to user SAP inbox will trigger from each transaction.
    We implemented this for PR level for each 1200 individual user / management release authorities, which informs by an email about the status of PR. once the final release done based on purchase group - an email will trigger to central procurement department all responsible persons indicating purchase order awaiting.
    NOW material rejection - reference to 122 and 102 movement is under study. Once any material rejected the system send email to procurement, stores personnel and management informing the material was rejected.
    Similar, based on the presentations and indepth meeting held with ABAP and FUNCTIONAL teams, workflow can be trigger on each event (not sure the all processes you mentioned in your post). But I hope possibility exists.
    THE ONLY POINT YOU SHOULD KEEP IN MIND AND INFORM MANAGEMENT - SYSTEM PERFORMANCE WILL AFFECT A LOT. SYSTEM WILL SLOW DOWN AS MANY WORKFLOWS EXISTS. CONSULT BASIS TEAM ALSO.
    Regards,
    Syed Hussain.

  • "Import for runtime sharing" and dynamic loading of MC

    Hello to everyone :)
    I have a question that possibly is a bit strange, but I
    really didn't found any info about it (that's why I'm writing a
    post here).
    So, I have five .swf files with different sections of one
    project. I'm loading these movies only when they are needed. So far
    nothing really special. The big question is: is there a way to
    import a visual snapshot of them, or import them into the main .fla
    so I can see them and align them without going to xx.fla and move
    the MC i want.
    I know that importing for runtime sharing, make the things
    appear in the main movie, but how can I import them dynamically
    only when I need them?
    In other words I want to see the other movies in edit mode in my
    main movie (this will be a HUGE facilitation for designing the
    project) and to import them dynamically... if it's possible!
    I hope this explanation is clear enough :) If it's not I'll
    do my best to clarify it!
    And I want to apology if this post is not in the right place!
    Thank you for your time and attention in advance!!!
    Best Regards,
    Lyubomir Kirilov

    Hi Frowin Keiser
    I think the problema is the extension of file.
    In the Internet Explorer (any browser you are using), go to the Save as...
    Check if the extension is .xml

  • Changing screen size for screen sharing

    Is there a way to change the screen size for screen sharing?
    I have a 13" macbook and a G5 with a 20" monitor. When I use RDC to a PC it automatically adjusts to use the full screen on the G5 and when I use VNC to a linux system I can create a vncserver with any arbitrary geometry that I want, but when I use screen sharing all I seem to be able to get is a 13" screen. I can use JollysFast VNC, and view it full-screen, but it's still just 1280x800.
    So, is there anyway to create a virtual window so that I can take better advantage the screen on my G5 when screen sharing to my macbook?
    Thanks,
    Rob

    Well, the question should really have been, "What is the ideal page width for the iPad?".
    The answer is that there isn't one since the iPad, like most portable devices, has two screen widths depending on whether its used in portrait or landscape mode.
    If you are designing a layout specifically for the iPad, one solution is to use a folding design where the sidebar folds down to the bottom in portrait and jumps back up to the side in landscape. This will only work for personal computers and iPads.
    The popular way of designing a layout to suit a large range of portable devices is to use a liquid, or semi liquid, layout that will automatically adjust to the fixed width browsers used on these devices.
    Something like this...
    Neither of these methods are possible using a template based editor like iWeb and this is probably one of the main reasons that Apple has given up on the application. Surfing the internet on mobile devices is growing daily and its now become essential to have a mobile version of your website or one that can be viewed on all devices.

  • How we create workflow using sharepoint designer for first review the documnet than go for approve the document.

    Hi to all
    I have team site in site collection under this i have Shared Document library. Now i want to create the workflow for the shared Document library. How i will create workflow using sharepoint designer for first review the documnet than go for approve
    the document.

    Hi ,
    According to your description, my understanding is that you want to create a workflow which contains review and approval process.
    For implemening your requirement, you can create a workflow containing two steps. The first step is used to collect user information and set workflow variables, and the second step is used to verify whether the reviewer approve. If the reviewers complete
    approving, a pproval workflow is started. The whole workflow is like :
    More information, please refer to the links below:
    http://www.documentmanagementworkflowinfo.com/sharepoint-video-tutorials/create-document-review-workflow-sharepoint-designer-2007.htm
    http://office.microsoft.com/en-us/sharepoint-designer-help/watch-this-design-a-document-review-workflow-solution-HA010256417.aspx
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Designe for migration....

    Hi all!
    My head say that i do use oracle designer for migration by SQL SERVER2000 to Oracle9!
    I have study that it's much possible with migration workbench but he want it!
    Can you say me the different?And if is a good why designer?
    Thank a lot, in advance!
    Marie

    Hi,
    Did you get any answers for this? We are also facing problems while using the FM  BAPI_BUS2177_STAFFING_ADD
    When we call  BAPI_CPROJECTS_COMMIT_WORK it returns with an error. When tried to debug, found that system raises an event save_requested and then error occurs.
    Please let us know, if you resolved the issue and could upload staffing data.
    Thanks in advance.

  • How do I flip a design for transfer printing?

    There used to be an easy way under customize print to flip a design for transfer printing....can't find it now.

    There's a free image editor, Xee, that you can use from within iPhoto to mirror flip, rotate, etc. losslessly.
    OT

Maybe you are looking for

  • Macbook Pro running very slowly, randomly shutting off and overheating. No idea what the problem is! Please help!

    I got macbook pro about a year and a half ago and up until now it has been running fine. However, in the last few days, it has been started to run tediously slowly! It wont allow me to open applications and i have to force quit out of any application

  • Can't print from Mail since upgrading to Mavericks

    My most recent crash log from Mail - I can save emails as PDF then print but not ideal - any ideas what's causing it? Process:         Mail [246] Path:            /Applications/Mail.app/Contents/MacOS/Mail Identifier:      com.apple.mail Version:    

  • How to make Popup LOV Not Editable?

    Hello, I started using a Select List (named LOV) as an element in a report. However, I go the error: ORA-20001: Error fetching column value: ORA-06502: PL/SQL: numeric or value error: character string buffer too small So I switched to a Popup LOV (na

  • IPod apps will not sync

    I am trying to add an app to my Ipod touch.  It is showing in itunes.  I click and drag it to the ipod image, hit apply, and then sync.  It says it has synced, but the new apps will not appear on the ipod. What am I missing?

  • Can't log on Gmail thru Safari nor Email app

    I keep getting the "wrong password" error everytime I try to log in on my Gmail account given to me from my college. I noticed it only applies so far to accounts with passwords that have a uppercase letter...