JComboBox like History-Back in MS InternetExplorer

Hi
I am implementing GUI (Swing, 1.4.1) for application, which will be used to browse documents (scans jpg etc. and pdf and other formats). In the specification I have a sentence, that there should be possibility to go back to any previously browsed document, which should look similar and work exactly like History-Back button in MS InternetExplorer (but without "Back" label - only image) which looks like combination of a JButton (with left or right arrow - back - forward) and JComboBox (without this part, where selected item is displayed)
Does anyone have any suggestions how to do this?
I was thinking about modification of ComboBoxUI, but I've never touch UI, so I have no idea how to start with this and don't spend weeks on that.
Do You have any examples of something like this, any suggestions, sources or whatever?
Thank You
Maciek

You dont need to use a combo-box for the History feature.
All you need are two JButtons, a JPopupMenu & a JTextField as follows:
|--------------|-------|--------------|
|JB1 |JB2 | JTxtField |
|------------------------------------
The first JButton acts as the 'Back' button.
The second JButton will simulate as a drop-down combo.
When the second button is clicked, the popup menu will be displayed in the location.
As for the data structure to hold the data, the best would be a 'java.util.Stack' since all the History data is accumulated in a Last-In-First-Out manner.
So whenever a address is typed in the textField, it gets added to the stack.
When JB2 is clicked, the popup menu is displayed will all elements from the stack(in order).
Regards,
javaUI

Similar Messages

  • To replace the Text like "History,Back" with Images in Page Title bar

    Hi All,
    My requirement is to change the Text like "History,Back Forward" Texts with the Images in the Page Title bar.Under theme editor I dont have an option to replace with Image.
    I checked with the com.sap.portal.navigation.pagetoolbar.par file.I am not getting exactly where to replace the Text with Images.
    Please let me know if I am referring to the correct par file and where to make changes.
    Regards
    Akshaya
    Edited by: Akshaya Bhat on Jun 9, 2009 2:58 PM

    Hi,
    It depends if the WDJ application has made another navigation.
    History saves any navigations made by the user (TLN/DTN,etc) or navigation done by applications in code (wdDoNavigate, EPCM.doNavigate).
    So it can go back to previous view , or previous iview the user was at...
    Regards,
    Tal.

  • I have bought itunes songs on an ipad with my daughter apple id. i would like to back them up on the same computer I sync my iphone with using my apple id but they will not transfer. Both iphone and ipad have only been synced on the computer mentione

    I have bought itunes songs on an ipad with my daughter apple id. i would like to back them up on the same computer I sync my iphone with using my apple id but they will not transfer. Both iphone and ipad have only been synced on the computer mentioned since they were purchased. Is there any way to get the ipad music transferred to the computer?

    And they were definitely purchased from the iTunes store, they show on the account's purchase history (Store > View Account on a computer's iTunes, or you can view the last 90 days purchases via http://reportaproblem.apple.com) ?
    You could potentially log into the account on that computer's iTunes (Store > Sign Out to log out of your account, that will then change to a Store > Sign In option) and redownload them by clicking on the id towards the top right of the iTunes screen and Purchased on the popup :
    But that will potentially tie that computer to that account for 90 days : Manage your associated devices in iTunes - Apple Support
    Or do you have a different computer that you could redownload them on and then copy them over to that computer via a flash drive or memory card, and then add them to its iTunes via File > Add To Library ?

  • How can i restore history back to 8-27-11

    how can i check the history back to 8-27-2011. it looks like it clears history after one day.

    see posts here
    https://discussions.apple.com/message/18059769#18059769

  • Javascript history.back() doesnt fire in AIR html app

    I'm working on air app (html/ajax/javascript). I need to make a navigation feature, like a browser back and forward button in a page with iframe, all pages are on same domain.
    I have the following scenario:
    Adobe AIR (version 2.7.1) app that loads (air.HTMLLoader) index.php from mydomain.com
    index.php file has following design:
    <html>
        <body>
            <input type="button" value="< BACK" onclick="iframeID.history.back();">
            <input type="button" value="FORWARD >" onclick="iframeID.history.forward();">
            <ul>
                <li><a href="/page1.php" target="iframeNAME">page 1</a></li>
                <li><a href="/page2.php" target="iframeNAME">page 2</a></li>
            </ul>
            <iframe src="page_default.php" id="iframeID" name="iframeNAME"></iframe>
        </body>
    </html>
    So, this code works in FireFox, Chrome, Safari, but not in Adobe AIR app
    I can't find any documentation about this issue, really cant understand where is the problem, as i know adobe air uses webkit for web pages browsing like chrome and safari but only in air app this code doesnt work.
    I hope someone can help me.
    Thanks!

    http://forums.adobe.com/community/robohelp/airhelp
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Is there a way to get all of my old safari history back?

    I have a iPod touch 4g and I have recently restored iPod touch and it deleted all of my safari history that had some important things on it . So I am wondering if there is a way to get the history back.

    I sounds like you restored the iPod to factory defaults/new iPod.  In iTunes on yur computer go to iTunes Preferences. click on he Ddvices tab.  If the date of the backup file indicate that it it has the history you can restore from that backup.

  • How can I sync my iPad to a computer after syncing it to the iCloud? I have the option of setting it up new, or restoring to a sync from many months ago. I dont want to lose any apps but I would like to back up on computer. No auto sync like other devices

    How can I sync my iPad to a computer after syncing it to the iCloud? I have the option of setting it up new, or restoring to a sync from many months ago. I dont want to lose any apps but I would like to back up on computer. No auto sync like other devices.

    Plug it into your computer. Tell it to sync with "this computer" instead of iCloud. You shouldn't have to remove any apps. Otherwise, you can save the app data by using i-FunBox ( http://www.i-funbox.com/ ) just go to the "devices" tab and select 'user applications' and select all of your apps and tell iFunBox to "copy to pc" you're done! You have them all backed up.

  • The memory on my MAC is full. It holds 4GB of RAM of which 79GB are photos. I would like to back up my photos to an external drive but just don not know how. I do not wish to use time machine. How do I back up my photo library, then delete the them t

    The memory on my MAC is full. It holds 4GB of RAM of which 79GB are photos. I would like to back up my photos to an external drive but just do not know how. I do not wish to use time machine. How do I back up my photo library, then delete them from my MAC to free up that 79GB? Thank you.

    Hi
    Just to clarify a couple of points in your post.
    RAM (memory) is different from hard drive space. You have 4GB of RAM, but that has no bearing on the amount of drive space you have, of which we know that 79GB are photos.
    If those photos are in iPhoto, you should be able to move the entire iPhoto Library, from the Pictures folder, to your external hard drive. You can just drag and drop. Do not have iPhoto open while you're doing this. Once it's done, you can double-click on the moved iPhoto Library file to associate it with iPhoto, so that the app remembers where the library is for next time.
    One more thing. When you move a file to a different location, and then delete the original, you don't have a backup. You still only have one copy. So if that external drive dies, you will lose all your photos. Time Machine is a very good way to prevent this from happening. You should dedicate a different drive for Time Machine backups.
    Matt

  • Hi, I am going to reset my Macbook Pro to factory settings but I would like to back it up first. I have backed it up to an external Hard Drive so if I were to wipe the laptop, would i be able to retrieve all of my files and applications

    Hi, I am going to reset my Macbook Pro to factory settings but I would like to back it up first. I have backed it up to an external Hard Drive so if I were to wipe the laptop, would i be able to retrieve all of my files and applications. (Office Mac, Adobe CS6, Logic Pro)

    When OS X asks you to restore a backup, it will allow you to select what you want to restore from the backup, Just select the things you need, because if you select everything, you will be in the same status as before restoring the Mac to factory settings. This has nothing to do with erasing the hard drive
    It's OK to make backups with Time Machine

  • I run an itune 10.4 and would like to back up my entire library to a DVD, because I do not have an external hard drive to back it up to (as the "help" topic is sugesting). Is it possible and if so, can someone help me please.

    I run an itune 10.4 and would like to back up my entire library to a DVD, because I do not have an external hard drive to back it up to (as the "help" topic is suggesting). Is it possible?...and if so, can someone help me please.

    This is no longer done via iTunes.
    Use whatever CD/DVD burner software is installed on your computer.
    Add the iTunes media folder to the list of files/folders to burn to disc.

  • History back on non-english keyboards

    It appears that all non-english keyboards (meaning keyboards that does not have the [ and ] characters as a "singlepress-key"), can't use the history back and forward feature anymore. You need to use the mouse right-click feature or use the buttons in the menu. I'm using a Wacom Tablet and have my buttons are configured to history back and forward when Safari is an active window. I've tried to switch to US keyboard and make the shortcut in the Wacom software, but after I go back to my native language - Danish - it doesnt work. After Apple changed the option from backspace to command + [ and ], I cannot use the history anymore unless I have to use the mouse.
    Can anyone help?

    Hi Jim,
    That shouldn't be a problem at all, if you buy it in the US, the software will be in English, but should install just fine on her PC.
    I'm sure someone will give their input, some people here have bought players from other regions.
    Cat

  • Implement History, Back & Forward in custom code

    Hi All
    We have our custom developed Header Code, where we have controling Personalize, Logout, Favorite & Top level navigation code.
    I want to implement the SAP oup of box history, Back Forward functionality in custom developed code.
    Please help me how to implement SAP History, Back , Forward Functionality in our custom developed code.
    Thanks.
    Helpful answers must be rewared.

    The only way it wouldn't be available is if moving forward opens a new browser window. Look in the bottom right corner of the browser and see if you see a small number inside a box. That would indicate if you have more than one browser window open.
    If not, then it may be necessary for you to try to troubleshoot the phone. First step is to power the phone off/on. If that doesn't help, then the next step is a reset, which is done by holding the home and power button together until you see the Apple logo and then releasing, ignoring the slide to power off screen. If that doesn't help, a restore is next, first from a back up and if no change then as a new phone. However, I don't expect you are going to have to go that far.

  • I bought the Tiger woods 12 game for my ipad and also paid the 19.99 for the $2M. It has crashed my ipad a few times and when it restarted last time, it had no history of my progress or the $2M. How do I get my history back

    I bought the Tiger woods 12 game for my ipad and also paid the 19.99 for the $2M. It has crashed my ipad a few times and when it restarted last time, it had no history of my progress or the $2M. How do I get my history back or my money back for the game and the in-game expenses?

    The only one that can issue a PUK code is a carrier, which you've already made clear you don't have.
    If itunes does not recognise your ipad that may be another issue. What version OS is on your computer and what steps did you follow to uninstall itunes and then reiinstall itunes on your computer?
    And, do you at least see the sidebar on the left hand side of itunes?
    iPad not appearing in iTunes
    http://www.apple.com/support/ipad/assistant/itunes/
    Do you have another computer you can try?

  • When I code script window.history.back(); /script on a page due to a data validation problem, all browsers except Firefox redisplay the filled-out form page.

    When I use javascript "window.history.back()" because a user enter invalid text, Firefox returns to the page with the form on it but it clears out the form. All the other browsers go back to the previous page with the form filled out as it was when submit was entered.
    Firefox did not used to do this. I do not change browser settings from default to get this unfortunate behavior. This may mean Firefox is more secure, but only on a public computer. On a private computer, this sucks.

    See if this helps you.
    https://developer.mozilla.org/en-US/docs/Web/API/Window.history
    If not, try posting at the Web Development / Standards Evangelism forum at mozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox.
    http://forums.mozillazine.org/viewforum.php?f=25
    You'll need to register and login to be able to post in that forum.

  • How to implement a back functionally like the back of the browser

    Hi, I have a commandImageLink("go back") in a template jspx. How to implement the back functionally like the back of the browser with a managed bean method??. For know I m not using task flows.

    I think you can use a javascript method to go back to the previous browser page.
    http://javascript.about.com/library/blback.htm
    http://www.pageresource.com/jscript/jhist.htm
    http://www.w3schools.com/jsref/met_his_back.asp
    Perhaps you find something useful and related to backing beans here:
    http://adfdevelopers.blogspot.com/2009/04/some-handy-code-for-backing-beans-adf.html
    NA
    http://nickaiva.blogspot.com

Maybe you are looking for