Transition from the front-end class to the back-end class(Composition)

Hi there,
I have a program that is using 2 classes in the same package.Oneis called Add_Word,the other is Edit_Word.Both have a seperate GUI.I have created one class(Add_Word) with a reference to (Edit_Word).The idea is to allow the user to enter a list of words through a text field and pressing a button after each one.Each newly entered word is added to a combo box in the same window.When the user misspells a word,he should click on the word in the combo box and another window (Edit_Word) should appear.Edit_Word has a text field and a button.The user should type the edited word inthe text field and press the button.Whenthe button is pressed the Edit_Word window should disappear and the edited word should replace the old word in the combo box.
so the flow of data is as follows:
1)Add_Word window appears
2)user adds words,one by one
3)words appear in combo box as they are added
4)user misspells a word,he clicks on it in the combo box
5)Edit_Word window appears
6)user types edited word in text field
7)user clicks OK button
8)user returns to Add_Word window which created the Edit_Window in the first place.
9)new word replaces old word in Combo box
I am having a problem with step # 8?I need to return to the same object so I retain the information?
Any help?
class Edit_Word{
JTextField edit_field;
JButton ok_button;
class Add_Word{
Edit_Word app;
JTextField add_field;
JButton add_button;
JComboBox  list_combo;
}

Thank you for your reply.I am familiar with the built-in JOptionPane dialogs,but I'm just surfing around to learn how to create user defined modal dialogs.I solved the problem yesterday,although a modal dialog seems more controlled.I added a Window listener to Add_Word,which is deactivated when edit_word appears on the screen and activated again when the edit_word window is set to invisible(in the code).So when the window is activated again,it updates the combo box.
Once again,thank you for your reply.

Similar Messages

  • [svn:osmf:] 10248: Fix a few bugs related to the interaction between IPlayable, IPausable, and ITemporal within a SerialElement, specifically around ensuring that the transition from child to child happens in the various permutations of these traits .

    Revision: 10248
    Author:   [email protected]
    Date:     2009-09-14 16:45:00 -0700 (Mon, 14 Sep 2009)
    Log Message:
    Fix a few bugs related to the interaction between IPlayable, IPausable, and ITemporal within a SerialElement, specifically around ensuring that the transition from child to child happens in the various permutations of these traits.  Introduce a helper class for managing this logic, as it can happen in both CompositePlayableTrait and CompositeTemporalTrait.  This lays the groundwork for a MediaElement which only implements IPlayable (e.g. to ping a tracking server) working within a serial composition.  Beef up unit tests so that these cases don't get broken in the future.
    Modified Paths:
        osmf/trunk/framework/MediaFramework/.flexLibProperties
        osmf/trunk/framework/MediaFramework/org/openvideoplayer/composition/CompositePlayableTrai t.as
        osmf/trunk/framework/MediaFramework/org/openvideoplayer/composition/CompositeTemporalTrai t.as
        osmf/trunk/framework/MediaFrameworkFlexTest/org/openvideoplayer/composition/TestSerialEle ment.as
    Added Paths:
        osmf/trunk/framework/MediaFramework/org/openvideoplayer/composition/SerialElementTransiti onManager.as

    Hi,
    Found a note explaining the significance of these errors.
    It says:
    "NZE-28862: SSL connection failed
    Cause: This error occurred because the peer closed the connection.
    Action: Enable Oracle Net tracing on both sides and examine the trace output. Contact Oracle Customer support with the trace output."
    For further details you may refer the Note: 244527.1 - Explanation of "SSL call to NZ function nzos_Handshake failed" error codes
    Thanks & Regards,
    Sindhiya V.

  • I have a VI and an attched .txt data file. Now I want to read the data from the .txt file and display it as an array in the front panel. But the result is not right. Any help?

    I have a VI and an attched .txt data file. Now I want to read the data from the .txt file and display it as an array in the front panel. But the result is not right. Any help?
    Attachments:
    try2.txt ‏2 KB
    read_array.vi ‏21 KB

    The problem is in the delimiters in your text file. By default, Read From Spreadsheet File.vi expects a tab delimited file. You can specify a delimiter (like a space), but Read From Spreadsheet File.vi has a problem with repeated delimiters: if you specify a single space as a delimiter and Read From Spreadsheet File.vi finds two spaces back-to-back, it stops reading that line. Your file (as I got it from your earlier post) is delimited by 4 spaces.
    Here are some of your choices to fix your problem.
    1. Change the source file to a tab delimited file. Your VI will then run as is.
    2. Change the source file to be delimited by a single space (rather than 4), then wire a string constant containing one space to the delimiter input of Read From Spreadsheet File.vi.
    3. Wire a string constant containing 4 spaces to the delimiter input of Read From Spreadsheet File.vi. Then your text file will run as is.
    Depending on where your text file comes from (see more comments below), I'd vote for choice 1: a tab delimited text file. It's the most common text output of spreadsheet programs.
    Comments for choices 1 and 2: Where does the text file come from? Is it automatically generated or manually generated? Will it be generated multiple times or just once? If it's manually generated or generated just once, you can use any text editor to change 4 spaces to a tab or to a single space. Note: if you want to change it to a tab delimited file, you can't enter a tab directly into a box in the search & replace dialog of many programs like notepad, but you can do a cut and paste. Before you start your search and replace (just in the text window of the editor), press tab. A tab character will be entered. Press Shift-LeftArrow (not Backspace) to highlight the tab character. Press Ctrl-X to cut the tab character. Start your search and replace (Ctrl-H in notepad in Windows 2000). Click into the Find What box. Enter four spaces. Click into the Replace With box. Press Ctrl-V to paste the tab character. And another thing: older versions of notepad don't have search and replace. Use any editor or word processor that does.

  • Just got a 5C, is it normal that when you transition from Siri to calling someone that the symbols along the top or screen go all feint and blurry?

    Just got a 5C, is it normal that when you transition from Siri to calling someone that the symbols along the top or screen go all feint and blurry?

    I have one it works fine. yeah, the Mac instructions aren't great. Try this.
    (1) make sure you have your VCR audio and video outputs connected to the side with the two selection switches.
    (2) be sure you know the difference between the audio and video outputs no matter which colors you use.
    (3) make sure the indicator light is green on cable that connects to your computers firewire port.
    (4) when you operate the vcr through Imovie. you will only be able to play your vhs tape. so to fast forward or reverse. you must use your vcr remote or your hand.
    (5) to import your footage just click on import in imovie.
    That should solve your problem. Also, in the future put these questions in the imovie forum.
    P.s. if this is helps you give me a vote or two. LOL
    anymore questions email me

  • My camera will not flip from the rear camera to the front. It is the iPhone 5 and I got the ios7. Is there anything I can do

    My camera will not flip from the rear camera to the front. It is the iPhone 5 and I got the ios7. Is there anything I can do?

    Thank you fablepd,
    I tried downloading “Awesome camera”. Seems like a nice App. The front/back switch does not work within that App.
    Switching to back camera in the normal Camera App brings up a blurred picture of what the back camera is seeing and freezes the app. Force quitting Camera App does not bring it back to live until after a long time. Problem still persists.
    iPhone 5 64GB, iOS 7.0.6.

  • I don't know what's wrong with my camara it's all black and the front only works not the back

    I don't know what's wrong with my camara it's all black and the front only works not the back

    Try This...
    Close All Open Apps... Sign Out of your Account... Perform a Reset... Try again...
    Reset  ( No Data will be Lost )
    Press and Hold the Sleep/Wake Button and the Home Button at the Same Time...
    Wait for the Apple logo to Appear...
    Usually takes about 15 - 20 Seconds... ( But can take Longer...)
    Release the Buttons...

  • My New ipad3, when i click onthe camera app, the front camera works but the other camera only shows a black screen ! Is there something wrong with my iPad ?

    My New ipad3, when i click onthe camera app, the front camera works but the other camera only shows a black screen ! Is there something wrong with my iPad ?

    Try a Reset [Hold the Home and Sleep/Wake buttons down together for 10 seconds or so (until the Apple logo appears) and then release. When the screen goes blank power On again in the normal way.] It is absolutely/appsolutely safe!

  • Need your help, How to write a program such as drag the objects to the front panel like using the LabVIEW Front Platte

    Dear all:
    Sorry for so long title.
    I need your help with how to drag the objects and drop onto the front panel.
    Like the LabVIEW front platte, i can choose the objects i can drop onto every where of the front panel.
    Could drag and drop function can satify?
    Any idea?
    Thank you
    Attachments:
    Image00000.jpg ‏75 KB

    What you want to do is relatively complicated and it seems that your knowledge of LabVIEW is relatively basic. I suggest you try searching this site and google for LabVIEW tutorials. Here, here, here, here, here and here are a few you can start with and here are some tutorial videos. You can also contact your local NI office and join one of their courses.
    In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).
    Try to take over the world!

  • Creating a connection between the GUI and a program's back end

    I have created a program (over 50 classes) and am currently a little confused as to how I should connect the back end of my program (the real functionality) to my front end (the GUI). Currently I am thinking about using a list of event listeners in my back end that will announce when certain events have completed and thus front end can handle the updates accordingly.
    But I want to ensure that the back end doesn't "know" about the front end. In other words, I would like to ensure that the back end and the front end are as independent/modular as possible.
    Can anyone make some suggestions besides event listeners?
    Thanks,
    Timmers

    From what I am able to ascertain from your post, you would advocate using EventListeners in the back end (in same VM) to inform the GUI of changes?
    Is this the commonly accepted way of communicating your back end functionality to your front-end (GUI)?
    I've read that all EventListeners are part of a single thread. So what happens if two events occur simulataneously in the back-end. Do those events get queued or do some of them get lost?
    Thanks,
    Tim
    If the back-end changes state asynchronously to the
    front-end GUI (ie does work in background threads and
    then notifies the front-end when something happens),
    then you should make it send events when this happens.
    The basic concept is the same for CORBA, RMI, JINI,
    or running everything in the local VM.
    To do this you define a set of events (or maybe you
    can use the java.beans.PropertyChangeEvent) and
    listener interfaces. The front-end then registers to
    receive events (probably via an addXXXListener()
    method in the back-end). You would have to have a
    class (or classes) in the front-end that implemented
    the event listener interfaces to receive the events.
    If you are using a distributed technology (CORBA, RMI,
    JINI, ...) the concept is the same, but the event
    mechanisms are slightly different.
    To notify the back-end of state changes in the
    front-end you probably can just do plain old method
    calls from the front-end to the back-end.

  • How do I input data to a table on the front panel and stop the program immediatel​y as button is pressed?

    What should I do if I want to display on the front panel in real time the values from Polarizer #, P1, P2 and the last calculated value (P2/P1 * 100) called T% in a table or some graphical representation like that?  What would I have to do?  It could just be Polarizer # and T% if that would be simpler.  I just want to let the user know the values in a list, spreadsheet or table as they go.  One last thing is that I would like to be able to stop the program at any point in time as soon as the stop button is pressed.  As of now, when the button is pressed it goes through the iteration currently in progress and then one afterwards.  I want the program to end as soon as the stop button is pressed no matter what sequence it is.  What can I do to achieve this?  Could you give me an example or modify my program to show me this.
    Thanks,
    Steve
    Stephen Coward
    Northrop Grumman
    [email protected]
    Attachments:
    EPM2000 almost done.vi ‏50 KB

    Put a single frame sequence structure around your stop button and then wire from the error cluster going into the error handler to the edge of the sequence structure. Now your code will stop at the end of the current iteration. To see why this works, watch you code execute with execution highlighting turned on and review the section of the manual talking about "Dataflow".
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Not able to get a link to the fron-end portal(ess) with back-end sap R\3 AB

    Hi,
       In the back-end i.e sap abap-hr , the required data (leave types) are available.But on front-end Portal(ESS) ,the drop-down menu in personal LOA forms shows only two leave types(personal & self-funded leave).i got struck in how to make few in remaining also viewable in the drop-down list.Can anyone help me on this?

    Bottom line,
    to configure the Leaves on your portal you have to do.
    1. Configure the Leave Types and all the customizing on T554S.
        opc. If you want to have quota deduction, and everything else you should check V_T559L, T556C, T556A as well.
    2. Configure the Leaves on the Portal.  This is done on the IMG path colleague replied:
    >Personnel Management
    >Employee Self-Service
    >Service-Specific Settings
    >Working Time
    >Leave Request
    >Processing Processes
       a. Create the Rule Groups - this step you just create them.
       b. Adjust feature WEBMO - The feature WEBMO is used to select the rule group. Most of the times based on MOLGA and Ctrl. Center.
       c. Define Processing Processes for Each Rule Group - define the processes such as how to record partial day leaves, details on to check PTREQ_HEADER tables for unposted leaves, and how to determine workflow's next agent (more info press F1 on each of these fields)
       d. Specify Processing Processes for Types of Leave - Associate the Leaves from T554S that you want to show on the portal. This includes Absences and ATtendances. Here you define data such as if you are allowed to create leaves on the past, present and future; field customizing, and other details.
    Since Time Management is an old part of SAP the F1 documentation is very complete so I really advise you to check.
    Also, check http://wiki.sdn.sap.com/wiki/display/ERPHCM/LeaveRequestCustom+Messages
    for how to have custom warning messages to show on your leaves.
    I hope I have clarified.
    Kind Regards,
    Bentow.

  • The front facing camera of the iPhone 5 automatically flips/mirrors the image right after it is taken. This is annoying since I would like for the image to look the same way it did while it was captured is there a way to stop this feature?

    Right after I take a picture using the camera which is made to face you the image is flipped as soon as it saves to my library. Is there a fix for this? Ive read a few other posts saying apple intended for the software to do this but I was wondering if there was an option to turn this feature off.

    I actually tried the steps below due to the error -5000 I had encountered during the previous tries updating my IOS to 5.1.1
    "Perform a normal sync and check your iTunes to make sure everything was synced in the right places like the tabs at the top of your "summary" when you plug in your iPhone to iTunes.  If everything is there and all the right boxes are checked for the stuff you want to save, then put your phone into recovery mode by keeping it plugged into your computer with iTunes still up and running. Next you want hold down the power button AND the home key button (the big button on the bottom part of your screen) AT THE SAME TIME. Your phone will go thru 4 different screens before you
    Can let them go.  U will see your normal power off slider screen, then a black screen, then a black screen with an apple logo, then finally a screen with the iTunes logo and a picture of a sync cable below it. Once you see this screen LET BOTH BUTTONS GO but not before you see this screen.  Your computer will tell you that it has detected an iPhone in recovery mode, say ok.  Then hit the restore button on your iTunes summary screen, it should then ask you if you want to restore from a backup and update, say yes.... And at the end of its restoring and uploading you should have iOS 5!!"
    Then it proceeded to a reactivation process... =(

  • What is the 2nd sensor on the front, right next to the ear speaker for, and can I cover it up with a screen protector?

    I received a package of screen protectors from Tech Armor today that were advertised to work for the iPhone 5, 5S and 5C.  They don't have a cutout for the second sensor on the front face that is to the left of the ear speaker.
    What is that sensor for?  And can I cover it up with a screen guard without reducing the functionality/effectiveness of the hardware?
    Thanks,
    Pete.

    That's the proximity sensor, senses when you have the phone close to your face, turns off the screen to save battery and prevent accidental input from face touching the screen.
    It's ok to be covered by by a transparent screen protector. I have used screen protectors that cover up that sensor, no problem.

  • Question about the front headphone jack and the X-Fi SoundC

    <font face="Times New Roman" size="2">?
    I just bought the ExtremeGamer Fatalty Pro series card and have a question. This is my first time building a pc.
    <font face="Times New Roman" size="2">?
    I have a headphone jack on the front of my case in the bezel that plugs into my motherboard. Do I remove this connection (HDD/AC 97) from my motherboard and plug it into the SPDIF I/O connection on my X-Fi card? (hehe it fits) Or is the only way I can listen to my head phones is?on the back of the card? Meaning; now that im using the sound card and my onboard sound will be disable is headphone jack on the front no longer in use, dead?
    Im in the middle of the build, and wanted to ask before I powered up and ruined something.
    Thanks in advance!

    B&Just realized that the Beta driver introduced a new problem. ?Although the inputs are now working, the sound is terrible. ?The volume keeps fluctuating rapidly (not the level that I can control). ?If you leave the volume at a set level, you can notice that it is behaving erradically.

  • I've got a mac pro problem with the starting up, but also a red light on the logic board solidly on. Its not among the diagnostic led. It's located near the BT adapter and the front fans. Also the fans run loud also. any solutions?

    Hi
    I've got a mac pro late 2006, and i am having problem with it for quite a while now. the problem i am facing is the start up process, and the red light on the logic board. Earlier I've got the two led on the diagnostic leds 5 and 6 turned on without the diagnostic button being pressed, and i think those are related to the processors overtemp. I've managed to solve that by, removing the processors and re applying the thermal compound on the heatsink. what i have left now with is the red light on  the logic board at the time i plugged in the power. At the same time when this light come on, the power indicator at the front panel come on as well. i am not sure what is this light relates to. We've replace the power supply too, and gone through the SMC reset but seems no help.
    Any idea on the problem? I am desperate about it, and i will be greatful if anyone can help..
    thanks and hope for your best solutions
    Kari

    I can't help directly with your problem but you might check here http://tim.id.au/laptops/apple/macpro/ for a service manual which could answer your question.

  • How can I access the member of a cluster on the front panel by selecting the label?

    I have a cluster of Controls. i would like to choose the element of the cluster by his label on the front panel and then show the value. Does anyone have an idea?

    I think I understand what you are trying to do. I've whipped up an example that uses property nodes, see if it helps...
    Brian
    Attachments:
    ClusterSelect.vi ‏35 KB

Maybe you are looking for

  • Table based on multiple views

    Hello all, Is it possible to populate a table with data from multiple view objects that are linked with a view link? The reason i want to do this is because if you update the reference ID in the master the detail automatically follows. Now, I know i

  • Smart Groups not so "smart".

    I have noticed that within Smart Groups I can not Edit Distribution List email addresses. After I change, they do not stick. Editing Distribution List works on regular Groups no problem. Anyone have this issue or answer? Also isn't it funny the Smart

  • Re-Using Java Business Layer in Flex

    I am new to flex and particulalry looking at this to use as front end for existing Web based Java Application as front end. We have comprehensive business layer written using POJOs and DAOs and want to reuse it. I will be using remote objects to call

  • Webservice-(Proxy to Soap)

    Hi All, I am having a requirement of  Proxy to Soap synchronous scenario. In that Client has given three webservices to connect 3rd party systems. 1.Authentication information (seperate) 2. Request 3. Response I skipped the first webservice , as we c

  • Finder Relaunches every 6 right clicks

    Hi everyone, I have had a day of clearing things out, but now, my window Im working in within finder is disappearing on every 6th right click, so imagine I am looking at my folder and I right click to get info or the like, the window will disappear a