Back Option for Window App

Hi,
say i have 3 pages called page 1 page 2 and page 3
I had made it such that page 1 and 2 will link to page 3.
However i would like to have a back button that goes back to the previous page that i had came from.
In this case, if i go from page 2 to 3, when i click on back button, it should link me back to page 2. if i go from page 1 to page 3 it should link me back to page 1.
I only want to have a back button.
can anyone tell me how i should go about doing it???
I am able to go back to only one page at this point.
          if(event.getSource() == backButton)
               main create =new main();
               create.setVisible(true);
               setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
               setVisible(false);
          }

However i would like to have a back button that goes
back to the previous page that i had came from.new JButton("Back");
In this case, if i go from page 2 to 3, when i click
on back button, it should link me back to page 2.I see...
if
i go from page 1 to page 3 it should link me back to
page 1.I see.
I only want to have a back button.I can tell.
can anyone tell me how i should go about doing it???How about storing the state of your application, so that it knows where it came from?
Also, you might want to use CardLayout instead of creatin new frames.

Similar Messages

  • Do not find the option for windows when I press the the option key during restart, since I downloaded Lion

    I still do not find any option for windows when I restart my mac when pressing the option key.  It used to go to windows when I pressed the option key during a restart but since I have downloaded Lion, it always go to mac.  I do not want to make a permanent switch. ANy suggestions on how to get back to using the option key?

    You probably need to reinstall your Windows machine.
    I'm not certain, but I have a feeling the install of Lion wipes it out, going by the number of threads started along similar lines since Lion's release.

  • HT2534 I want to use an iTunes gift card as the back up for in app purchases for a so called free app instead of my credit card or having my bank account emptied.

    I want to use an iTunes gift card as the back up for in app purchases for a so called free app instead of my credit card or having my bank account emptied.
    How can I do this? I saw something about gift cards can only be used for music or movies, not apps.

    You can use an iTunes gift card for app, music, movies and other media.To redeem one see:
    iTunes Store: How to redeem a code

  • Windows of excel and word pop up on desktop.i have unchecked the option for windows on pop.

    windows of excel and word pop up on desktop.i have unchecked the option for windows on pop.but still dey show up

    Whaat version of Mac OS X?
    When do the windows show up?

  • I am trying to purchase Creative Suite CS6 Design Standard. I own a Max OSX. I live in Germany.  When I try to order for Germany, it gives me only an option for Windows, not Mac.  How can I order?

    I am trying to purchase Creative Suite CS6 Design Standard. I own a Max OSX. I live in Germany.  When I try to order for Germany, it gives me only an option for Windows, not Mac.  How can I order?

    In Germany no telephone number nor web chat is available.  Searching on the Adobe site tells me that this forum is the only avialable means to ask consumer questions.  I am giving up and ordering from elsewhere.

  • Local Database Options for Windows Store Apps

    I am looking to create an application that will allow for entry of data from a user and write it to a database file system locally within the application.
    I am new to Windows Store type app development and are a senior developer for ERP systems for the enterprise which have rich databases and client apps that are built with a MVC type configuration. The app communicates with the database which is on the DB
    server (Oracle, IBM DB2, or SQL Server) and writes to the file system.
    For my startup applications I would like to have a simple CRUD type interface that writes to a DB that is part of the application and does not require a connection to a file server or DB server.  Internally I would like something with a few tables,
    etc.. that I can write to and then report from locally.
    In the Windows 8x development world, what is the best method and technology to use for Store Apps for this scenario?  What is the best approach? 
    Mike

    There is SQLite for Windows RT and Windows Phone.
    Search "SQLite" in vs extensions and updates

  • How do I get Windows XP onto my new mac running lion when boot camp only gives me the option for windows 7

    Hi   I have been trying to partition my hard drive on my new Mac so that I can run some windows specific programs and I wanted to use Windows Xp because I beleive it to be suitable for my needs + becuase its now an older OS it's cheaper.
    My version of Mac is running the Lion operating system and when I start up the boot camp assitant I only get the option to install windows 7. If I proceed and put in the XP installer disc I get a message "Installer disc not found- insert disc and wait a few moments".
    The Xp disc is supposed to be a full version- at least thats what the guy who sold it to me claims, anyone any solutions on how to proceed or do I have to buy Windows 7?
    Chris

    With OSX Lion Apple has removed support for Windows XP and Windows Vista from BootCamp.
    That leasves only Windows 7 as a viable option to use.
    You can however use Virtualization apps like the free VirtualBox to install and run XP on your Mac.
    Commercial ones are Parallels and VMWare Fusion.
    Stefan

  • Windows Pro upgrade with Hyper-V for Windows App development

    Hi
    I am just starting to develop my first windows phone app. I dowloaded Visual studio 2013 express on my windows 8 machine. I started to follow the Microsoft Virtual Academy, Develop Windows phone apps for Beginners with Bob Tabor.
    Anyway, when i try to run the Emulator, it tells me i need Hyper-V which my version of windows doesn't have. Apparently i need Windows Professional. Anyway, this costs about £100 to upgrade. Also, for the emulator i am told i need 4gb of RAM.
    Question 1: My laptop is an i5, 64bit machine, windows 8.1 normal edition, with 4gb of RAM. It says of which 3.88gb of ram is usable. Whatever that means?
    The minimum requirement for the emulator is 4gb, will it work on my machine which apparently has 3.88 ?
    Question 2: I already own a nokia windows 8.1 phone. A basic enough model. Instead of buying the upgrade for windows pro, is it a big hassle to run my test apps on that phone? How difficult is it to run a test build of an app on my phone? Can i run it via
    the inside of visual studio? Or do i need to go to file explorer, copy and paste files over to the phone, disconnect it from the laptop etc. How many steps are involved? If its a load of hassle i might be safer to just bite the bullet and buy the Windows pro
    upgrade.
    (although i am aware the emulator can't test some things that the actual phone can..eg near field communication etc.)
    Any advice?
    Regards
    Conor

    It's not that big of a hassle to debug your app by deploying it on your phone. It's just a matter of choosing Device instead of Emulator when you start debugging in VS.
    Some of the downsides are that your phone's screen must be on and not showing the lock screen, and the fact that you can only have a maximum of 2 apps installed on your phone for debugging purposes. If you start developing and debugging a third app, then
    you must first uninstall one of the other 2 apps to be able to deploy the third app to your phone. To my knowledge the emulator does not have such a limit. I believe there's a paid developer account option available somewhere if you want to raise the limit
    beyond 2 apps.
    Other than that, being tied to a single resolution as Dave mentioned is another downside to using a device.

  • Jabber 10.5 for Windows + App Dial Rules + Phone Control Mode

    I am using all 10.5. 
    I have Jabber for Windows integrated with Outlook.  I have Application Dial Rules set up to handle converting numbers to what I need by stripping, adding 9s, adding 1s, etc.  It all works great when I'm using Jabber as a soft phone. 
    My problem is that almost nobody in the company has a PC camera/mic/speakers.  So all of the Jabber clients will be in phone control mode.  Because the call originates from the phone and not from an application, the Application Dial Rules get bypassed.  I understand why this is happening but I'm hoping there is a way around it.  Is there some setting that tells CUCM to notice that there was a CTI call to the phone from an application requesting that it make the call or something like that where CUCM realizes that the request "initially" came from a Jabber client?
    OR is there some way for me to put in route patterns similar to the App Dial Rules but specify that those patterns are only available when the number is sent enblock so they don't mess with regular dialing? 

    Why dont you apply called party transformation rules and modify the called number as per your need.

  • Creating file in vs 13 for windows app

    I want to create a csv file in the root folder for my app. The file should be created only if it doesn't exist, if it exists it should just add data in new line in the same file.

    You can't rely on creating files where your programme is installed.
    Most users will not have create permission nowadays.
    You can easily prove this yourself.
    Open file explorer.
    navigate to a folder under programs where you have something installed.
    Right click on an empty bit and choose New on the menu.
    On my win8.1 machine I see Folder as the only option.
    They changed this since I think Win7 but maybe also Vista. 
    You should use AppData.
    This helper gets you the location of Appdata on the machine and adds your programme's namespace for a folder within that:
    public static class AppData
    public static string Location = Path.Combine(Environment.GetFolderPath(
    Environment.SpecialFolder.ApplicationData), System.Reflection.Assembly.GetExecutingAssembly().EntryPoint.DeclaringType.Namespace);
    This code here is serialising an object to FontDetails.xml in such a folder:
    private void Application_Exit(object sender, ExitEventArgs e)
    var fileName = Path.Combine(AppData.Location, "FontDetails.xml");
    if (!Directory.Exists(AppData.Location))
    Directory.CreateDirectory(AppData.Location);
    FontDetails fd = Application.Current.Resources["FontDetails"] as FontDetails;
    DataContractSerializer ser = new DataContractSerializer(typeof(FontDetails));
    var xmlSettings = new XmlWriterSettings { Indent = true, IndentChars = "\t" };
    using (var writer = XmlWriter.Create(fileName, xmlSettings))
    ser.WriteObject(writer, fd);
    Hope that helps.
    Technet articles: Uneventful MVVM;
    All my Technet Articles

  • Detail on High Availability options for Web Apps

    Hi,
    I do really struggle to locate actual information on Azure Availability offerings / capabilities...as an Infrastructure Architect it has bugged me for years now with Azure offerings!
    Something that simply states the availability within any local DC and options for true HA over 2 or more DC's.
    We are moving away from using Web Roles to Web Apps for solutions for our clients. I understand the principles of fault domains, etc. with Web Role requirements for min. of 2 to (mostly) avoid MS update disruption within a single DataCenter, but cannot locate
    similar info. with regard to Web Apps.
    Really appreciate if someone could point me to some appropriate detail as I've failed....
    (Also, cannot find anything on DocumentDB....)
    Many Thanks,
    Lee

    Hi,
    High Availability of a running service always comes with a cost, and priorities will be app-specific. If it's the web tier, then you may indeed want to consider hosting in multiple geo's. If it's a backend processing tier, sometimes it's "ok" to
    let a service go offline, as long as requests are queued up. If it's the storage system (preventing queueing of messages), perhaps an alternate queue in a different data center could be available for redundancy purposes.
    I would request you to check this article:
    https://msdn.microsoft.com/en-us/library/azure/dn251004.aspx
    Hope this information helps.
    Regards,
    Azam khan

  • Use MacMini server for windows apps and save for windows files ?

    My question : Office equiped mixed computers , aslo Windows and Mac,
    Could we use MacMini server for both machines, working by windows apps and / or to save and work with windows files on MacMini server  and with Mac as well?
    We woud use it for normal office work and get it by internet from other places as well
    windows apps: merchandising, invoice, word, excel, pictures editing, Outlook Express + the Mac apps
    thnx ,
    MACIren

    In general what you can do is: in OS X, use Windows in virtualization (aka emulation), as a "virtual machine" with VMWare Fusion, Parallels, or Oracle VM Virtual box.
    That way you have both operating system open side by side without having to reboot into one or the other operating system.
    Not sure whether you need a Mac Mini Server per se to do that, I do that with my MacBook Pro for instance. But the server would help since it has a quad-core CPU (more cores that you can dedicate to the virtual macine), and you can put the virtual machine on the second harddrive for better disk access performance. Was there some particular reason you were thinking of the Mini Server -- do you want to use server side Windows apps?
    Again I have that setup on my MacBook Pro using VMWare Fusion with an XP virtual machine. In the Windows, I only use Office 2003 and some company apps that are Windows only. With Fusion (and I'm sure the other apps can do it as well) you can set a "shared" folder so both Windows and Lion will see the contents of it for reading and writing. I believe with Fusion you can also do your entire Home directory, but I prefer to limit it to a single shared "work" folder.

  • J3680 All in One says no scan options for Windows 8.1. Used Photo Smart on Windows Vista.

    Prints, not scans with my 8.1.  Both HP products. Could I download Photo Smart?  Guy w/exact same printer had same problem & got no reply.  Any free HP info?  Can I take screen shot of photo and transfer to file?
    This question was solved.
    View Solution.

    Hi @ahpaige,
    I see by your post that you are able to print but not scan on Windows 8.1. I can help you with this.
    Did you download and install the Full Feature Software?
    HP Officejet J3680 All-in-One Printer Drivers.
    The classic Windows driver is probably installed, which provides basic functionality.
    Download and run the Print and Scan Doctor. It will diagnose the issue and might automatically resolve it. Find and fix common printer problems using HP diagnostic tools for Windows?
    If you need further assistance, just let me know.
    Have a nice day!
    Thank You.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

  • Options for Windows 7 users would be a useful addition to today's email on browsing privacay

    Thank you for the email regarding how to improve internet privacy.s however, as my new laptop OS is Windows 7, your infor was for XP - it was useless and wastded my time. Consider being more complete and accurate in your communications. ~~Wayne

    Actually the articles linked in the newsletter all have instructions for Windows 7 with instructions for XP in parenthesis. Maybe that's looked confusing. If so, please let me know.
    *[https://support.mozilla.com/en-US/kb/how-do-i-stop-websites-tracking-me#w_how-do-i-turn-the-do-not-track-feature-on_2 How do I turn the Do-not-track feature on?]
    *[https://support.mozilla.com/en-US/kb/Private%20Browsing?s=Turn+in+private+browsing&r=0&as=s#w_how-do-i-turn-on-private-browsing How do I turn on Private Browsing?] - This one has a Windows 7 video at the top of the page.
    *[https://support.mozilla.com/en-US/kb/Clear%20Recent%20History?s=Clear+Recent+History&r=0&as=s#w_how-do-i-clear-my-history How do I clear my history?] - also has a video at the top of the page.
    *[https://support.mozilla.com/en-US/kb/Clear%20Recent%20History?s=Forget+this+site&r=0&as=s#w_how-do-i-remove-a-single-website-from-my-history How do I remove a single website from my history?]

  • Back up for windows

    is it possible to make automatic backups for windows-based computers with time machine?

    TIme Machine is Mac only software. It is the smarts of the whole Mac backup system. The TC is the dumb as a board hard disk inside a wireless router. If you mean Time Capsule, yes, you can do automatic backups to Time Capsule.
    You need to get the computer setup to access the TC as a network drive. This can be problematic with Windows 8.. do this part before worrying about the other parts.
    Once you have network access to the TC disk.. you need a software for auto backup. Home edition OS since vista do not have the ability to use network drives for the built in MSbackup. Only pro and ultimate versions. This brilliant piece of marketing bought to you by a company who cares about your data.. cough.. gollum.. gollum.. !
    Windows 8 I have no idea.. it is and hopefully will remain a mystery to me. I abandoned ship at vista.. any company prepared to ship that rubbish... !!
    Anyway.. buy a network enabled backup software for windows.. there is probably 10,000 of them on the market. I use Macrium Reflect .. free to do full disks..
    Genie time line is a Time Machine like backup but pricey.

Maybe you are looking for

  • What is the Best settings in Compressor 3.5.3  for burning a DVD when the sequence is 1080 60i -- shot on P-2 -- DVCPO HD 1280x1080 29.97

    I tried a few changes in Inspector... Video Format such as - Field Dominance to Bottom First... and Quality to Automatic Bit Rate & Motion Estimation at Best. I think GOP and Extras are set on default ( IBBP, Closed 15 -IBBPBBPBBPBBPBP) & ("Add DVD S

  • Extending HContainer

    I've subclassed HContainer in order to provide a container with a background fill. If I add text components, it works well. But when I add a HStaticIcon component, doesn't show the component. I can see the HStaticIcon component is added and the space

  • Intensity Pro ?

    Total newbie with CS5 so here goes....Running Windows 7 Bootcamp on a MacPro have the Intensity Pro Card installed with newest drivers it works fine with the Vegas Pro install  but can't get it to display the CS5 output. It shows up as a Capture opti

  • Ethernet connection lost after update to 10.5.7

    I lost my Ethernet connection after the 10.5.7 update. I have checked all cables and ports. Any ideas?

  • "disconnect split stereo files" not working

    I'm trying to split a stereo audio file into two mono files (manual page 855): Disconnecting Split Stereo Files Both sides of a split stereo file are normally edited together. On occasion, however, you may need to edit one side individually. To disco