Type: Posts; User: alaindhaene

Search: Search took 0.23 seconds.

  1. Re: Help splitting into two different classes.

    it's a good idea to seperate a model where you put the busisness logic (in your example : how you count the annualcompensation),
    the I/O of your program (where you ask the data) and a place where...
  2. Replies

    Re: JComboBox and array problems

    When you use a JComboBox it's good practice the use a ComboBoxModel to organise the data. Then you can use a constructor of JComboBox model where you can give the model as parameter. So you work on...
  3. Replies

    [SOLVED] Re: cannot find symbol

    In the class main:
    ob is a calculator object and don't recognize the methode nextInt() who belongs to a Scanner object.

    the variabele n is not declared in the...
  4. Re: How to find indexes of ALL occurrences of object in ArrayList

    A Iterator is just an manner to iterate over a collection. When you look to the API it has no methods to say when a element is in the collection.
  5. Replies

    Re: Assign layout_width programmatically

    First off all it's not a good idea setting layout programmatically.

    Button button = new Button(this);
    bt.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.WRAP_CONTENT));
  6. Re: Problem with calling objects from same-class methods in main

    In your main program make a datastructure of amber objects (e.g ArrayList) en provide this with amber objects (with your createFossils methode) then with a iterator object you can use your...
Results 1 to 6 of 9