Help for scrolling in a panel

Hi,
I have a question. I am sure some of you have seen in Webpages and in some applications where they do not have scroll pane but as we move our cursor up at the top of the window, the image that was hidden before gets seen. Also as we move the mouse cursor towards the bottom of the window, the images kind of scroll and new images can seen. For example, if we have total of 20 images and only 10 for them fit in a window, we can have all the 20 in such a way that only 10 of them are visible in the window but as we move our cursor toward the top of the window the other images just slowly appear in the window one by one. It is like scrolling but without the scroll bar. I am not sure if I made myself clear here about what I am looking for. I need to get the same behavior in my application and I have no idea how they do it. My boss has asked such feature to be done. If you have any idea or could point some useful information, that would be very helpful.
Thanks a lot in advance!

In the future, Swing related questions should be posted in the Swing forum.
Read the JComponent.setAutoscrolls(...) API. You should be able to modify the code posted there for your purposes.

Similar Messages

  • Need Help for Installing TK ACTIONS PANEL for PHOTOSHOP CC

    I recently just subscribed to Photoshop CC. And the first thing I try to do is to install the TK ACTIONS PANEL into photoshop.  I did what I used to do with CS5 to install the TK ACTIONS PANEL. I follow the instruction the same way, but I couldn't get the panel install. Instead I got a message " Load panel xml error Error #2032 ". Please HELP!!!

    Panel extensions were are developed using Adobe configurator and there were several versions and there needs to be a different install developed for each panel extension for each version of Photoshop there seems to be no compatibility between Photoshop versions each gets it own copy of everything.  I developed a panel for one of my packages but don't use it or distribute it. Instead I just link Photoshop Scripts path to my scripts path and use a single copy of my scripts for all versions of Photoshop, I address Photoshop incompatible change in my scripts maintain a single script by adding code to test for Photoshop version in functions that need to be coded for various versions of Photoshop,

  • Help for solar battery, solar panel, solar charger!

    Hi to all,
    a solar battery = solar charger=solar panel ?? Today, my friend argue with me about the difference between *solar battery*, *solar panel* and *solar charger*... Is there anybody who can tell me the difference between them?? And does anyone have any experience with an easy to use solar charger than can be used to charge a laptop battery? I'm trying to help a friend out and i've got no experience with these.
    I really appreciate, thanks!

    No experience here.....but I did a little Googling and came up with this...
    http://en.wikipedia.org/wiki/Solar_cell
    ....and for shopping...
    http://www.treehugger.com/files/2008/10/7-portable-solar-laptop-chargers-worth-c onsidering.php

  • Scrolling semi-transparent panels

    I have a parent panel that paints a custom background. Within that panel, I embed another panel held by a JScrollPane. My intent is to have the custom background show through on the panel that is being scrolled.
    To accomplish this, I set both the scrollpane and the viewport to non-opaque and then I set the panel held by the scrollpane to non-opaque as well.
    When I run the program everything works fine and the panel can be scrolled and displayes the background image just as I want it.
    Next, I want to set the panel in the scrollpane to be semi-transparent. I set the panel to opaque and give it a semi-transparent background color(ie alpha value or .5). This gives me a see-through effect and when I run the program it initially looks good. However, when I scroll the panel, the refresh is not handled correctly. The problem appears to be that the paint method of the parent panel is not being called.
    I think the scrollbar code incorrectly assumes that since the embedded panel is defined as opaque that the parent panels do not need to be painted. However, this assumption is only valid if the background color of the embedded panel has an alpha value of 1.0
    Does anyone have a workaround for scrolling semi-transparent panels?

    On second thought, that's going to cause a stack overflow. You are going to need a flag to not call it. Something like so:public void paint(Graphics g) {
        if (someflag) {
            someflag=false;
            bgPanel.paint(bgPanel.getGraphics());
            someflag=true;
        // do my painting stuff ... super.paint(g); ???
    }Just a thought, I haven't tested it.

  • HT204053 Enter the Apple ID you want to use for iCloud in Control Panel Network Internet iCloud.  Enter the Apple ID you want to use for store purchases (including iTunes in the Cloud and iTunes Match) in iTunes iTunes Store.

    Enter the Apple ID you want to use for iCloud in Control Panel > Network > Internet > iCloud. 
    Enter the Apple ID you want to use for store purchases (including iTunes in the Cloud and iTunes Match) in iTunes > iTunes Store.

    Welcome to the Apple community.
    iTunes and iCloud and different accounts, you will need to delete both accounts from your device before adding the new details in their place.
    For iCloud go to settings > iCloud, scroll down and hit the delete button. You can then sign back in using your correct details. For iTunes go to settings >store, tap your account ID and then sign out, you can then sign back in using your correct Apple ID.

  • Search Help for a Field of a Table Control

    I have designed a screen using 'Table Control' with fields like Date, BoxNo,Quantity etc. Kindly tell me how to go about providing a search help for the field 'BoxNo' of this table control so that the user is not required to scroll down the entire table/list for selecting a particular box no.
    Thanx in advance,
    Alok.

    When you go to screen painer, in screen painter attributes window, there is an atribute called search help, fill it.
    Another way is, after PAI put:
    PROCESS ON VALUE-REQUEST.
      FIELD box_no MODULE f1_help_box_no.
    And gives logic in that module using FM F4IF_INT_TABLE_VALUE_REQUEST.
    Regards.

  • Need help for Format HD

    Hi I need Help for Formating HD so Wat Key need hold on start up for format HD I apprciated you Help

    Jesus:
    Formatting, Partitioning Erasing a Hard Disk Drive
    Warning! This procedure will destroy all data on your Hard Disk Drive. Be sure you have an up-to-date, tested backup of at least your Users folder and any third party applications you do not want to re-install before attempting this procedure.
    • With computer shut down insert install disk in optical drive.
    • Hit Power button and immediately after chime hold down the "C" key.
    • Select language
    • Go to the Utilities menu (Tiger) Installer menu (Panther & earlier) and launch Disk Utility.
    • Select your HDD (manufacturer ID) in left side bar.
    • Select Partition tab in main panel. (You are about to create a single partition volume.)
    • _Where available_ +Click on Options button+
    +• Select Apple Partition Map (PPC Macs) or GUID Partition Table (Intel Macs)+
    +• Click OK+
    • Select number of partitions in pull-down menu above Volume diagram.
    (Note 1: One partition is normally preferable for an internal HDD.)
    • Type in name in Name field (usually Macintosh HD)
    • Select Volume Format as Mac OS Extended (Journaled)
    • Click Partition button at bottom of panel.
    • Select Erase tab
    • Select the sub-volume (indented) under Manufacturer ID (usually Macintosh HD).
    • Check to be sure your Volume Name and Volume Format are correct.
    • Click Erase button
    • Quit Disk Utility.
    cornelius

  • Need Help for Nokia 6500 slide

    Hi all I'm A new Guy here ,
    But I do really need help for hard reset my phone
    I already try *#7073# But It doesn't work ,
    If Anybody know to make a hard reset please help

    rwss wrote:
    I'v got te same problem with my 6500 Slide, is there a button combination that we have to press
    to hard reset the 6500 Slide?!
    How does the 6500 slide hard reset?
    That's simple.
    All you have to do is:
    From MENU goto SETTINGS, When there scroll down and select 'Restore Factory Setting'.
    There are two options in there:
    "Restore Settings only"
    and
    "Restore all"
    Select "Restore All"
    When done the phone will delete every thing on the Phone memory(C:\)(contacts,picture,messages etc)
    and also restore phone to its original settings and will restart.
    This proceedure is mostly common on S40 phone.
    Hope this explain and solve the problem.

  • Part number for DV2535EA palm rest panel

    I'm trying confirm the part number for palm rest top panel for a DV2535EA (p/n GJ032EA#ABU )Anyone help on this !many thanks ...

    Hi Rod_RAB,
    Welcome to Lenovo Community!
    As per the query we understood that you are looking for LCD panel for your Lenovo G50-30.
    You can use any of the above 3 parts, all are supported. Suggest you to visit nearby authorized service center for genuine Lenovo parts.
    Please click here to visit the Lenovo support link and select your region to get the contact number.
    Hope this helps!
    Best regards,
    Hemanth Kumar
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • I need heed help for Handle the JButton

    hi, guys
    I am writing a small program
    It has name and number field.
    It also has the first, privious, next , last and add buttons.
    i want to load the myData.txt file to the name and number field.
    and I want to make the buttons handle the events.
    and when the application is closed, it will save the data into the files.
    I can assign the the add button to save the files, and save the data when it is closed, but I can not make it save more than one record.
    i need ur help to the rest of the buttons, and load the file back to the field.
    andy suggestion would be great!
    Thank !
    here codes
       import javax.swing.*;
       import java.awt.event.*;
       import java.awt.*;
       import javax.swing.event.*;
       import java.io.*;
        public  class buttonAction extends JFrame
          private JLabel nameL;
          private JLabel numberL;               
          private JTextField name;
          private JTextField number;
          private JButton first;
          private JButton prev;
          private JTextField current;
          private JButton next;
          private JButton last;
          private JButton add;
          private JButton exit;
          private final int winw = 410;
          private final int winh = 200;
           private buttonAction()
             super("Wage Calculate");
             setSize(winw, winh);
             setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
             addWindowListener(new Closing());
             setLayout (new BorderLayout());
             loadData();        
             buildPanel();
             buildButtomButtons();
             setVisible(true);
           private void buildPanel()
             nameL = new JLabel("Name:");
             numberL = new JLabel("Number:");
             name = new JTextField(10);
             number = new  JTextField(5);
             JPanel panel =new JPanel();
             panel.setLayout(new GridLayout(2,1));
             panel.add(nameL);
             panel.add(name);
             panel.add(numberL);
             panel.add(number);
             add(panel, BorderLayout.NORTH);
           private void buildButtomButtons()
             first = new JButton("First");
             prev = new JButton("Prev");
             current = new JTextField(5);
             current.setEditable(false);
             next = new JButton("Next");
             last = new JButton("Last");
             add = new JButton("Add");
             exit = new JButton("Exit");
             JPanel button = new JPanel();
             first.addActionListener(new ButtonListener());
             prev.addActionListener(new ButtonListener());
             current.addActionListener(new ButtonListener());
             next.addActionListener(new ButtonListener());
             last.addActionListener(new ButtonListener());
             add.addActionListener(new ButtonListener());
             button.add(first);
             button.add(prev);
             button.add(current);
             button.add(next);
             button.add(last);
             button.add(add);
             add(button, BorderLayout.SOUTH);
            // save the data into the file when the application is close
           public class Closing extends WindowAdapter
              public void windowClosing(WindowEvent e)  
                try {
                   PrintWriter out = new PrintWriter (new FileWriter("myData.txt"));
                   out.println (name.getText());
                   out.println(number.getText());
                   out.close();
                    catch (IOException ee) {
                   // Happens if the file cannot be written to for any reason
                      JOptionPane.showMessageDialog(null, "Could not save the file " + ee.getMessage());
                System.exit(0);
           private void loadData()
             try {
                BufferedReader fileReader = new BufferedReader(new FileReader(new File("myData.txt")));
                String lineRead = fileReader.readLine();
                  // I need help how to load the data
                 catch (FileNotFoundException e)
                   e.printStackTrace();
                 catch (IOException e) {
                   e.printStackTrace();
            //handle the first, previous, next, last, add buttons
           private class ButtonListener implements ActionListener
              public void actionPerformed(ActionEvent e)
                Object button = e.getSource();
                if (button == add)
                   try
                      PrintWriter out = new PrintWriter (new FileWriter("myData.txt"));
                      out.println (name.getText());
                      out.println(number.getText());
                      out.close();
                       catch (IOException ee)
                      // Happens if the file cannot be written to for any reason
                         JOptionPane.showMessageDialog(null, "Could not save the file " + ee.getMessage());
                        //I need help for the first, privious and last buttons
           public static void main(String[] args)
             buttonAction pr = new buttonAction();
       }

    are you trying to load a multi line textfile int a JTextField? If you try to load this in a while loop as you read the file, it will zoom through the file, and you will probably only see the last line of the file (or nothing if the last line is blank) in the jtextfield. Consider using a JTextArea or some other component that can hold multiple lines. Also your file reading method calls look wrong to me. You appear to read a line, then continually check if that one read line is null, and if not do a while loop, that looks to loop forever. Look at the java I/O examples for how to do this right.
    Good luck

  • Different user settings for scrolling in tables or ALVs

    Hi Experts,
    I have a strange problem.
    I have a Web Dynpro Application that uses the UI Element table. For one user who uses it the scrolling mode is a scrollbar and for an other user the scrolling mode is a paginator. That appears not only for this application. ALL applications on the system have this difference for users. So, not only in tables does that appear. In ALVs too!
    Does anybody know where I can configure this for every single user?
    Thanks a lot!
    Best regards,
    Ingmar

    The only thing I can figure is that the user getting the paginartor has accessibility turned on:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/19/e64941bfb4de2be10000000a1550b0/frameset.htm
    That is the only option I know of that should override the system or application settings for scrolling.  In particular accessibility can be turned on at the user profile level:
    To do this, in transaction SU01 for your user name choose the tabstrip Parameters, insert the parameter ID ACCESSIBILITY_MODE with the value X, and save the entry.
    Or within the portal:
    To do this, in your user profile in the portal, under General Information select option Activate Accessibility (Screen Reader Required) and save your entries. This specification is evaluated by Web Dynpro ABAP.

  • Stage overflow settings for scroll to anchor

    Hi,
    I'm trying to do "scroll to anchor" functionality like the one here:  Edit fiddle - JSFiddle
    My code only works if the Stage's overflow is set to hidden.
    var anchorId = sym.$('#feature02');
    $('html, body').animate({scrollTop: anchorId.offset().top}, 500);
    I'm pulling in content from a json file (generated by a content management system), though, so I don't know how long the resultant page will be.  Also, it looks like the max Stage height setting is 10000, which is too short.
    So, overflow set to auto lets me see all of my content but kills my "scroll to anchor" functionality.  Also, an overflow set to auto causes a nasty double scroll bar on the windows side.
    Any thoughts?
    Thanks
    -Sherry

    Hi Heathrowe,
    Thanks for your reply.  Visible seems to both work for "scrolling to anchor" and fixing the nasty double scroll bar.  Thanks so much.
    Regarding #feature02:  I'm pulling in the data via a json file, then wrapping an anchor tag around the id:
    output += '<a id="feature0' + val.id + '" name="feature0' + val.id + '"> </a>';
    I'm then referring to it from the button with this:
    var anchorId = sym.$('#feature02');
    Which follows the "Work with elements directly" section of the JSAPI:
    "Accessing imported HTML content through actions can be done by using sym.$("#myId"); to target the ID or class of your element."
    Thanks again.  I'm embarking on a major Edge Animate / Kentico CMS project, so I can use all of the help that I can get.
    -Sherry

  • What does a new non-DE user need? | Help for a Wiki page

    Hey Archers,
    I'm using Arch with the Compiz Standalone Window Manager and I need some help for a project.
    It turns out (who knew) that computers need a lot more to run smoothly than just a desktop and applications. You need network managers, gtk themes and much much more. Now, Desktop Environments such as GNOME and KDE provide a lot of these programs built-in, good for them, but I'm looking to build my system as dependency-free as I can and the big DE's don't really provide that. Especially GNOME just ropes me in whenever I want to use the tiniest piece of it (darn you gnome-keyring).
    So I come to you fora, with a quest for information. I want to compile an overview of essential and useful applications with minimal dependencies that allow a CompizIndy user to build his system freely. And if I get enough information, I want to turn it into its own page for the Wiki so it becomes easier to get started with a birds-eye view of what you need to flesh out your system (not exclusively for CompizIndy btw). So please help me!
    What applications/daemons/tools should a new system install? I'm not asking which ones are the best or worst or your favorites, just which kinds do you need --that aren't covered in the install guide--?
    For example it's advisable to get:
    Panel/dock
    desktop manager
    network manager
    compositing manager
    a tool for managing removable devices (ntfs-3g etc)
    a packer/unpacker
    a screensaver
    power management
    alt-F2 runcommand
    custom keybindings
    a user switch/logout manager
    a volume manager
    etc.
    So what do you recommend? What do you need to get up and going?
    Hoping to hear from you guys and girls,
    Matthias
    PS: if I'm doubling up on anything, please let me know and save me effort and embarassment ^_^
    Last edited by Matsjo (2011-01-28 20:37:26)

    There are many threads on this, although individual ones asking for "the best app to do XXX". You could try searching those. Also Search for the LnF Awards threads. you might find a few ideas there. We also have wiki pages for light-weight applications which might be useful
    Panel/dock  none
    desktop manager none
    network manager netcfg
    compositing manager none or xcompmgr (for basic compositing)
    a tool for managing removable devices (ntfs-3g etc) udiskie or udev rules or devmon
    a packer/unpacker coreutils eg - tar, bzip etc with an alias called "ex" in .aliases
    a screensaver none
    power management ???
    alt-F2 runcommand gmrun
    custom keybindings xbindkeys
    a user switch/logout manager none
    a volume manager see udiskie....
    BTW, if this is for you, then simply install Arch and use a non DE based WM --- eventually you will figure out what you are missing

  • Scrolling in Swatches Panel

    I am working a lot with color libraries, most often pantones. The art im working on comes from a designer and I want to put different colors on the art but it is mostly limited to 10 colors maximum. So I pick the colors I want to use and put it into a color group. But when I do this I would like to just hover above the swatches palette and then scroll up and down the list(small list veiw) as the library of colors has more colors then fit on the screen vertically.
    I guess that scrolling in any palette would be a good feature.
    Andreas

    For he love of God, YES! For that matter scrolling in ANY panel! When you have 150 layers in a complicated project (like maps) having to use the damned arrows, or worse yet dragging the bubble, is an absolute pain in the kiester! I can scroll panels in InDesign and Photoshop for Pete's sake!
    . . . and make it snappy!

  • ScrollBar event for scrolling or paging?

    Does anyone know if there is an event that can be listened
    for on a ScrollBar that is kicked off when the user content either
    scrolls left or right by clicking on the arrows of the track? I
    can't find an event like that in the documentation but it seems
    like it should be there.
    Thanks in advance,
    Todd

    The only thing I can figure is that the user getting the paginartor has accessibility turned on:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/19/e64941bfb4de2be10000000a1550b0/frameset.htm
    That is the only option I know of that should override the system or application settings for scrolling.  In particular accessibility can be turned on at the user profile level:
    To do this, in transaction SU01 for your user name choose the tabstrip Parameters, insert the parameter ID ACCESSIBILITY_MODE with the value X, and save the entry.
    Or within the portal:
    To do this, in your user profile in the portal, under General Information select option Activate Accessibility (Screen Reader Required) and save your entries. This specification is evaluated by Web Dynpro ABAP.

Maybe you are looking for

  • Cannot open Dreamweaver due to Java error.

    I have reviewed the other posts regarding this topic and have not found an answer that works for me. I am using Dreamweaver to update a website.  Upon opening Dreamweaver I receive the following message: "To open Dreamweaver, you need a Java SE 6 run

  • Can't download from the Mac app store

    Hi,  I was wondering if anyone else is having this issue. Anytime I try to download an app free or paid from the mac app store it goes to my doc but it doesn't download it just sits there and says it's waiting. also when I have an update for an app I

  • Items not clearing in account

    Hi Postings were carried out to clear previous vat return figures. The correct amounts were posted and this supposed to clear the previous figures. However the items remain as open when I display the account line items. Yet it has a clearing document

  • Search help on custom screen

    Hi, I have a question regarding search help on screen. I have searched, but did not find anything for my requirement. Here is my requirement............... I have a drop down on one of the field of the custom screen. This dropdown has three items to

  • Question about flash,xml

    I have a flash form, when people click submit, I want it be saved as an xml file. can anyone please tell me how to do this? I think I have to do this by php, isnt it?