Using pen button to scroll / pan with default drivers

Hi all,
On a previous tablet pc I owned, I was able to set the pen button to be used to scroll / pan instead of right click. Using the default Lenovo drivers, I see an option to deselect "use pen button as right click", but I don't see where I can instead choose the scrolling option. Does that require the Wacom drivers to be installed? I'm trying to avoid that, since I don't need pressure sensitivity much and I seem to be the only person on this forum whose pen + touch isn't giving me problems, so don't want to unnecessarily change drivers. 
Thanks!

You need to test what the SelectedIndex is before you add or subtract 1 from the SelectedIndex.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
'move up through the items
If ListBox1.Items.Count > 0 Then
If ListBox1.SelectedIndex <= 0 Then
ListBox1.SelectedIndex = ListBox1.Items.Count - 1
Else
ListBox1.SelectedIndex -= 1
End If
End If
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
'move down through the items
If ListBox1.Items.Count > 0 Then
If ListBox1.SelectedIndex = ListBox1.Items.Count - 1 Then
ListBox1.SelectedIndex = 0
Else
ListBox1.SelectedIndex += 1
End If
End If
End Sub
If you say it can`t be done then i`ll try it

Similar Messages

  • How to create a button which scrolls down with the page automatically?

    Hello,
    I wanted to create a button which takes u back to the top of the page when pressed on, but I was wondering how to make it scroll down with the page on the right side automatically when some1 scrolls down the page.
    An example I saw was on tumblr.com
    P.S I'm a newbie, so please explain it clearly ;d.
    Thanks.

    Create a button, position it as fixed at the top right say,
    a button{
              position:fixed;
              top:50px;
              right:50px; 
    <a href="#home"><button> Button</button></a>
    The <a> is the link to take you to the top of the page
    Just be sure to set the id home on an element at the top of the page

  • How to use menu button on apple remote with mac mini

    I purchased a late 2012 mac mini and the silver remote. The remote automatically opens iTunes, plays and pauses songs, adjust the volume, and skips forwards or backwards just fine. I had no trouble linking it the the Mac Mini either. So we have established it is working and comunicating fine with my Mac. My question is: what the heck is the "menu" botton for and can I use it with my Mac Mini? I'm using OS X 10.9.2.

    The Menu button does nothing
    https://discussions.apple.com/thread/4143595
    There are apps that will help using the remote. See:
    http://andymurkin.wordpress.com/2013/10/07/fun-with-the-apple-ir-remote-part-1-m aking-it-work/

  • I have been trying to crop my grandson out of a picture and make him into an 8x10.  His face comes out fuzzy.  I have used effects buttons-sharpness, definitionm, etc with no good results.  Where should I go from there?

    Using I Photo I selected a photo of two people and tried to crop one out to make an 8x10 of that person.  Have tried numerouse times and have used the effects selection trying to make face clearer with no luck.  cropped photo is very fuzzy. 
    any suggestions or just give up?

    While we all have MacBooks in this forum not all of us use iPhoto. There's an iPhoto Support Community where everybody uses iPhoto. You should also post this question there to increase your chances of getting an answer.  
    https://discussions.apple.com/community/ilife/iphoto

  • Can i use the buttons in JOptionPAne instead of default

    sir
    i want to change means insert icon on the the ok and cancel buuton instaed of JOptionPane buuttons
    can i do and how?
    thanks

    import java.awt.*;
    import javax.swing.*;
    public class CustomOptionPane {
      public static void main(String[] args) {
        JButton buttonOne = new JButton("One");
        JButton buttonTwo = new JButton("Two");
        JButton buttonThree = new JButton("Three");
        JButton[] buttons = {
          buttonOne, buttonTwo, buttonThree
        for(int i = 0; i < buttons.length; i++)
          buttons.setIcon(new ImageIcon("images/T" + (i + 3) + ".gif"));
    JOptionPane pane = new JOptionPane("Your options are:",
    JOptionPane.PLAIN_MESSAGE,
    JOptionPane.DEFAULT_OPTION,
    null,
    buttons,
    buttons[0]);
    JFrame f = new JFrame();
    JDialog dialog = pane.createDialog(f, "Custom Option Pane");
    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    f.setSize(200,100);
    f.setLocation(300,400);
    f.setVisible(true);
    dialog.show();

  • Scroll pane issues

    I hope someone can help. I have designed a site and on
    certain pages there are scroll panes with jpgs. When I preview the
    movie on my computer everything seems to work fine. When I upload
    it to the server and look at the page the content that is supposed
    to be in the scroll pane is all out of whack. Then I reload the
    page and everything is fine. This only happens in Internet
    Explorer. It works fine in Firefox. Please look at the site
    www.gastropod.ca/new site/index2.html
    This is occurring mostly in the food menu and drink menu.
    Any help would be wickedly appreciated!!!!
    Thanks in advance.
    Ryan

    @sjmphoto0300: I have a Dell XPS 15 502X laptop (running Win 7 Home) and had the same scrolling issue as you in LR 3.6 when in the Library module only (the Develop module sidebar scrolling works fine). I could not scroll using my touchpad on the left or right pane unless my cursor was directly over either thin grey scroll bar or on the actual sidebar headings (e.g. "Catalog," "Folders," or "Quick Develop"). Mousing over the latter would only enable me to scroll until the cursor was no longer over the heading which was pretty useless.
    I have Synaptics TouchPad v7.4 installed. While I don't have an option in my Mouse properties to specify certain programs that don't scroll properly as mentioned in another post, I did find a solution that works for me!
    I had to do TWO things to get scrolling in the sidebars working properly:
    1) In this thread (http://forums.adobe.com/message/3888114#3888114) it was mentioned that the Synaptics scrolling graphic that appears (see screenshot below) interferes with scrolling and the scrolling graphic can be disabled with a registry tweak and then restart the Synaptics applications (2) or reboot.
    2) Right-click an empty spot on the desktop and go to Personalize > Change Mouse Pointers > Device Settings (Synaptics logo on tab) > Settings. Click on Scrolling on the left of the Synaptics Properties window > Scroll item under pointer. Click Enable.
    That got sidebar scrolling working without having to keep the cursor hovering above the skinny scrollbars. It seems like the Synaptics software doesn't recognize what area is always scrollable in Lightroom when "Scroll selected item" is selected.
    Hope this helps someone else out there.

  • How to re-position scroll pane contents?

    I have a JSplitPane where the top half of the component contains a list of topics and the bottom half contains a scroll pane with a text area inside it. The user clicks a list item and the text for it is shown below it.
    The problems is when the text area exceeds the viewable area, the bottom-most portion of the text is shown instead of the top-most portion. In other words, if the text contains 6 lines and the viewable area is 4 lines, I'm seeing lines 3-6 instead of 1-4.
    One would think this is a very easy solution, such as:
    SplitTextScrollPane.getVerticalScrollBar().setValue(0);
    However, that doesn't work (at least not in JDK 1.3.0c). How do you programatically scroll the text back to the top line?
    Thank you.

    Thanks, that worked.
    I'm still a little curious about how to manually control the position of a scrollpane's contents -- for example, when the scroll pane contains things besides a text area (such as a JList or something).

  • BUG: retrieving NCHAR value using ViewObject returns "???" with OCI driver

    Hi,
    after upgrading JDeveloper to 10.1.3.1 we cannot use OCI JDBC drivers, because they don't work correctly - characters, that do not exist in database character set (EE8ISO8859P2 in our case) are converted to "?". Thin driver works well. We need to use OCI, because we had some issues with RAC with thin driver.
    Test case is easy: create table with NCHAR column, populate with unicode data, create ViewObject to select from this table and it will work only with THIN and not with OCI driver. This worked well with 10.1.3.0. When I tried to directly connect to DB and select that table using java.sql.Statement, it worked with both drivers, that's why I suspect the mechanics inside ADF BC.
    I logged a SR for this in Metalink, but try this way as well, for someone else could hit the same problem.
    Thanks for any help,
    Viliam

    Hi,
    after upgrading JDeveloper to 10.1.3.1 we cannot use OCI JDBC drivers, because they don't work correctly - characters, that do not exist in database character set (EE8ISO8859P2 in our case) are converted to "?". Thin driver works well. We need to use OCI, because we had some issues with RAC with thin driver.
    Test case is easy: create table with NCHAR column, populate with unicode data, create ViewObject to select from this table and it will work only with THIN and not with OCI driver. This worked well with 10.1.3.0. When I tried to directly connect to DB and select that table using java.sql.Statement, it worked with both drivers, that's why I suspect the mechanics inside ADF BC.
    I logged a SR for this in Metalink, but try this way as well, for someone else could hit the same problem.
    Thanks for any help,
    Viliam

  • Installing archlinux with catalyst drivers

    Hello, i'm trying to use archlinux for a long time, but my notebook overheating with default drivers. My notebook has ATI 4650. When i try to install arch linux my notebook shuts down because of overheating while installing kernel packages. I even tried to put my computer to fridge it didn't work. I need to load kernel with catalyst drivers to install (I need a customized iso i guess). Please help me i wanna be an Archer so much

    Cdh wrote:
    You could try setting it to low power mode with the open source driver.
    First, look if  /sys/kernel/debug is empty.
    If it is, then as root:
    mount -t debugfs none /sys/kernel/debug
    Then as root again:
    echo profile > /sys/class/drm/card0/device/power_method
    echo low > /sys/class/drm/card0/device/power_profile
    I believe that should work from CLI-only too. But it may require a newer kernel than the one on the image (don't know what kernel the install image is at). If it doesn't work then you can use the not so official archboot image: https://downloads.archlinux.de/iso/archboot/latest
    But when it is while kernel install it sounds more to me as if the CPU was too hot since building the initramfs is only CPU intensive...
    Thanks. I will try these soon. I think GPU overheats then CPU makes the final straw during kernel install.

  • All web pages appear with a blinking cursor like in a "word document". i can't scroll down or up using the buttons of my key board. i have to pull down the scroll bar. something in settings has changed. how to correct it??

    all web pages appear with a blinking cursor like in a "word document". i can't scroll down or up using the buttons of my key board. i have to pull down the scroll bar. something in settings has changed. how to correct it??
    == This happened ==
    Just once or twice
    == 2 days ago.

    See also this article about caret browsing: http://kb.mozillazine.org/Scrolling_with_arrow_keys_no_longer_works
    In Firefox 3.6 and later versions you can disable the F7 shortcut that toggles caret browsing by setting the pref accessibility.browsewithcaret_shortcut.enabled to false.
    To open the ''about:config'' page, type '''about:config''' in the location (address) bar and press the Enter key, just like you type the url of a website to open a website.
    If you see a warning then you can confirm that you want to access that page.

  • Use "next" and "previous" buttons in two scroll panes

    Hello, I have a question about how to use next and previous buttons in two scroll panes. In fact, I plan to display two similar files (HTML) in two scroll panes seperately. the purpose is to find their differences, highlight these differences and finally traverse these differences one by one by using next and previous buttons.
    To realize this function, how should I mark their differences so that next and prevous buttons can recognize their locations? does anyone have idea?
    Thank you very much.

    Can "focus" resolve this problem? But how should I add focus to a line in one HTML files? Thank you.

  • New to Applets: Problems wiht writing to files and with scroll panes.

    Hi, I've recently graduated from university and so I have limited experience in java programming and I'm having some trouble with JApplets (this is the first time I've made one). I'm trying to make a simple program that will allow users to pick one of a few background images from a list (a list of jpanels within a scroll pane) then at the click of a button will output a CSS with the background tag set to the image location. This is for use on a microsoft sharepoint site where each user has a My-Sit area which I want to be customizable.
    So far I've been creating this program as an application rather than a JApplet and just having another class that extends the JApplet Class which then displays the JFrame from the GUI Class. This initially didnt work because I was trying to add a window to a container so I kept programming it as an application until I got it working before trying to convert it to a JApplet. I solved the previous problem by changing my GUI class to extend JPanel instead of JFrame and it now displays correctly but with a coupe of issues.
    Firstly the applet will not create/write to the CSS file. I read that applets couldnt read/write to the users file system but they could to their own. The file I wish to write to is kept on the same machine as the applet so I'm not sure why this isn't working.
    Secondly the scroll panel is no longer working properly. This worked fine when I was still running the program as an application when the GUI still extended JFrame instead of JPanel (incidentally the program no longer runs as an application in this state) but now the scroll bar does not appear. This is a problem since I want the applet to remain the same size on the page even if I decide to add more backgrounds to the list. I tried setting the applet height/width to smaller values in the html file to see if the scroll bar would appear if the area was smaller than the GUI should be, but this just meant the bottom off the applet was cut off.
    Could anyone offer any suggestion as to why these thigns arnt working and how to fix them? If necessary I can post my source code here. Thanks in advance.

    Ok, well my program is made up of 4 classes, I hope this isnt too much to be posting. If any explaination is needed then I'll post that next. Theres lots of print lines scattered aroudn due to me trying to fix this and theres some stuff commented out from when the program used to be an application isntead of an applet.
    GUI Class, this was the main class until I made a JApplet Class
    public class AppletGUI extends JPanel{
        *GUI Components*
        //JFrames
        JFrame mainGUIFrame = new JFrame();
        JFrame changeBackgroundFrame = new JFrame();
        //JPanels (Sub-panels are indented)
        JPanel changeBackgroundJP = new JPanel(new BorderLayout());
            JPanel changeBackgroundBottomJP = new JPanel(new GridLayout(1,2));
        JPanel backgroundJP = new JPanel(new GridLayout(1,2));
        JPanel selectBackground = new JPanel(new GridLayout(1,2));
        //Jbuttons
        JButton changeBackgroundJB = new JButton("Change Background");
        JButton defaultStyleJB = new JButton("Reset Style");
        //JLabels
        JLabel changeBackgroundJL = new JLabel("Choose a Background from the Menu");
        JLabel backgroundJL = new JLabel();
        //JScrollPane
        JScrollPane backgroundList = new JScrollPane();
            JPanel backgroundListPanel = new JPanel(new GridLayout());
        //Action Listeners
        ButtonListener bttnLstnr = new ButtonListener();
        //Controllers
        CSSGenerator cssGenerator = new CSSGenerator();
        Backgrounds backgroundsController = new Backgrounds();
        backgroundMouseListener bgMouseListener = new backgroundMouseListener();
        //Flags
        Component selectedComponent = null;
        *Colour Changer*
        //this method is used to change the colour of a selected JP
        //selected JPs have their background darkered and when a
        //different JP is selected the previously seleced JP has its
        //colour changed back to it's original.
        public void changeColour(JPanel theJPanel, boolean isDarker){
        //set selected JP to a different colour
        Color tempColor = theJPanel.getBackground();
            if(isDarker){
                tempColor = tempColor.darker();
            else{
                tempColor = tempColor.brighter();
            theJPanel.setBackground(tempColor);
         //also find any sub-JPs and change their colour to match
         int j = theJPanel.getComponents().length;
         for(int i = 0; i < j; i++){
                String componentType = theJPanel.getComponent(i).getClass().getSimpleName();
                if(componentType.equals("JPanel")){
                    theJPanel.getComponent(i).setBackground(tempColor);
        *Populating the GUI*
        //backgroundList.add();
        //Populating the Backgrounds List
        *Set Component Size Method*
        public void setComponentSize(Component component, int width, int height){
        Dimension tempSize = new Dimension(width, height);
        component.setSize(tempSize);
        component.setMinimumSize(tempSize);
        component.setPreferredSize(tempSize);
        component.setMaximumSize(tempSize);     
        *Constructor*
        public AppletGUI() {
            //REMOVED CODE
            //AppletGUI.setDefaultLookAndFeelDecorated(true);
            //Component Sizes
            //setComponentSize
            //Adding Action Listeners to Components
            System.out.println("adding actions listeners to components");
            changeBackgroundJB.addActionListener(bttnLstnr);
            defaultStyleJB.addActionListener(bttnLstnr);
            //Populating the Change Background Menu
            System.out.println("Populating the window");
            backgroundsController.populateBackgroundsData();
            backgroundsController.populateBackgroundsList();
            //loops to add background panels to the JSP
            ArrayList<JPanel> tempBackgroundsList = new ArrayList<JPanel>();
            JPanel tempBGJP = new JPanel();
            tempBackgroundsList = backgroundsController.getBackgroundsList();
            int j = tempBackgroundsList.size();
            JPanel backgroundListPanel = new JPanel(new GridLayout(j,1));
            for(int i = 0; i < j; i++){
                tempBGJP = tempBackgroundsList.get(i);
                System.out.println("Adding to the JSP: " + tempBGJP.getName());
                //Add Mouse Listener
                tempBGJP.addMouseListener(bgMouseListener);
                backgroundListPanel.add(tempBGJP, i);
            //set viewpoing
            backgroundList.setViewportView(backgroundListPanel);
            /*TESTING
            System.out.println("\n\n TESTING!\n Printing Content of SCROLL PANE \n");
            j = tempBackgroundsList.size();
            for(int i = 0; i < j; i++){
                System.out.println(backgroundList.getComponent(i).getName());
            changeBackgroundJP.add(changeBackgroundJL, BorderLayout.NORTH);
            changeBackgroundJP.add(backgroundList, BorderLayout.CENTER);
            //changeBackgroundJP.add(tempBGJP, BorderLayout.CENTER);
            changeBackgroundJP.add(changeBackgroundBottomJP, BorderLayout.SOUTH);
            changeBackgroundBottomJP.add(changeBackgroundJB);
            changeBackgroundBottomJP.add(defaultStyleJB);
            System.out.println("Finsihed populating");
            //REMOVED CODE
            //adding the Background Menu to the GUI and settign the GUI options
            //AppletGUI.setDefaultLookAndFeelDecorated(true);
            //this.setResizable(true);
            //this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            this.setLocation(500,500);
            this.setSize(400,300);
            this.add(changeBackgroundJP);
        //REMOVED CODE
         *Main Method*
        public static void main(String[] args){
           System.out.println("Creating GUI");
           AppletGUI theGUI = new AppletGUI();
           theGUI.setVisible(true);
           System.out.println("GUI Displayed");
         *Button Listener Inner Class*
        public class ButtonListener implements ActionListener{
            //check which button is clicked
            public void actionPerformed(ActionEvent event) {
                AbstractButton theButton = (AbstractButton)event.getSource();
                //Default Style Button
                if(theButton == defaultStyleJB){
                    System.out.println("Default Style Button Clicked!");
                //Change Background Button
                if(theButton == changeBackgroundJB){
                    System.out.println("Change Background Button Clicked!");
                    String backgroundURL = cssGenerator.getBackground();
                    if(backgroundURL != ""){
                        cssGenerator.setBackgroundChanged(true);
                        cssGenerator.setBackground(backgroundURL);
                        cssGenerator.outputCSSFile();
                        System.out.println("Backgroudn Changed, CSS File Written");
                    else{
                        System.out.println("No Background Selected");
         *Mouse Listener Inner Class*
        public class backgroundMouseListener implements MouseListener{
            public void mouseClicked(MouseEvent e){
                //get component
                JPanel tempBackgroundJP = new JPanel();
                tempBackgroundJP = (JPanel)e.getComponent();
                System.out.println("Background Panel Clicked");
                //change component colour
                if(selectedComponent == null){
                    selectedComponent = tempBackgroundJP;
                else{
                    changeColour((JPanel)selectedComponent, false);
                    selectedComponent = tempBackgroundJP;
                changeColour((JPanel)selectedComponent, true);
                //set background URL
                cssGenerator.setBackground(tempBackgroundJP.getName());
            public void mousePressed(MouseEvent e){
            public void mouseReleased(MouseEvent e){
            public void mouseEntered(MouseEvent e){
            public void mouseExited(MouseEvent e){
    }JApplet Class, this is what I plugged the GUI into after I made the change from Application to JApplet.
    public class AppletTest extends JApplet{
        public void init() { 
            System.out.println("Creating GUI");
            AppletGUI theGUI = new AppletGUI();
            theGUI.setVisible(true);
            Container content = getContentPane();
            content.setBackground(Color.white);
            content.setLayout(new FlowLayout());
            content.add(theGUI);
            AppletGUI theGUI = new AppletGUI();
            theGUI.setVisible(true);
            setContentPane(theGUI);
            System.out.println("GUI Displayed");
        public static void main(String[] args){
            AppletTest at = new AppletTest();
            at.init();
            at.start();
    }The CSS Generator Class. This exists because once I have the basic program working I intend to expand upon it and add multiple tabs to the GUI, each one allowing the user to change different style options. Each style option to be changed will be changed wit ha different method in this class.
    public class CSSGenerator {
        //Variables
        String background = "";
        ArrayList<String> backgroundCSS;
        //Flags
        boolean backgroundChanged = false;
        //Sets and Gets
        //For Variables
        public void setBackground(String theBackground){
            background = theBackground;
        public String getBackground(){
            return background;
        //For Flags
        public void setBackgroundChanged(boolean isBackgroundChanged){
            backgroundChanged = isBackgroundChanged;
        public boolean getBackgroundChanged(){
            return backgroundChanged;
        //background generator
        public ArrayList<String> backgroundGenerator(String backgroundURL){
            //get the URL for the background
            backgroundURL = background;
            //creat a new array list of strings
            ArrayList<String> backgroundCSS = new ArrayList<String>();
            //add the strings for the background options to the array list
            backgroundCSS.add("body");
            backgroundCSS.add("{");
            backgroundCSS.add("background-image: url(" + backgroundURL + ");");
            backgroundCSS.add("background-color: #ff0000");
            backgroundCSS.add("}");
            return backgroundCSS;
        //Write CSS to File
        public void outputCSSFile(){
            try{
                //Create CSS file
                System.out.print("creating file");
                FileWriter cssWriter = new FileWriter("C:/Documents and Settings/Gwilym/My Documents/Applet Data/CustomStyle.css");
                System.out.print("file created");
                System.out.print("creating buffered writer");
                BufferedWriter out = new BufferedWriter(cssWriter);
                System.out.print("buffered writer created");
                //check which settings have been changed
                //check background flag
                if(getBackgroundChanged() == true){
                    System.out.print("retrieving arraylist");
                    ArrayList<String> tempBGOptions = backgroundGenerator(getBackground());
                    System.out.print("arraylist retrieved");
                    int j = tempBGOptions.size();
                    for(int i = 0; i < j ; i++){
                        System.out.print("writing to the file");
                        out.write(tempBGOptions.get(i));
                        out.newLine();
                        System.out.print("written to the file");
                out.close();
            }catch (Exception e){//Catch exception if any
                System.out.println("Error: Failed to write CSS file");
        /** Creates a new instance of CSSGenerator */
        public CSSGenerator() {
    }The Backgrounds Class. This class exists because I didnt want there to just be a hardcoded lsit of backgrounds, I wanted it to be possible to add new ones to the list without simply lettign users upload their own images (since the intended users are kids and this sharepoint site is used for educational purposes, I dont want them uplaoded inapropraite backgrounds) but I do want the site admin to be able to add more images to the list. for this reason the backgrounds are taken from a list in a text file that will be stored in the same location as the applet, the file specifies the background name, where it is stored, and where a thumbnail image is stored.
    public class Backgrounds {
        //Array Lists
        private ArrayList<JPanel> backgroundsList;
        private ArrayList<String> backgroundsData;
        //Set And Get Methods
        public ArrayList getBackgroundsList(){
            return backgroundsList;
        //ArrayList Population Methods
        public void populateBackgroundsData(){
            //decalre the input streams and create a new fiel hat points to the BackgroundsData file
            File backgroundsDataFile = new File("C:/Documents and Settings/Gwilym/My Documents/Applet Data/BackgroundsData.txt");
            FileInputStream backgroundsFIS = null;
            BufferedInputStream backgroundsBIS = null;
            DataInputStream backgroundsDIS = null;
            try {
                backgroundsFIS = new FileInputStream(backgroundsDataFile);
                backgroundsBIS = new BufferedInputStream(backgroundsFIS);
                backgroundsDIS = new DataInputStream(backgroundsBIS);
                backgroundsData = new ArrayList<String>();
                String inputtedData = null;
                //loops until it reaches the end of the file
                while (backgroundsDIS.available() != 0) {
                    //reads in the data to be stored in an array list
                    inputtedData = backgroundsDIS.readLine();
                    backgroundsData.add(inputtedData);
            //TESTING
            System.out.println("\n\nTESTING: populateBackgroundsData()");
            int j = backgroundsData.size();
            for(int i = 0; i < j; i++){
                System.out.println("Index " + i + " = " + backgroundsData.get(i));
            System.out.println("\n\n");
            //close all stremas
            backgroundsFIS.close();
            backgroundsBIS.close();
            backgroundsDIS.close();
            } catch (FileNotFoundException e) {
                System.out.println("Error: File Not Found");
            } catch (IOException e) {
                System.out.println("Error: IO Exception Thrown");
        public void populateBackgroundsList(){
            backgroundsList = new ArrayList<JPanel>();
            int j = backgroundsData.size();
            System.out.println("number of backgrounds = " + j);
            backgroundsList = new ArrayList<JPanel>();
            for(int i = 0; i < j; i++){
                String tempBackgroundData = backgroundsData.get(i);
                JPanel backgroundJP = new JPanel(new GridLayout(1,2));
                JLabel backgroundNameJL = new JLabel();               
                JLabel backgroundIconJL = new JLabel();
                //split the string string and egt the background name and URL
                String[] splitBGData = tempBackgroundData.split(",");
                String backgroundName = splitBGData[0];
                String backgroundURL = splitBGData[1];
                String backgroundIcon = splitBGData[2];
                System.out.println("\nbackgroundName = " + backgroundName);
                System.out.println("\nbackgroundURL = " + backgroundURL);
                System.out.println("\nbackgroundIcon = " + backgroundIcon + "\n");
                backgroundNameJL.setText(backgroundName);
                backgroundIconJL.setIcon(new javax.swing.ImageIcon(backgroundIcon));
                backgroundJP.add(backgroundNameJL);
                backgroundJP.add(backgroundIconJL);
                backgroundJP.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
                //Name the JP as the background URL so it can be found
                //May be useful sicne the data file may need to contain 3 fields in future
                //this is incase the preview image (icon) is different from the acctual background
                //most liekly in the case of more complex ppictures rather then repeating patterns
                backgroundJP.setName(backgroundURL);
                //Add the JP to the Array List
                backgroundsList.add(backgroundJP);
            //TESTING
            System.out.println("\n\nTESTING: populateBackgroundsList()");
            j = backgroundsList.size();
            for(int i = 0; i < j; i++){
                System.out.println("Index " + i + " = " + backgroundsList.get(i));
            System.out.println("\n\n");
    }So thats my program so far, if theres anythign that needs clarifying then please jsut ask. Thank you very much for the help!

  • How can I get back the two button smooth scroll with Logitec optical marble mouse since Adobe Acrobat or FireFox updates on 10/26/2010 made it quit?

    Oct 25, 26 or 27 both Adobe Acrobat and Mozilla Firefox alerted me they had updates to install. Since I trust them both I installed them. However, since then my optical marble mouse from Logitech acted strangely different. The cursor did not move as usual. It didn't respond right. I thought it might have needed the dust wiped out, so I did that. It still acted sluggish when I tried to move it, it was as though it was "spinning its wheels" not going anywhere. I went to the Control Panel clicked on Mouse, and proceeded to look at the settings and set them to default. I then tried to use the universal scroll by clicking the two big buttons which showed a circle with cross hair arrows as usual. When the marble was moved forward or backward, the scroll had always been smooth allowing one to read the screen evenly and without holding any button down. Now it was jerky. Is this a problem from the last update? My version of Firefox is 3.6.12
    Thank you

    I am happy to see another person is having this jerky scroll situation with the latest update to Firefox on October 27. I did check my I.E browser and '''THAT BROWSER''' still does the nice smooth scroll....let's get 'er fixed Mozilla! I know you can!

  • How to make a scroll Bar with buttons

    Hi all,
    I am using Flash cs6 on an iMAC running 10.7.2
    I would like to know if anyone could please point me to a tutorial, showing "how to create a scroll bar with buttons". I am having a heck of a time finding a tutorial.
    Many thanks in advance.
    regards,
    DH

    http://learnola.com/2008/10/27/flash-tutorial-create-a-custom-scrollbar-with-actionscript/

  • How to make mouseover scroll buttons attached to textarea with external loaded text ?

    Hi,
    I am working in Flash CS3 and AS3, and I'm not good in
    scripting.
    I want to make a dynamic textarea with loaded text from an
    external textfile, and then I want custom made arrow buttons to
    start scrolling the loaded text on mouseover (not click) andt stop
    scrolling on mouseout. Ala like in this webpage:
    http://boomjinx.com/
    The part with the loaded text is fine, but I can't manage to
    script the arrow buttons to do what I've just described. Even
    though I have searched the Internet for recipes I just find how to
    scroll loaded text on click or with a scrollbar. This problem is
    starting to drive me crazy!! Is there anyone that have a recipe for
    this??

    Here's one approach:
    First you need to create a dynamic mutline textfield that has
    autoSize properties set to handle a varying amount of text.
    Then you need to embed the font because you are going to use
    a mask over the textfield to define the viewable area of it.
    Then you will use the buttons to change the textfield's y
    property to move the textfield up/down vertically. You will
    probably need to use an ENTER_FRAME event handler so that a
    continuous hovering of a button will cause the textfield to
    continue moving until it either reaches one end or the other or
    when the hovering ends.
    Before you try to tackle that though, just make it so that
    hovering a button will cause the textfield to move up or down one
    increment of distance. Just take it one step at a time.

Maybe you are looking for

  • Installing Sharepoint Foundation 2013 for FIM 2010 R2 SP-1

    Hi, As SharePoint Foundation 2013 is supported for FIM  2010 R2 sp-1 on windows 2012. I am trying to install the SharePoint  foundation 2013 on windows 2012. There are some prerequisite(like .net framework,windows Identity framework, sync, windows ap

  • Printing: The outputs print on a printer other than that specified on the u

    We are using activity profile on the shipment to trigger outputs at different statuses set on the shipment document. In order to have the output trigger based on activity profile we need to have the timing for these output types set to “3”. Now the o

  • Lead Questionnaire not displayed in WebUI

    Hi Experts, I have created a questionnaire in Lead settings and assigned to the transaction type. I have left out the determination criteria blank. When I run the lead transaction in Sapgui the questionnaire is displayed under the evaluation tab.The

  • Output changes although input doesn't

    Hi guys, I have a query. Firstly, I'm using JDK 1.3.1_02 and Forte for Java, Community Edition version 3 build 010925. I have written a class with a method that reads a String of 2 characters. Being hexadecimals, I use a switch statement with the che

  • Email password failed

    Yesterday I had to change my one of my emails password because it was hacked into... And it was the primer email for my bb 9330.  So I rest the password on the computer and went to my phone, and it say to verify the email..... So I did and it said fa