Basic help with ArrayLists

I'm doing a project in Java where I have to put numbers in a list, then shuffle them. Then I have to access those numbers and create a Bingo card. I've got everything down except for the accessing the numbers part. How exactly do I access integers from an array list? I read online that I should cast the elements in the ArrayList to an int, but I try that and get an incovertible types error message when I try to compile. Here is my code so far:
import java.util.ArrayList;
import java.util.Random;
import java.util.Collections;
* Numbers class -- will generate a list of numbers, shuffle them, and then have a method to return them to the Bingo card.
public class Numbers
    private ArrayList bingoB;
    int cnt;
    String testString;
    public Numbers()
       bingoB = new ArrayList();
       resetNumbers();
    public int getNumberB()
         int test = (int) bingoB.get(0);
         testString = "b-" + test;
         return testString;
    public void resetNumbers()
        for(cnt = 1; cnt <= 15; cnt++)
        bingoB.add(new Integer(cnt));
        Collections.shuffle(bingoB);I really need help with the casting/accessing integer part, but any other tips about what I've got going on in the int getNumberB method would be helpful as well. Thanks in advance.

You don't cast to 'int', you cast to 'Integer'. You put 'Integer' in, so you take 'Integer' out.
To get the 'int' value from an 'Integer', use the "intValue()" method in the Integer class.
testString should be local to getNumberB--it should not be an instance variable. Is getNumberB supposed to return an int or a String? If you want the String, you need:
public String getNumberB() { ...}

Similar Messages

  • Basic help with photo slideshow?

    Hi
    I am new to adobe after effects and I have recently purchased a file from videohive (http://videohive.net/item/photo-album-v2/44575) which is great.  I am trying to tweak it a little and as I am new to after effects, I would love to ask anyone for some basic help?  I will be leaving the country in 2 weeks to get married and my UK wedding reception will be a week after I return so I am in pretty much a hurry to get a slideshow rendered and put onto dvd to play in the reception.  I have mastered how to render in PAL format and get onto DVD but I am having a little trouble with basic elements such as adding keyframes.
    The file has 13 placeholders which I have replaced with my own photos. Two of which are replaced with avi videos instead of jpg. This works fine but I would like to stop the camera movement on say photo 7 and zoom in a little on the video, play the video (approx 40 seconds) then return the photo back in place and resume your camera movement.  This will be repeated for one other photo (photo 9) where the video is approx 60 seconds.  Could you possibly help me how I can do this?  I am also adding music to play throughout from start to finish and I would also like to pause (or fade volume) whilst the avi video placeholder is playing, then resume after playback.  I know this may sound a lot to ask but I know that with the knowledge - it will only take me about 30 mins work once I know what to do.  Any help you can offer will be fantastic. I am proficient with Adobe Flash so I understand the jargon of timelines etc.
    Thank you for any help anyone could provide in my panic to get complete.
    Best regards
    Sean.

    *woohoo* Here's to the ones daring marriage... For your  problems there is a number of ways to tackle them, but the specific solution may depend on how the template works. As David already said, for audio you'd be better off using Premiere, but assuming you have just a single track that realyl only requires fades, AE should serve your needs. You can reveal the audio volume by tapping the L key when the respective layer in your composition is selected, then enable the stopwatch icon to add keyframes. Layers can be trimmed by simply dragging their ends, duplicated with Ctrl+D and split by using Ctrl+Shift+D, so it should be perfectly possible to extend your audio as needed, assuming you increase the comp duration first via the composition options. For the images to come into view, you could simply scale them up. Of course the project is based on 3D layers, so it would look a lot better if you animated the camera to dolly in, but if you have no experience in AE, that may make more of a mess than it's worth. Therefore I simply recommend you create a photo flash/ film burn transition - add a  white solid with a slight color tint, set it's blending mode to add, animate it's opacity and while it's fading out, fade in your full screen video. If done in 32bpc, this can look quite real and since it's a separate effect, it won't interfere with the rest of the animation.
    Mylenium

  • Help with ArrayList...

    Hi Everyone:
    I have this java program that I'm doing for school and I need a little bit of insite on how to do certain things. Basically what I did was I read a text file into the program. Once I tokenized the text(by line), I created another object(we'll call it Throttle) and passed the values that was tokenized, then I stored the object(Throttle) into ArrayList. Now, my question is how to I access the object(Throttle) from the ArrayList and use the object's(Throttle) methods? Here's the code that I have currently:
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.util.*;
    public class Project1 extends JFrame
    private JButton numOfThrottles, shiftThrottle, createThrottle, quit;
    private JPanel panel;
    private FileReader fr;
    private BufferedReader br;
    private FileWriter fw;
    private int tempTop;
    private int whatToShift;
    private int tempPosition;
    private ArrayList arrThrottles = new ArrayList();
    private String line;
    private Throttle myThrottle = null, daThrottle;
    private StringTokenizer st;
    public Project1()
    super ("Throttles - by Joe Munoz");
    panel = new JPanel();
    setContentPane(panel);
    panel.setLayout(null);
    //**button stuff
    numOfThrottles = new JButton("Number of Throttles");
    shiftThrottle = new JButton("Shift a Throttle");
    createThrottle = new JButton("Create New Throttle");
    quit = new JButton("Quit");
    panel.add(numOfThrottles);
    panel.add(shiftThrottle);
    panel.add(createThrottle);
    panel.add(quit);
    numOfThrottles.setBounds(5,7,150,25);
    shiftThrottle.setBounds(5,30,150,25);
    createThrottle.setBounds(5,50,150,25);
    quit.setBounds(5,70,150,25);
    numOfThrottles.addActionListener(new ClickDetector());
    shiftThrottle.addActionListener(new ClickDetector());
    createThrottle.addActionListener(new ClickDetector());
    quit.addActionListener(new ClickDetector());
    //window stuff
    setSize(170,135);
    show();
    try
    br = new BufferedReader(new FileReader("C:\\Storage.txt"));
    catch (FileNotFoundException ex)
    System.out.println ("File Not Found!");
    try
    line = br.readLine();
    while (line != null)
    st = new StringTokenizer(line, " ");
    tempTop = Integer.parseInt(st.nextToken());
    tempPosition = Integer.parseInt(st.nextToken());
    myThrottle = new Throttle(tempTop, tempPosition);
    arrThrottles.add(myThrottle);
    line = br.readLine();
    catch(Exception e)
    System.out.println("IO Exception!!!");
    System.exit(0);
    private class ClickDetector implements ActionListener
    public void actionPerformed(ActionEvent event)
    try
    if (event.getSource() == numOfThrottles)
    JOptionPane.showMessageDialog(null, "Number of Throttles is..." + myThrottle.getNumOfThrottles());
    if (event.getSource() == shiftThrottle)
    String shift = JOptionPane.showInputDialog("Please Choose a Throttle from 0 to " + (arrThrottles.size() - 1));
    whatToShift = Integer.parseInt(shift);
    System.out.println ("whatToShift = " + whatToShift);
    // Need help here
    if (event.getSource() == createThrottle)
    String inTop = JOptionPane.showInputDialog("Please Enter Top");
    tempTop = Integer.parseInt(inTop);
    String inPosition = JOptionPane.showInputDialog("Please Enter Position");
    tempPosition = Integer.parseInt(inPosition);
    myThrottle = new Throttle(tempTop, tempPosition);
    arrThrottles.add(myThrottle);
    JOptionPane.showMessageDialog(null, "The Throttle has been created");
    if (event.getSource() == quit)
    System.out.println ("you clicked quit");
    catch (Exception e)
    JOptionPane.showMessageDialog(null, "No Numbers inputted!");
    Any insite/suggestions on what to do? Thank You.
    Joe

    Hi,
    I have a question addition to this same question.
    If you have an object and there are 10 different objects with in the object ..
    tempTop = Integer.parseInt(st.nextToken());
    tempPosition = Integer.parseInt(st.nextToken());
    tempBottom = 10;
    Is this how you access( from the same example) each object value
    strTop= (Throttle)arrThrottles.get(i).tempTop;
    strPos= (Throttle)arrThrottles.get(i).tempPosition;
    strB= (Throttle)arrThrottles.get(i).tempBottom;
    ----I AM USING ARRAYS in a JAVABEAN
    Class test {
    public objectTEMP t[] = null;
    public void initialize(val1,al2) {
         t = redim(t,10,false); //To set the length of the array to 10
    public class T {
    String s1 = null;
    String s2 = null;
    int i1 = null;
    public void setS1(String inVal) {
              s1=inVal;
    public void setS2(String inVal) {
         s2=inVal;
    public void setI1(int inVal) {
         i1=inVal;
    public String getS1() {
              return s1;
    public String getS2() {
              return s2;
    public String getI1() {
              return i1;
    for (int i=0; i<t.length;i++) {
    System.out.println("t"+i+t.getS1());
    t.setS1("SOMESTRING");
    System.out.println("t"+i+t.getS1());
    Any use the setter and getter method from JSP to update or get the information.
    I want to change this to ArrayList as they are fast and they have resizing ability.
    How to I implement this in ARRAYLIST.
    Thanks a bunch

  • Help with ArrayLists!

    Hi, I'm taking a java class at school, and I'm really, really bad at it. Anyway, I need help... I'm not even really sure what my problem is.. but I will try to explain.
    Anyway, I know I have a ton of problems, and I'm not even close to finishing the program, but here goes. I think part of my problem stems from making the arraylists into fish objects.. is there any way to work around that?
    The error that is popping up right now is "cannot resolve method- get (int)"; I'm thinking it doesn't work becuase I made the lists into fish objects, yes?
    Driver class
    * Driver class for the Fish class.
    * Christina
    * May 12, 2005
    import java.util.*;
    import cs1.Keyboard;
    public class Play
    public static void main (String [] args)
    boolean done = false;
    Fish comp = new Fish();
    Fish user = new Fish();
    Fish deck = new Fish();
    Fish userPairs = new Fish();
    Fish compPairs = new Fish();
    deck.fill();
    comp.deal();
    user.deal();
    System.out.println("Welcome to the lame, boring, Go Fish game... Yeah. Indeed.");
    System.out.println("Well.. you should know how to play.. if you don't I'd like to accuse you of" +
    " being an android, because only robots would not have played Go Fish before. Robots and hermits." +
    " Maybe you're a robot hermit? Or an alien? ");
    System.out.println("Your cards and pairs will be printed out before your turn. ");
    user.printCard();
    Method class:
    * Contains all the methods for the lame, command line version of Go Fish
    * Christina
    * May ??, 2005
    import java.util.*;
    import cs1.Keyboard;
    public class Fish
    ArrayList array = new ArrayList();
    Random generator = new Random();
    public Fish ()
    ArrayList array = new ArrayList();
    //ArrayList comp = new ArrayList();
    public void fill() //Fills the deck with 52 cards.
    for (int count= 0; count < 14; count++)
    for (int index = 0; index < 4; index++)
    Integer cardNum = new Integer(count);
    array.add(cardNum);
    public void deal(Fish array2) //Deals cards to the user and computer
    int num;
    for (int index=0; index <= 7; index++)
    num = generator.nextInt(52);
    array.add(array2.get(num));
    array2.remove(num);
    public void drawCard (Fish Array2)
    int num, length;
    length = deck.size();
    num = generator.nextInt(length);
    Integer card = new Integer(num);
    array.add(card);
    array2.remove(card);
    public void removeCard(int num)
    array.remove(num);
    public void printCard()
    for(int i = 0; i< array.size(); i++)
    System.out.println(array.get(i));
    /**public void sort()
    for(int i= 0; i < array.size(); i++)
    if(array.get(i).compareTo(i+1))
    array.add(i+1, array.get(i));
    //public int getCard()
    // int num;
    // return num.get();
    public void askUser(String card)
    System.out.println("Pick a card to ask for. Enter the number of the card ie 2." +
    "Note: Aces are represented by 0, Jacks by 11, Queens 12, and Kings 13.");
    card = Keyboard.readString();
    public void askComputer(int num, int length)
    length = this.size();
    num = generator.nextInt(length);
    this.get(num);
    System.out.println("Do you have any " + num);
    public void Pair(int pair)
    }

    Thanks a ton for the help^^ Unfortunately, because of my poor design no doubt, I still have plenty of problems.
    Oh, and I'd rather not
    Now, I have no idea why it refuses to acknowledge any of the method calls in the driver class.
    What the compiler says is wrong:
    --------------------Configuration: Final Project - j2sdk1.4.2_06 <Default> - <Default>--------------------
    C:\Program Files\Xinox Software\JCreatorV3LE\MyProjects\Final Project\Play.java:22: cannot resolve symbol
    symbol : method fill ()
    location: class java.util.ArrayList
    deck.fill();
    ^
    C:\Program Files\Xinox Software\JCreatorV3LE\MyProjects\Final Project\Play.java:23: cannot resolve symbol
    symbol : method deal ()
    location: class java.util.ArrayList
    comp.deal();
    ^
    C:\Program Files\Xinox Software\JCreatorV3LE\MyProjects\Final Project\Play.java:24: cannot resolve symbol
    symbol : method deal ()
    location: class java.util.ArrayList
    user.deal();
    ^
    C:\Program Files\Xinox Software\JCreatorV3LE\MyProjects\Final Project\Play.java:31: cannot resolve symbol
    symbol : method printCard ()
    location: class java.util.ArrayList
    user.printCard();
    ^
    4 errors
    Process completed.
    Now edited code:
    * Contains all the methods for the lame, command line version of Go Fish
    * Christina
    * May ??, 2005
    import java.util.*;
    import cs1.Keyboard;
    public class Fish
        ArrayList array = new ArrayList();
        Random generator = new Random();
        public Fish ()
        public void fill() //Fills the deck with 52 cards.
            for (int count= 0; count < 14; count++)
                for (int index = 0;  index < 4; index++)
                   Integer cardNum = new Integer(count);
                   array.add(cardNum);
        public void deal(ArrayList array2) //Deals cards to the user and computer
            int num;
            for (int index=0; index <= 7; index++)
            num = generator.nextInt(52); 
            array.add(array2.get(num));
            array2.remove(num);
        public void drawCard (ArrayList array2)
            int num, length;
            length = array2.size();
            num = generator.nextInt(length);
            Integer card = new Integer(num);
            array.add(card);
            array2.remove(card);
        public void removeCard(int num)
            array.remove(num);
        public void printCard()
            for(int i = 0; i< array.size(); i++)
                System.out.println(array.get(i));
        //public int getCard()
        //    int num;
        //    return num.get();
        public void askUser(String card)
            System.out.println("Pick a card to ask for. Enter the number of the card ie 2." +
             "Note: Aces are represented by 0, Jacks by 11, Queens 12, and Kings 13.");
            card = Keyboard.readString();
        public void askComputer(int num, int length)
            length = array.size();
            num = generator.nextInt(length);
            array.get(num);
            System.out.println("Do you have any " + num);
        public void Pair(int pair)
    * Driver class for the Fish class.
    * Christina
    * May 12, 2005
    import java.util.*; 
    import cs1.Keyboard;
    public class Play
        public static void main (String [] args)
            boolean done = false;
            ArrayList comp = new ArrayList();
            ArrayList user = new ArrayList();
            ArrayList deck = new ArrayList(52);
            ArrayList userPairs = new ArrayList();
            ArrayList compPairs = new ArrayList();
            deck.fill();
            comp.deal();
            user.deal();       
            System.out.println("Welcome to the lame, boring, Go Fish game... Yeah. Indeed.");
            System.out.println("Well.. you should know how to play.. if you don't I'd like to accuse you of" +
                        " being an android, because only robots would not have played Go Fish before. Robots and hermits." +
                        " Maybe you're a robot hermit? Or an alien? ");
            System.out.println("Your cards and pairs will be printed out before your turn. ");
            user.printCard();
    }

  • Help with ArrayLists ......Please

    Hello everyone
    I have written a simple class file for an arraylist. I have used the following methods.
    pushTop----Insert an element from the top of the array
    removeTop----Remove an element from the top of the array
    pushEnd----Insert an element from the bottom of the array
    removeEnd----Remove an element from the bottom of the array
    Also I need another method to extract an element from any point of the array.
    Could you please look at this code and see if it will work or not?
    public class ArrayList{
    protected int array[];
    protected int start, end;
    protected boolean full;
    public pArrayList(int size){
    array = new array[size]
    start = end = 0;
    full = false
    public boolean isEmpty(){
    return((start==end)&&!full);
    public void pushTop(int i){
    if start < array.length
    array [start] = i;
    start++;
    public int removeTop(){
    if (isEmpty())
    return 0;
    return array[start--]
    public pushEnd (int i)
    if end < array.length
    array [end] = i;
    end--;
    public int removeEnd(){
    if (isEmpty())
    return 0;
    return array [end];
    end--;
    thank you

    Given that this code won't even compile, there isn't much help we can provide.
    Why don't you try compiling and running your class, then come back with specific questions about why certain things don't work?
    - K

  • I'm a Newb (migrating from Cubase SX 3) need basic help with everything!

    Hello, I'm a Cubase SX 3 user trying to learn Logic and switch. I'm having basic trouble setting everything up and getting started. Such as inputs and main output etc. I'm used to the way its all done in Cubase. Does anyone know of a good quick start tutorial that will get me on my way?
    Thanks much.
    Also, if there are any users familiar with Cubase, perhaps you could explain it to me better.

    Hello Cleveland
    First i have to say , if you have the original box of logic express , you might have the very handy user manual
    If not , there are hundreds of usefull threads in this forum which will help you a lot.
    If not , please be a bit more precisse with your question, cause i think no one will explain you all the functions in Logic available here from scratch .
    Have a great day and be patient while learning by doing
    Daniel
    Dual 1.8 G5   Mac OS X (10.4.7)   http://www.soniccube.ch

  • Basic help with Flash v10 (creating a simple calculator)

    I have Adobe CS4 Pro with Flash v10.  I'm trying to create a simple, basic calculator that adds 2 numbers.  I followed the tutorial at http://layersmagazine.com/flash-design-calculator.html.  At first, I was unable to assign variables to any objects, but got that cleared up by selecting ActionScript 2.0 (was set to 3.0).  At this point, the calculator accepts the two numbers, but when I select the "add" button with the associated code as shown in the tutorial, nothing happens.  Does anyone have a suggestion as to what I might be doing wrong?  Thanks.

    This is all the code there is:
    on(release) {
    total = Number(firstnumber)+Number(secondnumber);
    There's really not an error--I just don't get any output.  I've created two 'Input Text' boxes, and on the properties tab for each I have defined the "Variable:" field as either 'Number(firstnumber)' or 'Number(secondnumber)'.  I've also created a 'Dynamic Text' box and defined the "Variable:" field as 'Number(total)'.
    Note:  the example I was following did not specify to include the 'Number()' function in the "Variable:" fields.  However, when I don't, and I run 'Test Movie', the 3 boxes are automatically filled with "_level0.firstnumber", "_level0.secondnumber" and "_level0.total".  When I type 2 numbers in to the 2 'Input Text' boxes, and then select my button that has the above code associated with it, I get "NaN" in the output ('Dynamic Text') box.
    Thanks again for your help!

  • BASIC Help With Windows 8.1 tablet

    I just bought the HP Stream 7 tablet. I'm an experienced computer user (since the early '80s). My desktop runs Windows 7. I have used an Android tablet for more than a year. This tablet is my first experience with Windows 8. I installed the Classic Shell so I could navigate in a more familiar setting, and this has helped somewhat. I also installed the driver for a wireless Logitech mouse, and that helps. But there is SO MUCH that confuses me about -- is the tablet or Windows 8.1 or both? -- this system, that I need some guidance. Two examples: Internet Explorer always displays pages that I don't want, yet closing those pages is not always successful. And then there's getting access to the keyboard. Sometimes just tapping into box where I should enter some text displays the keyboard. Often I can tap and tap and.....but no keyboard appears. I have looked at both the quick-start guide and the user manual, but they don't help me. Maybe I'm overlooking some obvious things, and maybe I've just become too impatient to solve these issues. I imagine I could search the Net to find some help, but I'm hoping that someone in this forum can point me toward Web pages that will help. Thanks.
    J...

    To the best of my knowledge, mouse input in metro apps does not load the on screen keyboard (OSK). Whereas touch does. Having the mouse connected before the app loads is likely causing the app to recognize the mouse as the primary input device.
    As I don't know the exact app in question to really reproduce the problem I downloaded a few of the top crossword apps and tested them.
    Each of the apps I installed performed in this way:
    Booting the device without a mouse connected resulted in the OSK loading.
    Booting the device without a mouse connected, loading the app and connecting the mouse resulted in the OSK failing to load.
    Booting the device with the mouse connected resulted in the OSK failing to load.
    Booting the device with the mouse connected, loading the app and disconnecting the mouse resulted in the OSK failing to load. (Reloading the app resumed OSK functionality.)
    This would confirm my earlier assumption that metro apps do not load the OSK with input devices connected, but was a surprise that disconnecting the mouse required me to restart the app before the OSK would work in the app again. It would appear to me after testing this in multiple apps on multiple machines (including a non-HP device) that this is simply the way WIndows 8 metro apps work.
    Please click the "Kudos, Thumbs Up" at the bottom of this post if you want to say "Thanks" for helping!
    Please click "Accept as Solution" if you feel my post solved your issue, it will help others find the solution.
    The Great Deku Tree
    I work on behalf of HP.

  • I need basic help with my VISTA laptop. Adobe Reader X (10.1.4) IS INSTALLED BUT NOT WORKING.

    A basic questions. My laptop VISTA has Reader X (10.1.4) installed. Internet add ons has Adobe PDF llink helper enabled. I am not able to open PDF files?

    Moved to Adobe Reader.
    You cannot able to open pdf files on your computer or you cannot open pdf files in your webbrowser? If you cannot open pdfs in your browser, what browser are you using?

  • Need some help with ArrayLists...

    Hello, I am having trouble implementing the code requested by the following questions:
    1. Suppose an ArrayList holds Comparable objects. Write a method that
    removes the smallest value from such a list.
    2. Implement Selection Sort for an ArrayList of Comparable objects:
    public void selectionSort(ArrayList list)
    Use ArrayList�s get and set methods; do not use the add(i, obj)
    method.
    3. Implement Insertion Sort for an ArrayList of Comparable objects:
    public ArrayList insertionSort(ArrayList list)
    Your method should use and return a spare list, leaving the original list
    unchanged. Use ArrayList�s get and add(i, obj) methods.
    Thanks, any help would be greatly appreciated! :-)

    The problem is that I can only write the method
    definitions and can't go any further into implementing
    any of the actual body code! :-(Post what you've got so far. When you post code, please use [code] and [/code] tags as described in Formatting Help on the message entry page. It makes it much easier to read.

  • Need some basic help with Acrobat and LiveCycle

    This is my first time using Acrobat and LiveCycle to design a form. Basically all I need is a title that is uneditable and underneath that I want to insert a text box so people can type in the box then print off the whole page with their comments. I can do all of that except the problem is when I insert the text box, the cursor is left justified but appears in the middle of the textbox. So when people start typing, there is a huge gap between the title and what they've typed. I want their typing to appear directly under the title. What am I doing wrong? See attached for a visual explanation. Thanks.

    You can have the text in the field top jusitied. This is controlled on the Font palette. Turn on the Font palette under the window menu. It usually will appear in the bottom right corner of the screen. Now highlight the field you want to adjust. Make usre the paragraph tab is slected. Click on the small dropdown arrow indictaed in yellow in the screen shot and select "Edit Value". Now click the top justification as indicated by the arroe in the csreen shot.
    Paul

  • Need basic help with my new iMac

    Can someone please assist me with these questions?
    When I click on F3 (wireless keyboard), I can see all my windows that are open (I think this feature is called expose?), but it just shows the windows for about a second and then I see my desktop. I'm not able to select the window I want to activate. It used to show me all the windows open and then I could just click on the one I want to activate. I don't know what I did to change this.
    Also, I added some stuff (widgets?) on my dashboard and I don't know how to remove them. How do I do this?
    Thanks in advance for your help.

    It sounds like you have Expose set to "Desktop" rather than "All windows" or "Application windows". Check your settings in System Preferences.... 
    cheers
    mrtotes

  • Need very basic help with calendar - I am such a beginner!!!

    OK, I apologize in advance if this is a very silly question. But I'm new to all this stuff and really have no clue as to what I'm doing.
    I just got a brand new iPhone. It's great! I am using the calendar feature that came with the phone. But I can't figure out how to make it "talk" to my husband's calendar. He uses Microsoft Outlook. I've skimmed through lots of articles about Microsoft Exchange... but I don't have any Microsoft programs. I am a stay at home mother, and have been out of the technology loop for a while. It looks like I need a Microsoft Exchange account? I can't figure out how to get Microsoft Exchange, and if it's going to cost a fortune.
    I'm not even sure where to find which software is on my phone! There is no "about this phone" button that I can find. It's brand new, I think it was 3S and is 16GB if that helps.
    Can someone please save me from myself?
    Thanks!

    You could have the TC join your existing wireless network as a client, or you can can connect the Time Capsule's WAN port to the modem/router.
    In both cases the TC's "connection sharing" should be set to "Off (Bridge Mode)".
    If the TC "joins" the wireless network you can only back up over your wireless connection, so the second option is preferable.

  • I need some basic help with Email setup

    Hello, I ve just been connected to infinity and I m trying to setup a few email addresses but the BT yahoo system is confusing me.
    I managed to create a new email (sub account) for my wife but I m struggling with finding a way to have a couple more for myself. Do I really need to make a sub account for each email?
    The default email has my name and surname in it which is not something I generally use for that purpose, I would only use that one for close friends and family, I would like to setup another one for general use and one for when there is a likelyhood it ll get a lot of spam.
    The way to add extra emails is usually very simple (with previous isps) , login to "manage my account" and choose username and password then enter the details in outlook express.
    With BT I m having to deal with the Yahoo thingy, which does a lot of more than just emails but at this time I have interest in it at all.
    1 - I would simply like to setup a few emails to use with outlook express, what is the best way to achieve that ?
    2 - The yahoo email seems to be part of a network like facebook, as I  don t intend to use that side of it I would prefer not to have my personal details associated with a profile that I do not  need . It seems to be for public viewing by default.
    Can I set up and use my emails without having an online profile for yahoo?
    How do i keep my details offline (not publicly viewable in yahoo)?
    thanks.

    yes!
    you get one prime email address. the one you agreed to and the one to set up your bt mail, it was in letter confirming bt set up. (order ref)
    for more for yourself, or anybody else,  its got to be sub. up to ten for INF2
    I have set up 4 sub accounts with different names, etc. but use the same password for all 5 .
    I then had them set up with outlook express, there is a bt prog to do this. look on site.
    Then I use incredimail as my final mail client, this also has a prog to set up from outlook express.
    so all my mail to and from me ends up in incredimail with my 4 sub accounts, using one as my prime.
    my bt prime I do not use, as it is my full name.
    so far so good, just a bit slow finding its way, like you my previous ISP (tesco) was less complicated, but slow copper wire.
    good luck
    Ronin22
    In the end we will all be star dust.
    Then start all over again.

  • Need some basic help with applets

    Hey all, I've never made an applet before and I'm having a small problem. Basically, when I load my applet, the GUI comes up on a separate window (doesn't load within the applet window). Here's my code:
    Here's the GUI class.
    import java.awt.BorderLayout;
    import java.io.File;
    import java.util.Vector;
    import javax.swing.DefaultComboBoxModel;
    import javax.swing.DefaultListModel;
    import javax.swing.JButton;
    import javax.swing.JFileChooser;
    import javax.swing.JList;
    import javax.swing.JScrollPane;
    import javax.swing.JTextField;
    import javax.swing.JTextPane;
    import javax.swing.ListModel;
    import javax.swing.WindowConstants;
    import javax.swing.SwingUtilities;
    * This code was edited or generated using CloudGarden's Jigloo
    * SWT/Swing GUI Builder, which is free for non-commercial
    * use. If Jigloo is being used commercially (ie, by a corporation,
    * company or business for any purpose whatever) then you
    * should purchase a license for each developer using Jigloo.
    * Please visit www.cloudgarden.com for details.
    * Use of Jigloo implies acceptance of these licensing terms.
    * A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
    * THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
    * LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
    public class GUI extends javax.swing.JFrame {
              //Set Look & Feel
              try {
                   javax.swing.UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
              } catch(Exception e) {
                   e.printStackTrace();
         private JButton openB;
         private JButton oddsB;
         private JScrollPane jScrollPane1;
         private JList jList1;
         private JTextField fileText;
         private Vector<String> jList1Objects;
         * Auto-generated main method to display this JFrame
         /*public static void main(String[] args) {
              SwingUtilities.invokeLater(new Runnable() {
                   public void run() {
                        GUI inst = new GUI();
                        inst.setLocationRelativeTo(null);
                        inst.setVisible(true);
         public GUI() {
              super();
              initGUI();
         private void initGUI() {
              try {
                   setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
                   getContentPane().setLayout(null);
                        //Text field for file entry
                        fileText = new JTextField();
                        getContentPane().add(fileText);
                        fileText.setBounds(0, 0, 279, 25);
                        //Scroll Pane and jList1
                        jScrollPane1 = new JScrollPane();
                        getContentPane().add(jScrollPane1);
                        jScrollPane1.setBounds(0, 25, 150, 328);
                             jList1Objects = new Vector<String>();
                             jList1 = new JList(jList1Objects);
                             jScrollPane1.setViewportView(jList1);
                        //Open button and Odds button
                        openB = new JButton();
                        oddsB = new JButton();
                        getContentPane().add(oddsB);
                        getContentPane().add(openB);
                        oddsB.setText("Calculate Odds");
                        oddsB.setBounds(679, 109, 105, 353);
                        openB.setText("Open File");
                        openB.setBounds(279, 0, 99, 25);
                        //Open Button action
                        openB.addActionListener(new java.awt.event.ActionListener() {
                             public void actionPerformed(java.awt.event.ActionEvent evt) {
                                  //Opens up hand history file to be read in
                                  JFileChooser fc = new JFileChooser();
                                  fc.setCurrentDirectory(new File("C:\\Program Files\\Full Tilt Poker\\HandHistory"));
                                  int returnVal = fc.showOpenDialog(getContentPane());     
                                  if(returnVal == JFileChooser.APPROVE_OPTION) {
                                       //Display file in text box
                                       fileText.setText(fc.getSelectedFile().toString());
                                       //TODO: Write function to read in file and add all Hands to jList1
                                       //Recompile jList1
                                       jList1Objects = new Vector<String>();
                                       jList1Objects.add(fc.getSelectedFile().toString());
                                       jList1 = new JList(jList1Objects);
                                       jScrollPane1.setViewportView(jList1);
                   pack();
                   setSize(800, 800);
              } catch (Exception e) {
                   e.printStackTrace();
    }Here's the class my HTML file calls:
    import java.applet.Applet;
    import javax.swing.JFrame;
    public class Main extends Applet{
         //Mainframe
         //JFrame f = new JFrame();
         public void init() {
              GUI inst = new GUI();
              inst.setLocationRelativeTo(null);
              inst.setVisible(true);
              //f.setContentPane(inst.getContentPane());
         public void start() {
            System.out.println("Starting...");
      public void stop() {
            System.out.println("Stopping...");
    }

    // <applet code='Main' width='400' height='200' ></applet>
    import javax.swing.*;
    public class Main extends JApplet{
        public void init() {
            GUI inst = new GUI();
            getContentPane().add(inst.getContentPane());
            validate();
        public void start() {
            System.out.println("Starting...");
        public void stop() {
            System.out.println("Stopping...");
    }Other notes:
    - You try to set the PLAF to Windows. which will not work on Linux and Mac (and if it did, the users would be screaming at you).
    - setLayout(null)/setBounds(int,int,int,int) is rubbish GUI development, it is fragile and will cause problems (especially if changing PLAFs)
    - Why did you not code this as a hybrid application/app?
    - The call to the JFileChooser will require a trusted applet, and it is pointing to the wrong place in seeking out the 'Program Files' directory, better to put configuration data/history data in a sub-dir or user.home.
    - This app. is much better suited to being deployed using Java Web Start. Forget the applet and use the frame, persistence can be obtained through the PersistenceService and that will side step both the application needing 'trust' and trying to find a suitable path for storing results of past games. JWS can launch the app. directly off the net, and provides auto-update and many other slick features.

Maybe you are looking for

  • Cost of Goods Sold and Inventory Value

    Hi I am looking to setup KPI for Inventory Turns in BI. This needs "Cost of Goods Sold" and "Inventory Value" for Orders for a Plant. I wanted to know if this information is directly available in any standard extract or do I need to write a Custom Ex

  • Query related to DataGuard Archicture...

    Hi All, I want to implement DataGuard Archicture in my setup, I'hv one query related to different operating system in my setup, I'hv two server one for primary and the other for standby Database with 10g DB R2. In one server having Linux os and the o

  • Sort IDOC segment problem

    Hi Idoc Experts! Just want to know you opinion on how to sort the Idoc Internal  table shown below. I am trying to sort the internal table int_edidd by edatub after it has appended new entries.       LOOP AT int_edidd INTO wa_int_edidd         WHERE

  • FEBA clearing for ACH Payment

    Hi, Our issue: ACH payment is release by the bank in a lump sum amount for a batch of AP payments via IDOC.  ACH lump sum amount that feed into FEBA cannot match each other (ACH-AP Payment listing) for clearing. ACH items must be manually post to ACH

  • Cvd loaded on material

    Hi MM Gurus, I am facing one problem while configuring CVD(jcv1). It is not being set off intead it is being loaded on the material. Can u please suggest where I am getting wrong? Regards, shakir