Next, next, and next

I'm making a small (temporary Swing) Application that has a linear set of "back" / "next" steps that the user must complete to achieve the user's / program goal.
This "back" / "next" is very similar to that of a Wizard or common installation procedure (but is not a wizard or installation procedure).
Each Frame (window) will have a common header and common footer which contains the Back / next buttons.
I want the centre (or body) of the window to change at each step of the process. Each step requires different user controls such as combo boxes, list box's, passcode fields and images and so on.
Due to limited screen space all steps cannot be "dumped" onto one main window.
I do not wish to use a new pop up dialog box's for each step!
I also do not wish to use a tabbed window setup.
I currently have the idea of constructing a new panel for each step, and "attaching" (and removing the original) the appropriated panel at each step.
My question is: Is this the best method? Is this memory efficient? And more importantly, is there a better approach to take???
How would others achieve the same result?
Is it possible to embed a frame inside a frame, much like an IFRAME inside a webpage???
Any method proposed must be both simple and memory efficient, since this application will be converted to work on a mobile device using the Symbian Operating system, which means using AWT instead of Swing (just remove the "J" from the data type).

That's exactly what I would do.
Each screen would be a differnt object that extends JPanel. You can have a common class to take care of the header and buttons and just replace the Jpanel each time.
As for mobile devices, I've never written a piece of Swing that I was able to port to a mobile device just by removing the J. There are so many differences between what is availble in J2SE and J2ME that (IMO) you would be leaps ahead just coding two applications. The architecture would remain and I have never had memory problems. I've written applications like this with 30+ screens and has not been a problem.
If memory is a great concern, you can use a classloader to load and unload the classes as needed to load a new panel at the expense of speed.
Good Luck.

Similar Messages

  • How do I use edge commons composition loader to load multiple compositions with a next and back button?

    I am working on an interactive book and have set up each page as a separate composition in edge.
    I am using  the edge commons JS library to load multiple compositions into a main composition.
    You can see how this works here: Edge Commons - Extension Library for Edge Animate and Edge Reflow | EdgeDocks.com
    The way the edge commons tutorial is set up requires a button for each composition i want to load. I am interested in loading multiple compositions with a "next" and "back" button, and a "swipe left, "swipe right" gesture on the content symbol that each composition is loaded into. I also need the swipe features on the content symbol not to interfere with the interactive elements on the loaded composition.
    Please suggest a solution that will work without adding additional scripts beyond edge commons and jquery.

    Sort of. I'm using this code inside an action for a button symbol. But it doesn't work perfectly. Trying to debug it.
    Let me know if you have any luck.
    //Check to see if pageCounter already exists
    if (typeof EC.pageCounter === 'undefined') {
      // it doesn't exist so initialize it to first page
        EC.pageCounter = 2;
    //check if the page is only 1 digit -- patch for single digit
    if (EC.pageCounter < 9) {
       // it is, so we need to pad a 0 on the front.
      EC.pageCounterString = "0" + EC.pageCounter;
      //e.g.  01 ...09,11,12,13....115,222352,,....
    else {
      EC.pageCounterString = EC.pageCounter;
    EC.loadComposition(EC.pageCounterString + "/publish/web/" + EC.pageCounterString + ".html", sym.$("container"));
    EC.pageCounter = EC.pageCounter + 1;
    //TODO for back  -1

  • When I login to my homepage yahoo, why does a paypal tab open next to yahoo, and will it harm anything?

    When I log on to Mozilla, my homepage is Yahoo, but next to the yahoo tab on the left is a small tab with the paypal logo, will this harm anything, and can it be stopped?

    You may have "pinned the tab". Right click on it and unpin the tab to make it go away.

  • When i login on game center it say enter your birth date when i enter it and i perss next the birth day will come again and again what should do

    when i login on game center it say enter your birth date when i enter it and i perss next the birth day will come again and again what should do

    Start a game with Game Center and go from there.

  • I'm on ff 3.5.5 for Mac. I've been prompted twice to download latest version. Each time I have dragged the ff icon from applications folder to the dock and all seems ok. But next time I start ff it says I'm on 3.5.5 and should update to latest version!

    There was no "update failed" message
    I wonder whether I'm doing the right thing when I drag to the dock. There's only one ff icon in the applications folder. The first time I was prompted to update it showed that days date next to the icon as if the update was successful. The second time was a few days later but I think it was still the same date next to the icon (25/8/10) I've only just noticed that (on 10/9/10) so can't be sure but I'm sure the second time was around 2nd or 3rd of Sept.
    Also, I am running two versions of ff- one is english, the other is the Italian version. They can't be opened at the same time but they seem to talk to eachother in the background, so to speak, because when I open one after a long gap, it opens with all the history and settings of the other one, right up to the last website I went to. I think I closed both when updating because it prompts you to close all programmes and restart (I think/ remember) so I just clicked ok to that prompt.
    By the way, I got the prompt to update twice for ''BOTH'' the Italian and the English version- so 4 times altogether so it would seem that ff does recognise them as separate but still has problems concluding the update for each separate one respectively.
    Thank you very much if you can help.
    Trapperjohn

    Download a new copy of the Firefox program: http://www.mozilla.com/firefox/all.html
    Trash the current Firefox application to do a clean reinstall.
    Install the new version that you have downloaded.
    Your profile data is stored elsewhere in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder], so you won't lose your bookmarks and other personal data.

  • L need help with textedit, I inserted a picture then the cursor went from small to the size of picture and l need to write a header next to the picture not at the bottom of it. can anyone help please?

    Can anyone tell me how to make cursor smaller after inserting picture so that l can add somethimg right next to it instead of bottom of picture. Meaning the next line is too low

    AFAIK, you can't. The nature of TextEdit is that it allows the picture to be treated as a character and adjusts the cursor size for that line.
    You need a app that supports transparent overlays.

  • All my purchased song from iTunes are not playing complete (iPod and computer with Windows Vista), unexpectedly stops and continues with next song. What am I doing wrong?

    All my purchased song from iTunes are not playing complete (iPod and computer with Windows Vista), unexpectedly stops and continues with next song. What am I doing wrong?

    Are the songs playing whole in iTunes? if not download them again.
    else read this Apple Support Article on your problem
    Have a nice day!

  • When using a Seagate 1T external hard drive and Time Machine to back up hourly, if I delete photo files from the Mac hard drive before the next back up, are these retained on the Seagate drive or will they be lost (overwritten) in the next backu in the ne

    Does Time Machine erase previously saved files if, say, photos are deleted from the Macbook upon the next update, or will they be stored indefinately despite the current status of the files stored on the computer? Eg. can I bckup photo files to a Seagate 1T disc and then delete them to make more room on the computer in the knowlwdge that they are always going to be on the Seagate disc? Sorry if this is very elementary but I have not used a back up before like this, and am not sure how successive backups are overlaid or retained. Thanks!!

    TM is not designed to do what you ask. As Allan wrote TM is an incremental backup not an archival solution.
    If you delete a file from the HD it will eventually be removed from the TM backup (if it ever makes it on to the backup at all).
    How long before it is removed depends on a number of factors, TM disk drive size being one factor but not the only one.
    Material that is impossible to replace and is important to you (image files usually fitting that description) need to be backed up to as least one other drive and preferably more for long term storage.

  • I have purchased a movie and it has downloaded.   Next, I get a screen the says Terms and Conditions. It says to click Agree but I. Can not find Agree anywhere in the document.  how do I move forward and access the movie?

    I have purchased a movie and downloaded it. Next I get a screen that says Terms and Conditions and tells me to read and click on Agree. I cannot find the Agree anywhere in the document.  How do I move on and view the movie?

    Go to Settings>General>Usage. How much space does it show you have?
    If you connect your phone to your computer, what does iTunes say is on your phone? Do you see a large amount of "Other"? If so, you may have a corrupted database. You'll need to sync your phone then restore it as NEW (not from back up) then re-sync your data).

  • In an alv report how to get data in next and previous pages.

    in my alv report i require the output such that
    when i will press the next button in the application tool bar the alv report will be displayed for the next inventory document number in the next page. like wise previous
    would anybody please help me out.
    thanks and regards
    papps

    In your servlet you could set the arraylist into the HttpRequest object so that it is visible in the JSP you are forwarding to.
    RegistrationDAO rdao=new RegistrationDAO();
    ArrayList arr1=rdao.getsearchresults(af);
    request.setAttribute("someArrayList",arr1);Then in the JSP you could use JSTL 1.1 and jsp:useBean tag to access the ArrayList like this
    <%@ page contentType="text/html;charset=UTF-8" language="java" %>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <jsp:useBean id="someArrayList" class="java.util.ArrayList" scope="request"/>
      <c:forEach var="currentRecord" items="${someArrayList}">
        Some property of the AddressForm object: ${currentRecord.propertyName} <br/>
        Another property of the AddessForm object : ${currentRecord.someOtherPropertyName} <br/>
        <hr/> 
      </c:forEach>I guess you are using struts, so instead of JSTL there might be some struts tags that do the same as above JSTL tags. You can research further on that.
    If you can't use struts tags or JSTL tags then you could write it with JSP scriptlets (highly discouraged option).

  • [svn:fx-trunk] 9407: Reordering the if-statement in isMeasureFixed() exposed that hostFormat can be null when measure() is called if styles changed and measure is done before the next commitProperties .

    Revision: 9407
    Author:   [email protected]
    Date:     2009-08-19 15:11:34 -0700 (Wed, 19 Aug 2009)
    Log Message:
    Reordering the if-statement in isMeasureFixed() exposed that hostFormat can be null when measure() is called if styles changed and measure is done before the next commitProperties.  This states test exposed this.
    We should rethink if we want to clear hostFormat rather than have a hostFormatChanged flag.  If there is no hostFormat at measure then it has to be fixed because there is no line break format to check for auto-size.
    QE notes:
    Doc notes:
    Bugs: SDK-22779
    Reviewer: Gordon
    Tests run: checkintests
    Is noteworthy for integration: no
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-22779
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/RichEditableText.as

    Oh my god, it is too long! You definitely check out types, casting and especially ODP.Net (it does everything for you)... etc. They can help you to simplify your code. I do not have enough time to copy paste it to Studio and understand and solve your issue, so I got title of your message as your main question.
    In Oracle, you can create an autonumber field by using sequences object. This is really useful when you need to create a unique number to act as a primary key.
    Basically you can create a sequence simply typing;
    CREATE SEQUENCE MY_SEQUENCE;
    now you have a sequence called "MY_SEQUENCE"... Then, I advice you select a number from sequence;
    select MY_SEQUENCE.nextval from dual;
    I said I advice actually kinda must, although it called sequence, I cannot be sequential. Do not even try to predict the value. You can be sure that it is unique number so you can use it.
    Then insert you record and use that number part of your primary key. I think that's it. Have fun.

  • How to ignore error and continue with next value in PL/SQL FOR loop?

    hi,
    When the DROP INDEX statement fails it have to continue with the next value in FOR loop without exiting from the loop. Can anyone tell me how to do this?
    DECLARE
    CURSOR aud_cur IS
    SELECT key_col_idx FROM audience_work where aud_ref_id between 106 and 109;
    BEGIN
    FOR aud_row IN aud_cur LOOP
    EXECUTE IMMEDIATE
    'DROP INDEX ' || aud_row.key_col_idx;
    END LOOP;
    END;
    Thanks,
    Noble

    DECLARE
      CURSOR aud_cur
      IS
      SELECT key_col_idx FROM audience_work where aud_ref_id between 106 and 109;
    BEGIN
      FOR aud_row IN aud_cur LOOP
        begin
          EXECUTE IMMEDIATE 'DROP INDEX ' || aud_row.key_col_idx;
        exception
          when others then
            if sqlcode = -01418 then
              dbms_output.put_line(' index does not exist ');
            else
              dbms_output.put_line(sqlcode);
              raise;
            end if; 
        end;
      END LOOP;
    END;
    /

  • Song and Artist Info missing under itunes but not in the original file, and putting track number next to certian songs. Help

    i recently updated my itunes...today i opened it up and moticed abuout 100 songs missing...they are now at the bottom of itunes song list with a number next to them with information mission such as this the example below
    01 human                                                                 (this song should have the killers name as artist and cd title, etc)
    01 hosanna     hillsong united                                 (this song should have the cd title to it)
    02 lay me down                                          burning light
    02 leave out all the rest
    02 let it be                       the beatles
    03 papercut
    when i go under the original folders and files in the itunes folder everything is normal no missing info, etc. but under itunes orgnising its picking and choosing the same songs and putting the track number next to it and others songs in the same cd not. plus info missing. under the infor when i click right button all info missing there...but not under original file.
    please help

    A response on this subject from another post:
    It could be that you have inadvertently imported these CDs into iTunes as part of a compilation. If so, the artists won't show in the artists menu on the iPod.
    To check, highlight the tracks on one of the offending artists CDs in iTunes, right click and select "get info". This brings up a multiple song info window, and from there you can check if you have 'yes' in the box marked "part of a compilation".
    If you have, select 'no' instead and click 'ok'. Do this with any CD that has this issue. This will alter the info in iTunes, and you should then connect your iPod and synchronize the changes.
    The problem arises because the information contained on the Gracenote CD Data Base (where iTunes gets all it's album/artist/track info from), is sometimes incorrect. It can show CDs as compilations when in fact they are not.
    ramstigo wrote:
    I had an earlier post on this subject with a similar problem. I tried what you suggested and it worked indeed. You can select the artists from your Ipod on Itunes and after highlighting the artists/albums affected, click NO on the compilation box and the issue is resolved: the artists appear on the list.
    Thank you so much!!!!.

  • I'm note a firefox geek, but ever since my friend told me to install NoScript I can not access my msn and hotmail page. It tells me that Java Script is required, what ever that is. What do I do next. Do I uninstall the No Script. Thanks Ed

    I'm note a firefox geek, but ever since my friend told me to install NoScript I can not access my msn and hotmail page. It tells me that Java Script is required, what ever that is. What do I do next. Do I uninstall the No Script. Thanks Ed edit
    Details

    You are on Windows 2000, you do not have a "Firefox" button, and should consider yourself to be fortunate in that you still have menus and don't have to do anything to get the menus back instead of the "Firefox" button. (The same applies to Windows XP users).
    Use the "File" menu to get to Import. You are not on Windows 7 or Vista, and don't have to put up with the nonsense added for Aero.
    If you want the "Firefox" button you can get it with View -> toolbars -> (uncheck) Menu Bar. The menu bar and the "Firefox" button were supposed to be mutually exclusive (which is impossible in some cases without being incompatible).
    Once you are using the "Firefox" button ...
    Use the "Alt" key to view the menu bar (temporarily) containing File, Edit, View, History, Bookmarks, Tools, and Help. On Windows 7 and Vista, the menu bar was hidden by default in Firefox 4 and above. These menu items are more or less available under the "Firefox" button which has the most used of the built-in Firefox menu items available in a different format.
    To get back to having menus again. "Firefox" button -> Options (second column) -> (check) Menu Bar
    You can make '''Firefox 7.0.1''' look like Firefox 3.6.*, see numbered '''items 1-10''' in the following topic [http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface Fix Firefox 4.0 toolbar user interface, problems (Make Firefox 4.0 thru 8.0, look like 3.6)]. ''Whether or not you make changes, you should be aware of what has changed and what you have to do to use changed or missing features.''
    * http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface

  • Please Help! Can't move forward.Portfolio Recovery and Stellar Recovery. WHAT'S NEXT?

    I have the same story most have heard 100x. When I went away to college I racked up debt and made poor financial decisons because I didn't have a good concept of money and Credit. Credit like most teens was this invisible forever giving gift and if I paid the minimums I would be ok'. Suprisingly, my minimum wage retail job didn't provide a stable income and my balances grew. I got overwhelemed really quickly and instead of dealing with the issue. I did a out of sight out of mind. Fast forward to present and I am cleaning up all the mess I made at 18-21 Y.O.  From this site I have made a some nice leaps to the right direction. Last year around this time I was at a 420 now I am at a 612! Recently got engaged and me and my Fiancee are looking to purchase a home by the end of this year/ begining of next year. My income is stable, my career is stable, I have a little savings. The only thing holding me back is CS. I thought my best way to move CS faster is to get my 2 Collections deleted. One is from Stellar Recovery for 152 (old comcast bill/cable) from 2013 and the other is from Portfolio Recovery for 676 (I think old BestBuy cc) from 2012.  I sent Stellar Recover a DV letter it arrived today. I sent the letter because I have heard a lot of positive things about Stellar. That they delete a lot of accounts and they do so quickly. Also, with such a low balance, I am hoping they feel it's not worth the man hours to even try to look for the information. In terms of Portfolio Recovery I sent a DV letter but the address was wrong (got the alert today) so I called Fedex and asked them to return it. I think that might have been a great mishap. I have read many articles and PR and they seem to be known as the Sharks of the Debt Collectors and sometimes sending DV is a death sentence. I recently read article that you may not even be on their radar but when you send a DV you are letting them know you are a person who is conscience about his/her debt and wants to fix it; it's like blood in the water. They will now pursue you without abandon and possibly sue. My question is, should I send the letter or leave it be? I'm just worried since I am in SOL for both I don't want to draw unnessary attention but I also feel like a waiting duck and desperately want to move forward in my life.

    In the same article the repoter was talking to some of the Employees. A staff memeber is quoted as yelling out "We got one" it was a man who had some really large medical expenses and had been unemployed for a very long time. As soon as he got his first paycheck they started in on garnishing his check. They are ruthless. I understand thay "we" owe debt and I understand it should be paid. But sometimes I think we forget about the hummanity of it all.  Your post was really helpful. I can learn from what you went through and avoid PR NightmareCthulhunoodle wrote:
    They absolutely do. They informed me they had another debt under my name. From 1997. Well past the statute of limitations on that one, but I'm sure it won't stop them. Thank goodness I'm smart enough to hang out on this forum and seek sound advice. And the kicker... at the end of the phone call in which I'd paid my years long debt, they asked me why I'd defaulted in the first place. "Pregnant, lost my job and had to move into my mother-in-law's house. Bad time all around." She asked if I was employed now. I answered in the affirmative. Who's your employer, came next. My answer: "I'd prefer not to say." I'm sure if I'd replied it would be logged in a database somewhere, waiting to be used.
    and be on the offense of the situation and not defense.

  • Playlists and the previous/next buttons

    Once again, Encore proves to be difficult to work with. I have a bunch of m4v and matching ac3 files that I want to put into Encore to create a Blu-ray. However, I cannot place them all in a timeline and be done with it. Because of the null space at the beginning and/or end of the ac3 files, Encore insists on rebuilding them (to stereo instead of 5.1).
    One thing I read as a workaround was to use a playlist. I tried that, and set the end action for each timeline to go to the next timeline. Works swell. However, there is no way to go to a previous timeline since each timeline acts like a seperate item on the disc and not as part of a whole movie. Is there a way around this? Is there a way to get items in a playlist to act like a complete movie instead of individual items?
    I know another option is to just have one long ac3 file for the whole movie (as well as one long m4v video file), but this isn't really convenient. I like that Encore will tell me how much space is left on the disc as I drop items into timelines; creating one long video and audio file will leave me guessing at how long the move can be and will involve trial and error. On top of that, I will have to scrub through the whole timeline and manually add chapter marks (this is how I did it on my first project). It is a pain.
    There has to be a way to use multiple ac3 files in Encore for a movie without them getting transcoded while having all the clips act as one complete movie instead of individual items. At least I hope there is a way...

    Thanks for the replay. I guess what I will do is render all my video clips, drop them in Encore, and stop when I get within a couple of gigs of the disc limit. Then in premiere I will put all the clips together and render out the audio, and then drop the one audio file in Encore.
    I know adding chapter markers in Encore is not hard, but it is tedious when you have one long video file and you have to scrub through the whole thing to add them.
    Is there another program that will let me use multiple ac3 files in a timeline and keep them as 5.1?

Maybe you are looking for

  • How can i call one report from another report (Drill Down Approach)

    Hi Friends, I've two reports in completely different layout format. One is in Crosstab & another is in Tabular. Now i want to call my Tabular report(report 1) from my Crosstab (report 2) without using BO's default drill down feature. Or, you can show

  • Report Writer GR55 Report drill down line items

    Hi all, We have a GLT0 Report in Report writer. The system correctly executes the report and displays account balance for the period. The Report calls T-code FBL3 for display of line items(report/report interface). But when we drill down, the line it

  • Acrobat versions and form

    Is there a way to keep a form from opening in an acrobat version lower than 8.x.  When opening the form in a lower version, Acrobat offers to upgrade. But if you  don't, it will still open, but some of the form doesn't work or display correctly.  I w

  • IView Execution Time Report

    Hi gurus! Is there any report on NetWeaver to get iview execution time? I've defined several iviews on my EP that run ABAP WD and connect with PI environment. I need to trace execution time to know time spent on each interface. Thanks a lot. Best reg

  • Nexus 7k EEM Script

    I had plans to configure a EEM script to send a email when an OSPF adjacency drops. I have an odd spanning-tree issue that I believe the drops are related to and I want to see if my suspicions are correct. This doesn't happen very often, and it's nor