Help with instances

i am building a project that will manage a group of recordings. I Have a class 'Gui' which is used to display the current recording and i am trying to use the class 'addframe' to give the option to add a CD or Digital type of recording to the manager class. i want to use a dialogue box to take input for the attributes of the recording and then to be able to delete the current recording using the delete button on the gui class. However i am now well and truly stuck and any advice would be much appreciated
ALL CLASSES BELOW
Recording Class
import java.util.*;
public class Recording
   /* Declare Variables */
    private String Title,Artist,Genre;
    public Recording()
        Title = "n/a";
        Artist = "n/a";
        Genre = "n/a";
    public Recording(String theTitle, String theArtist, String theGenre)
        Title = theTitle;
        Artist = theArtist;
        Genre = theGenre;
    public void setTitle(String theTitle)
        Title = theTitle;
    public void setArtist(String theArtist)
        Artist = theArtist;
    public void setGenre(String theGenre)
        Genre = theGenre;
    public String getTitle()
        return Title;
    public String getArtist()
        return Artist;
    public String getGenre()
        return Genre;
   public String toString()
       return("Title,"+ Title +" Artist," + Artist + " Genre," + Genre);
CD Class
public class CD extends Recording {
    /** Creates a new instance of CD */
   int serial;
    public CD(String theTitle, String theArtist, String theGenre,int theserial)
    super(theTitle, theArtist, theGenre);
    this.serial = theserial;
    public int getSerial()
        return serial;
   public void setSerial(int theserial)
       serial = theserial;
   public String toString()
       String s = super.toString();
       s = s + "\n Serial Number" +serial;
       return s;
Digital Class
public class Digital extends Recording {
    /** Creates a new instance of CD */
   String Type;
public Digital(String theTitle, String theArtist, String theGenre,String theType)
    super(theTitle, theArtist, theGenre);
    this.Type = theType;
    public String getType()
        return Type;
   public void setType(String theType)
       Type = theType;
   public String toString()
       String s = super.toString();
       s = s + "\n Type" +Type;
       return s;
Manager Class
import java.util.*;
public class Manager {
    ArrayList<Recording> theRecordings = new ArrayList<Recording>();
    int numRecordings, maxRecordings,current;
    String managerName;
    public Manager(String Name,int Max)
        managerName = Name;
        maxRecordings = Max;
        numRecordings = 0;
        current = 0;
    public boolean addRecording(Recording theRecording)
        if(numRecordings == maxRecordings)
            return false;
        else
            theRecordings.add(theRecording);
            numRecordings++;
            return true;
    public void outputRecordings()
      System.out.println("The Recordings");
      System.out.println("--------------");
      System.out.println();
      for (Recording R: theRecordings)
          System.out.println(R);
          System.out.println();
    public String retCurrent()
        String s = " ARTIST " + theRecordings.get(current).getArtist() + "\n TITLE " +theRecordings.get(current).getTitle() +"\n GENRE " + theRecordings.get(current).getGenre();
        return s;
    public String nextRecording()
        if (current <numRecordings-1)
            current++;
            String s = " ARTIST " + theRecordings.get(current).getArtist() + "\n TITLE " +theRecordings.get(current).getTitle() +"\n GENRE " + theRecordings.get(current).getGenre();
            return s;
        else
            String s ="There Is No Next Recording";
            return s;
    public String previousRecording()
        if (current >0)
            current--;
            String s = " ARTIST " + theRecordings.get(current).getArtist() + "\n TITLE " +theRecordings.get(current).getTitle() +"\n GENRE " + theRecordings.get(current).getGenre();
            return s;
        else
            String s = "There Is No Previous Recording";
            return s;
Gui Class
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
public class gui extends JFrame
     private JButton Previous;
        private JButton Next;
     private TextArea OutputArea;
        private JButton Add;
     public gui (String sTitle,Manager theManager)
          super (sTitle);
          Container contentPane;
          contentPane = getContentPane();
          contentPane.setLayout(new FlowLayout());              
          Previous = new JButton("Previous");
                Next = new JButton("Next");
          OutputArea = new TextArea("Output");
                Add = new JButton("Add Recordings");
                Previous.addActionListener(new PreviousRecording(theManager,OutputArea));
                Next.addActionListener(new NextRecording(theManager,OutputArea));
                OutputArea.setText(theManager.retCurrent());
                Add.addActionListener(new addRecords(theManager));
                contentPane.add(Previous);
          contentPane.add(OutputArea);
          contentPane.add(Next);
                contentPane.add(Add);
          this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          this.setSize(800,300);
          this.setVisible(true);
public static void main(String args[])
            Manager theManager = new Manager("theManager",20);
            //create a few recordings
            Recording R1 = new Recording("Turn The Page","The Streets","Rap");
            Recording R2 = new Recording("Clubb Foot","Kasabian","Alternative");
            Recording R3 = new Recording("London Town","Kano","UK Hip-Hop");
            Recording R4 = new Recording("Artificial Sweetner","No Doubt","Rock");
            Recording R5 = new Recording("Diamonds & Guns","The Transplants","Punk");
       //Add Recordings
             theManager.addRecording(R1);
             theManager.addRecording(R2);
             theManager.addRecording(R3);
             theManager.addRecording(R4);
             theManager.addRecording(R5);
             new gui("Recordings",theManager);
Previous Recording Class
import java.awt.*;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.*;
public class PreviousRecording implements ActionListener
    Manager m;
    TextArea ta;
    PreviousRecording(Manager m,TextArea ta)
        this.m = m;
        this.ta = ta;
    public void actionPerformed(ActionEvent e)
              ta.setText(m.previousRecording());
Next Recording Class
import java.awt.*;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.*;
public class NextRecording implements ActionListener
    Manager m;
    TextArea ta;
    NextRecording(Manager m,TextArea ta)
        this.m = m;
        this.ta = ta;
    public void actionPerformed(ActionEvent e)
        ta.setText(m.nextRecording());
Add Records Class
import java.awt.*;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.*;
public class addRecords implements ActionListener
    Manager m;
    addRecords(Manager m)
        this.m = m;
    public void actionPerformed(ActionEvent e)
    new AddFrame("Add Recording",m);
Add Frame Class
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
public class AddFrame extends JFrame
    private JButton addCD;
    private JButton addDig;
    Manager theManager;
    public AddFrame(String sTitle,Manager M)
     super (sTitle);
        this.theManager = M;
        Container contentPane;
     contentPane = getContentPane();
     contentPane.setLayout(new FlowLayout());
        addCD = new JButton("Add CD Recording");
        addDig = new JButton("Add Digital Recording");
        contentPane.add(addCD);
        contentPane.add(addDig);
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
     this.setSize(800,300);
     this.setVisible(true);
Add CD Class
import java.awt.*;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.*;
public class AddCD implements ActionListener
    Manager m;
    AddCD(Manager m)
        this.m = m;
    public void actionPerformed(ActionEvent e)
        m.addRecording();
Add Digital Class
//not yet written

I am not going to scroll through your code but let me make some suggestions.
*CD or Digital implies (to me, anyway) that radio buttons would work well as selectors.
*I would enter attributes of a recording in individual text boxes: one for artist, one for producer, and so on.
*If you have a container of recordings, there is no need to delete the current reference.  Simply replace the
the var that points to it with a new instance of the recording.
*Instead of posting lots of code, try posting a small self-contained example.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • Please help with Instance Manager

    Hello,
    I created a button that will show/hide a subform. The issue is I need multiple buttons like this. I thought changing the name of the subform in this script would allow me to use another button for a different subform. For instance, Instead of using the word Alabama I could replace it with Alaska and it would show/hide that subform. Could having multiple pages in a subform affect its functionality? Please Help!
    // Invoke the Instance Manager to add and remove the alabama subform.
    if (fAlabama.value == "0") { // fAlabama is a document variable used as a flag.
    // fAlabama = 1 when the alabama subform is displayed.
    _alabama.setInstances(1); // Add the comments subform.
    this.resolveNode("caption.value.#text").value = "Clear Alabama"; // Change the button's caption.
    fAlabama.value = "1"; // Set the flag value.
    else {
    _alabama.setInstances(0); // Remove the alabama subform.
    this.resolveNode("caption.value.#text").value = "Add Alabama"; // Change the button's caption.
    fAlabama.value = "0"; // Reset the flag value.
    Thanks,
    Venus

    When you say you are not in standalone mode, I assume you are connecting to an Oracle Management Server which is running somewhere in your network. You need to discover your node. To do this you must start the intelligent agent on the server where you have your database. Then from the OEM console select navigator from the menu bar, and then discover nodes. Next enter the name of your server. OEM will attempt to contact the intelligent agent on that server in order to get the database information.

  • Need a little help with instance variables

    I'm still pretty new to this, but what I have here is some instance
    variables that I need to constuct a record from. This keeps track of a
    sorting process. In the public Sortable getRecord() method is where
    I need to construct that record, which is where I'm lost.
    I look at the tutorials on this site but still can't seem to find what I'm looking for.
    What's giving me so much trouble is that I have variables of different types
    and I can't out how to group them togther without getting some wierd error.
    public class SortableSpy implements Sortable {
        public Sortable a; // Sortable is an interface that this class inplements
        public int swaps;
        public int compares;
        public SortEvent events [];
        public int nevents;
        public SortableSpy(Sortable arr) {
                a = arr;              // These are
                swaps = 0;
                compares = 0;  // the variables I need
                nevents = 0;
                events = new SortEvent[1000];  // to use
        public Sortable getRecord() {
             // and this is where I need the record to be constructed
           // then another class will call this record which will keep track
          // of compares and swaps
              return ;
         Thanks for any help anybody can give me

    Why do you have a field that's the same type
    (implements the same interface) as the class itself?
    This is possible, of course, but what are you hoping
    to achieve by doing so?The interface was pre set-up by my professer. Here is the interface
    public interface Sortable  extends Stringable {
        public int size(); // Number of objects to sort
        public boolean inOrder(int i, int j); // are objs i and j in order?
        public void swap(int i, int j); // Swap objects at i and j
        public Stringable getS(int i);  // For debugging - make an
                                      // object being sorted stringable
    }>
    Your code would be easier to read, both for the
    person grading your homework and for anyone who wants
    to help you here, if you chose variable names that
    have meaning. "a" doesn't qualify.What "a" is suppose to be is an object that is sortable. So when I use a sorting
    algorithim it will sort "a". This part was also setup by my proffeser.
    >
    Where do you expect to get all the data that will go
    into those fields?I should've put the entire class here before, instead of just the constuctor
    here it is:
    public class SortableSpy implements Sortable {
        public int t;
        public Sortable a;
        public int swaps;
        public int compares;
        public SortEvent events [];
        public int nevents;
        public SortableSpy(Sortable arr) {
                a = arr;
                swaps = 0;
                compares = 0;
                nevents = 0;
                events = new SortEvent[1000];
        public Sortable getRecord() {
              return a;
         // ** construct a SortRecord from the instance variables
        public String brief() { // or here
                return "Number Of Events" + this.hashCode() + " (" + nevents + ")";
        public String verbose( ) {
              return "Number Of Compares" + this.hashCode() + " (" + compares + ")" +
              "Number Of swaps" + " (" + swaps + ")";
        public boolean inOrder(int i, int j) {
            compares++;
            SortEvent ev = new SortEvent();
            ev.i = i;
            ev.j = j;
            ev.e = EventType.Compare;
            events[nevents] = ev;
            nevents++;
         return a.inOrder(i,j);
        public void swap(int i, int j) {
                int temp = i;
                i = j;
                j = temp;
        public int size() { return nevents;};
        public enum EventType {compare, swap;
         public static Event Compare;}
        private class si implements Stringable {
                private int i;
                public si (int j) { i = j; };
                public String brief() { return " " + i;}
                public String verbose() { return this.brief();}
        public Stringable getS(int i) {
                return  a;
    }>
    getRecord may be better named "createRecord", if I
    understand what you're trying to do (I may not). But
    it sounds like this name may have been specified by
    your professor.
    Yeah get record is supose to return the number of times an
    algorithm swaps and compares objects during the sorting process
    sort of like spying in, as he described
    I get the impression that you've misunderstood a
    homework assignment.Unfortunaty I'm starting to think so myself, but thanks to both of you guys
    for the help you've giving me so far.

  • Query Help with Item Master & Warehouse Code

    Forum,
    I would like help with a query to identify any items within a database where a particular warehouse code does NOT exist against it. At present I have the following:
    select T0.ItemCode, T1.WhsCode from OITM T0
    INNER JOIN OITW T1 on T0.ItemCode = T1.ItemCode
    where T0.ItemCode NOT IN ('WHS1')
    This is returning all other instance and not just a list of item codes where 'WHS1' is missing from within the 'Stock Data' tab.
    Thanks,
    Sarah

    Hi Sarah...
    Try This
    SELECT T0.ItemCode, T0.ItemName, T1.WhsCode
    FROM OITM T0 INNER JOIN OITW T1 ON T0.ItemCode = T1.ItemCode
    WHERE T1.WhsCode not in ( 'WHS1')
    Regards
    Kennedy

  • Help with encapsulation and a specific case of design

    Hello all. I have been playing with Java (my first real language and first OOP language) for a couple months now. Right now I am trying to write my first real application, but I want to design it right and I am smashing my head against the wall with my data structure, specifically with encapsulation.
    I go into detail about my app below, but it gets long so for those who don't want to read that far, let me just put these two questions up front:
    1) How do principles of encapsulation change when members are complex objects rather than primitives? If the member objects themselves have only primitive members and show good encapsulation, does it make sense to pass a reference to them? Or does good encapsulation demand that I deep-clone all the way to the bottom of my data structure and pass only cloned objects through my top level accessors? Does the analysis change when the structure gets three or four levels deep? Don't DOM structures built of walkable nodes violate basic principles of encapsulation?
    2) "Encapsulation" is sometimes used to mean no public members, othertimes to mean no public members AND no setter methods. The reasons for the first are obvious, but why go to the extreme of the latter? More importantly HOW do you go to the extreme of the latter? Would an "updatePrices" method that updates encapsulated member prices based on calculations, taking a single argument of say the time of year be considered a "setter" method that violates the stricter vision of encapsulation?
    Even help with just those two questions would be great. For the masochistic, on to my app... The present code is at
    http://www.immortalcoil.org/drake/Code.zip
    The most basic form of the application is statistics driven flash card software for Japanese Kanji (Chinese characters). For those who do not know, these are ideographic characters that represent concepts rather than sounds. There are a few thousand. In abstract terms, my data structure needs to represent the following.
    -  There are a bunch of kanji.
       Each kanji is defined by:
       -  a single character (the kanji itself); and
       -  multiple readings which fall into two categories of "on" and "kun".
          Each reading is defined by:
          -  A string of hiragana or katakana (Japanese phoenetic characters); and
          -  Statistics that I keep to represent knowledge of that reading/kanji pair.Ideally the structure should be extensible. Later I might want to add statistics associated with the character itself rather than individual readings, for example. Right now I am thinking of building a data structure like so:
    -  A Vector that holds:
       -  custom KanjiEntry objects that each hold
          -  a kanji in a primitive char value; and
          -  two (on, kun) arrays or Vectors of custom Reading objects that hold
             -  the reading in a String; and
             -  statistics of some sort, probably in primitive valuesFirst of all, is this approach sensible in the rough outlines?
    Now, I need to be able to do the obvious things... save to and load from file, generate tables and views, and edit values. The quesiton of editting values raises the questions I identified above as (1) and (2). Say I want to pull up a reading, quiz the user on it, and update its statistics based on whether the user got it right or wrong. I could do all this through the KanjiEntry object with a setter method that takes a zillion arguments like:
    theKanjiEntry.setStatistic(
    "on",   // which set of readings
    2,      // which element in that array or Vector
    "score", // which statistic
    98);      // the valueOr I could pass a clone of the Reading object out, work with that, then tell the KanjiEntry to replace the original with my modified clone.
    My instincts balk at the first approach, and a little at the second. Doesn't it make more sense to work with a reference to the Reading object? Or is that bad encapsulation?
    A second point. When running flash cards, I do not care about the subtlties of the structure, like whether a reading is an on or a kun (although this is important when browsing a table representing the entire structure). All I really care about is kanij/reading pairings. And I should be able to quickly poll the Reading objects to see which ones need quizzing the most, based on their statistics. I was thinking of making a nice neat Hashtable with the keys being the kanji characters in Strings (not the KanjiEntry objects) and the values being the Reading objects. The result would be two indeces to the Reading objects... the basic structure and my ad hoc hashtable for runninq quizzes. Then I would just make sure that they stay in sync in terms of the higher level structure (like if a whole new KanjiEntry got added). Is this bad form, or even downright dangerous?
    Apart from good form, the other consideration bouncing around in my head is that if I get all crazy with deep cloning and filling the bottom level guys with instance methods then this puppy is going to get bloated or lag when there are several thousand kanji in memory at once.
    Any help would be appreciated.
    Drake

    Usually by better design. Move methods that use the
    getters inside the class that actually has the data....
    As a basic rule of thumb:
    The one who has the data is the one using it. If
    another class needs that data, wonder what for and
    consider moving that operation away from that class.
    Or move from pull to push: instead of A getting
    something from B, have B give it to A as a method
    call argument.Thanks for the response. I think I see what you are saying.. in my case it is something like this.
    Solution 1 (disfavored):
    public class kanjiDrill{ // a chunk of Swing GUI or something
         public void runDrill(Vector kanjiEntries){
              KanjiEntry currentKanjiEntry = kanjiEntries.elementAt(0); // except really I will pick one randomly
              char theKanji = currentKanjiEntry.getKanji();
              String theReading = currentKanjiEntry.getReading();
              // build and show a flashcard based on theKanji and theReading
              // use a setter to change currentKanji's data based on whether the user answers correctly;
    }Solution 2 (favored):
    public class kanjiDrill{ // a chunk of Swing GUI or something
         public void runDrill(Vector kanjiEntries){
              KanjiEntry currentKanjiEntry = kanjiEntries.elementAt(0); // except really I will pick one randomly
              currentKanji.buildAndShowFlashcard(); // method includes updating stats
    }I can definitely see the advantages to this, but two potential reasons to think hard about it occur to me right away. First, if this process is carried out to a sufficient extreme the objects that hold my data end up sucking in all the functionality of my program and my objects stop resembling natural concepts.
    In your shopping example, say you want to generate price tags for the items. The price tags can be generated with ONLY the raw price, because we do not want the VAT on them. They are simple GIF graphics that have the price printed on a an irregular polygon. Should all that graphics generating code really go into the item objects, or should we just get the price out of the object with a simple getter method and then make the tags?
    My second concern is that the more instance methods I put into my bottom level data objects the bigger they get, and I intend to have thousands of these things in memory. Is there a balance to strike at some point?
    It's not really a setter. Outsiders are not setting
    the items price - it's rather updating its own price
    given an argument. This is exactly how it should be,
    see my above point. A breach of encapsulation would
    be: another object gets the item price, re-calculates
    it using a date it knows, and sets the price again.
    You can see yourself that pushing the date into the
    item's method is much beter than breaching
    encapsulation and getting and setting the price.So the point is not "don't allow access to the members" (which after all you are still doing, albeit less directly) so much as "make sure that any functionality implicated in working with the members is handled within the object," right? Take your shopping example. Say we live in a country where there is no VAT and the app will never be used internationally. Then we would resort to a simple setter/getter scheme, right? Or is the answer that if the object really is pure data are almost so, then it should be turned into a standard java.util collection instead of a custom class?
    Thanks for the help.
    Drake

  • I need help with shooting in my flash game for University

    Hi there
    Ive tried to make my tank in my game shoot, all the code that is there works but when i push space to shoot which is my shooting key it does not shoot I really need help with this and I would appriciate anyone that could help
    listed below should be the correct code
    //checking if the space bar is pressed and shooting is allowed
    if(evt.keyCode == 32 && shootAllow){
        //making it so the user can't shoot for a bit
        shootAllow = false;
        //declaring a variable to be a new Bullet
        var newBullet:Bullet = new Bullet();
        //changing the bullet's coordinates
        newBullet.y = tank_mc.y + tank_mc.width/2 - newBullet.width/2;
        newBullet.x = tank_mc.x;
        //then we add the bullet to stage
        addChild(newBullet);
    listed below is my entire code
    import flash.display.MovieClip;
        //declare varibles to create mines
    //how much time before allowed to shoot again
    var cTime:int = 0;
    //the time it has to reach in order to be allowed to shoot (in frames)
    var cLimit:int = 12;
    //whether or not the user is allowed to shoot
    var shootAllow:Boolean = true;
    var minesInGame:uint;
    var mineMaker:Timer;
    var cursor:MovieClip;
    var index:int=0;
    var tankMine_mc:MovieClip;
    var antiTankmine_mc:MovieClip;
    var maxHP:int = 100;
    var currentHP:int = maxHP;
    var percentHP:Number = currentHP / maxHP;
    function initialiseMine():void
        minesInGame = 15;
        //create a timer fires every second
        mineMaker = new Timer(6000, minesInGame);
        //tell timer to listen for Timer event
        mineMaker.addEventListener(TimerEvent.TIMER, createMine);
        //start the timer
        mineMaker.start();
    function createMine(event:TimerEvent):void
    //var tankMine_mc:MovieClip;
    //create a new instance of tankMine
    tankMine_mc = new Mine();
    //set the x and y axis
    tankMine_mc.y = 513;
    tankMine_mc.x = 1080;
    // adds mines to stage
    addChild(tankMine_mc);
    tankMine_mc.addEventListener(Event.ENTER_FRAME, moveHorizontal);
    function moveHorizontal(evt:Event):void{
        evt.target.x -= Math.random()*5;
        if (evt.target.x >= stage.stageWidth)
            evt.target.removeEventListener(Event.ENTER_FRAME, moveHorizontal);
            removeChild(DisplayObject(evt.target));
    initialiseMine();
        //declare varibles to create mines
    var atmInGame:uint;
    var atmMaker:Timer;
    function initialiseAtm():void
        atmInGame = 15;
        //create a timer fires every second
        atmMaker = new Timer(8000, minesInGame);
        //tell timer to listen for Timer event
        atmMaker.addEventListener(TimerEvent.TIMER, createAtm);
        //start the timer
        atmMaker.start();
    function createAtm(event:TimerEvent):void
    //var antiTankmine_mc
    //create a new instance of tankMine
    antiTankmine_mc = new Atm();
    //set the x and y axis
    antiTankmine_mc.y = 473;
    antiTankmine_mc.x = 1080;
    // adds mines to stage
    addChild(antiTankmine_mc);
    antiTankmine_mc.addEventListener(Event.ENTER_FRAME, moveHorizontal);
    function moveHorizontal_2(evt:Event):void{
        evt.target.x -= Math.random()*10;
        if (evt.target.x >= stage.stageWidth)
            evt.target.removeEventListener(Event.ENTER_FRAME, moveHorizontal);
            removeChild(DisplayObject(evt.target));
    initialiseAtm();
    function moveForward():void{
        bg_mc.x -=10;
    function moveBackward():void{
        bg_mc.x +=10;
    var tank_mc:Tank;
    // create a new Tank and put it into the variable
    // tank_mc
    tank_mc= new Tank;
    // set the location ( x and y) of tank_mc
    tank_mc.x=0;
    tank_mc.y=375;
    // show the tank_mc on the stage.
    addChild(tank_mc);
    stage.addEventListener(KeyboardEvent.KEY_DOWN, onMovementKeys);
    //creates the movement
    function onMovementKeys(evt:KeyboardEvent):void
        //makes the tank move by 10 pixels right
        if (evt.keyCode==Keyboard.D)
        tank_mc.x+=5;
    //makes the tank move by 10 pixels left
    if (evt.keyCode==Keyboard.A)
    tank_mc.x-=5
    //checking if the space bar is pressed and shooting is allowed
    if(evt.keyCode == 32 && shootAllow){
        //making it so the user can't shoot for a bit
        shootAllow = false;
        //declaring a variable to be a new Bullet
        var newBullet:Bullet = new Bullet();
        //changing the bullet's coordinates
        newBullet.y = tank_mc.y + tank_mc.width/2 - newBullet.width/2;
        newBullet.x = tank_mc.x;
        //then we add the bullet to stage
        addChild(newBullet);
    if (tank_mc.hitTestObject(antiTankmine_mc))
            //tank_mc.gotoAndPlay("hit");
            currentHP -= 10;
            // remove anti tank mine
            removeChild(antiTankmine_mc);
    if (tank_mc.hitTestObject(tankMine_mc))
            //tank_mc.gotoAndPlay("hit");
            currentHP -= 10;
            // remove anti tank mine
            removeChild(tankMine_mc);
        //var maxHP:int = 100;
    //var currentHP:int = maxHP;
    //var percentHP:Number = currentHP / maxHP;
        //Incrementing the cTime
    //checking if cTime has reached the limit yet
    if(cTime < cLimit){
        cTime ++;
    } else {
        //if it has, then allow the user to shoot
        shootAllow = true;
        //and reset cTime
        cTime = 0;
    function updateHealthBar():void
        percentHP = currentHP / maxHP;
        healthBar.barColor.scaleX = percentHP;
        if(currentHP <= 0)
            currentHP = 0;
            trace("Game Over");
        updateHealthBar();

    USe the trace function to analyze what happens and what fails to happen in the code you showed.  trace the conditional values to see if they are set up to allow a shot when you press the key

  • Please help with RMAN dup for RAC db

    Happy Holidays!! All,
    I need help with the following issue:
    Both target and auxiliary databases are:
    Database version is 10.2.0.3 with 2-node RAC db
    Servers are MS 2003
    Oracle Clusterware 10.2.0.3
    Oracle ASM for storage
    I have run the rman dup from RAC to a single instance db for a while. This is the first time I ran from RAC to RAC. This auxiliary db was refreshed before and was up for a while and was managed by server control tool. Now I am trying to refresh it with new backup files from production. I did the following as people suggested:
    1)     shutdown instance in the second node.
    2)     Startup nomount mode in the first node
    3)     Run RMAN dup
    It failed in the same place with slightly different errors. I pasted error messages at the bottom. I already created a TAR with Oracle but would like to know if anybody has any info related to this. Also I have several questions to ask:
    1)     Should I stop all services related to Oracle in node-2
    2)     Should I stop all clustware related services in node-1 except oracleCSServie since ASM uses it?
    3)     Is there any way I can finish the dup manually from the place I failed? What going to happen if I don’t finish the rest of the dup and go ahead with “alter database open resetlogs”?
    4)     How do I remove the database from under Server control – I already run “srvctl remove database -d atlrac” successfully. Is this all?
    Thanks a lot for your help and have a great holiday season!!!
    First time run:
    contents of Memory Script:
    shutdown clone;
    startup clone nomount ;
    executing Memory Script
    database dismounted
    Oracle instance shut down
    connected to auxiliary database (not started)
    RMAN-00571: ====================================================
    RMAN-00569: ======= ERROR MESSAGE STACK FOLLOWS ==============
    RMAN-00571: =============================================
    RMAN-03002: failure of Duplicate Db command at 12/21/2009 20:24:47
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-04014: startup failed: ORA-00610: Internal error code
    Second time run:
    contents of Memory Script:
    shutdown clone;
    startup clone nomount ;
    executing Memory Script
    database dismounted
    Oracle instance shut down
    connected to auxiliary database (not started)
    RMAN-00571: ===================================================
    RMAN-00569: ========== ERROR MESSAGE STACK FOLLOWS ==========
    RMAN-00571: ===================================================
    RMAN-03002: failure of Duplicate Db command at 12/22/2009 15:53:27
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-04014: startup failed: ORA-03113: end-of-file on communication channel
    Shirley

    1) Should I stop all services related to Oracle in node-2
    No, you just need to stop the second instance.
    2) Should I stop all clustware related services in node-1 except oracleCSServie since ASM uses it?
    No, you don't need to stop anything. Just have the instance startup nomount.
    3) Is there any way I can finish the dup manually from the place I failed? What going to happen if I don’t finish the rest of the dup and go ahead with “alter database open resetlogs”?
    You have not shown enough information. Did the restore succeed ? Did the recover succeed ? What was it doing when it failed ?
    4) How do I remove the database from under Server control – I already run “srvctl remove database -d atlrac” successfully. Is this all?
    Yes, srvctl remove database is all you need. (unless you also want to remove from listener.ora, tnsnames.ora, oratab etc)

  • Help with applescript to quit certain processes by name?

    Hey, for anyone who knows how to program applescripts well, I could use some help with the script below.
    I'm very new to applescripting and I'm trying to write a script that would automatically quit up to 100 instances of the Google Chrome Renderer process.
    Thanks to google, I found a script similar to what I wanted, and after some tinkering I thought I had it just right. The thing is, if I only set the app_name to Google Chrome, it quits Chrome just fine, but when I try it like this, it doesn't receive any data from grep or awk.
    If anyone can help I'd really appreciate it.
    repeat 100 times
              set app_name to "Google Chrome Renderer"
              set the_pid to (do shell script "ps ax | grep " & (quoted form of app_name) & " | grep -v grep | awk '{print $1}'")
              set new_pid to first word of the_pid
              try
                        if new_pid is not "0" or "1" then do shell script ("kill -9 " & new_pid)
              end try
    end repeat

    try this:
    tell application "System Events"
              set procs to (every process whose name is "Google Chrome Renderer")
              if (count of procs) > 100 then
                        set max to 100
              else
                        set max to count of procs
              end if
              repeat with i from 1 to max
                        tell (item i of procs) to quit
              end repeat
    end tell

  • Mail.app - Applescript - Looking for help with my 1st Applescript

    Okay… so I am taking the plunge. I've finally found something that is bugging me enough that I want to make a script to resolve it.
    *Here's the situation:*
    I use Smart Mailboxes a lot. It's my primary window into dealing with email.
    I use MailTags (an addon for Mail) to apply keywords to messages, via Mail Act-On rules (an addon by the same company).
    I use Smart Mailboxes to show me messages with various keywords etc.
    What I have found is that Smart Mailboxes do NOT automatically update themselves. For instance, when a message in the Smart Mailbox is changed in such a way that the filter on that mailbox should not display it, the message will still sit there until I either leave the mailbox and return, or hit Rebuil in the Mailbox menu.
    The same applies for when new mail comes into my Inbox. If there is new mail that qualifies for inclusion in the smart mailbox I am currently viewing, it will not appear until I do one of the above two things.
    What I discovered was this script:
    tell application "Mail" to activate
    tell application "System Events"
    click menu item "Rebuild" in menu ¬
    "Mailbox" in menu bar 1 of process "Mail"
    end tell
    This is what got me thinking about scripting a solution.
    The other option is to assign a keyboard shortcut to the Rebuild command. But I would like the Rebuild to take place automatically when I apply certain rules to messages. I want my Mail Act-on rule to trigger the a Rebuild. I figure I can do this by having it trigger the Rebuild script shown above.
    *HERE IS MY QUESTION:*
    Is there a way to have the script check what the currently active/selected Mailbox is? Or, put another way, can I get it to NOT run if certain mailboxes are selected?
    Here's what I am thinking.
    Under no circumstances do I want this script to be triggered if the current mailbox is NOT a smart mailbox, and IS any of my IMAP mailboxes… most especially the Inboxes. That would trigger a complete cleaning out and rebuilding of the entire IMAP inbox, which has many gigs of mail in it.
    What I am trying to figure out, and would love some help with, is how I can make sure this script ONLY runs when the current mailbox is either ANY smart mailbox, or NOT an IMAP mailbox, or some other logic that keeps it from running in an IMAP mailbox.
    Any tips are greatly appreciated.
    With thanks,
    Jonathan
    Message was edited by: InspiredLife
    Message was edited by: InspiredLife

    Thanks Camalot,
    I appreciate your help with this. I am also enjoying learning more about AppleScript. It seems much easier that other scripting languages, if for no other reason that it uses basic english logic and words.
    When I run your script with an inbox selected, I get the following Result:
    tell application "Mail"
    get selected mailboxes of message viewer 1
    --> {mailbox "INBOX" of account "JE Gmail"}
    end tell
    Result:
    {mailbox "INBOX" of account "JE Gmail" of application "Mail"}
    When I run it with a smart mailbox selected the following is produced:
    tell application "Mail"
    get selected mailboxes of message viewer 1
    --> {current application}
    end tell
    Result:
    {application "Mail"}
    So get the impression it's not throwing up an error. Certainly, either way it does not run what I put into the On Error section, which was simply
    display dialog "Success"
    Is this useful? Can I test if the output contains the word "INBOX" ?
    I notice that if I have, for instance, a SENT folder select, it gives the following result:
    Result:
    {mailbox "INBOX/Sent Messages" of account "[email protected]" of application "Mail"}
    Which again has the word INBOX in there. Drafts comes up a little different.
    Result:
    {mailbox "Drafts ([email protected])" of application "Mail"}
    So if there was a way to parse the result through a test against "INBOX" "DRAFT" etc then this might work. What do you think?
    I have no idea how to go about that though, so your input would be very helpful.
    Thanks,
    Jonathan

  • Noob needs help with Logic and Motu live setup.

    Hello everyone,
    I'm a noob / semi noob who could use some help with a live setup using 2 MOTU 896HD's and Logic on a Mac.
    Here's the scenario:
    I teach an outdoor marching percussion section (a drumline and a front ensemble of marimbas and vibes). We have an amazing setup of live sound to amplify and enhance the mallet percussion. There is a yamaha PA system with 2 subs and 2 mains which are routed through a rack unit that processes the overall PA balance. I'm pretty sure that the unit is supposed to avoid feedback and do an overall cross-over EQ of the sound. Other then that unit, we have 2 motu896hd units which are routed via fire-wire. I also have a coax cable routing the output of the secondary box to the input of the primary box (digital i/o which converts to ADAT in (i think?)..?
    Here's the confusion:
    There are more then 8 inputs being used from the ensemble itself, so I need the 16 available inputs to be available in Logic. I was lead to believe that the 2nd motu unit would have to be sent digitally to the 1st motu unit via coax digital i/o. Once in Logic, however, I cannot find the signal or any input at all past the 8th input (of the 1st unit).
    Here's the goal:
    All of my performers and inputs routed via firewire into a Mac Mini running OSX and Logic pro.
    I want to be able to use MainStage and run different patches of effects / virt. instruments for a midi controller keyboard / etc.
    I want to be able to EQ and balance the ensemble via Logic.
    Here's another question:
    How much latency will I be dealing with? Would a mac mini with 4gb of ram be able to handle this load? With percussion, I obviously want the sound as latency free as possible. I also, however, want the flexibility of sound enhancement / modification that comes with Logic and the motu896hd units.
    Any help would be REALLY appreciated. I need the routing assistance along with some direction as to whether or not this will work for this type of application. I'm pretty certain it does, as I have spoken with some other teachers in similar venues and they have been doing similar things using mac mini's / logic / mainstage / etc.
    Thanks in advance,
    Chris

    You'll definitely want to read the manual to make sure the 896HDs are connected together properly. ADAT is a little tricky, it's not just a matter of cabling them together. Go to motunation.com if you need more guidance on connecting multiple devices. Beyond that initial hookup, here are a couple of quick suggestions:
    1. Open CueMix and see if both devices are reported there. If not, your connections aren't correct. Be sure to select 44.1kHz as your sample rate, otherwise you are reducing the number of additional channels. For instance at 88.2kHz you would get half the additional channels via ADAT.
    2. You may need to create an aggregate device for the MacBook to recognize more than the first 896HD. Lots of help on this forum for how to do that. Again, first make sure you have the 896HDs connected together properly.
    3. As for latency with Mainstage on the Mini, no way to know until you try it. Generally MOTU is fantastic for low latency work but Mainstage is a question mark for a lot of users right now. If the Mini can't cut the mustard, you have a great excuse to upgrade to a MacBook Pro.

  • Need Help with data type conversion

    Hello People,
    I am new to java, i need some help with data type conversion:
    I have variable(string) storing IP Address
    IPAddr="10.10.103.10"
    I have to call a library function which passes IP Address and does something and returns me a value.
    The problem I have is that external function call in this library excepts IP Address in form of a byte array.
    Here is the syntax for the function I am calling through my program
    int createDevice (byte[] ipAddress).
    now my problem is I don't know how to convert the string  IPAddr variable into a byte[] ipAddress to pass it through method.

    Class InetAddress has a method
    byte[]      getAddress() You can create an instance using the static method getByName() providing the IP address string as argument.

  • Server goes out of memory when annotating TIFF File. Help with Tiled Images

    I am new to JAI and have a problem with the system going out of memory
    Objective:
    1)Load up a TIFF file (each approx 5- 8 MB when compressed with CCITT.6 compression)
    2)Annotate image (consider it as a simple drawString with the Graphics2D object of the RenderedImage)
    3)Send it to the servlet outputStream
    Problem:
    Server goes out of memory when 5 threads try to access it concurrently
    Runtime conditions:
    VM param set to -Xmx1024m
    Observation
    Writing the files takes a lot of time when compared to reading the files
    Some more information
    1)I need to do the annotating at a pre-defined specific positions on the images(ex: in the first quadrant, or may be in the second quadrant).
    2)I know that using the TiledImage class its possible to load up a portion of the image and process it.
    Things I need help with:
    I do not know how to send the whole file back to servlet output stream after annotating a tile of the image.
    If write the tiled image back to a file, or to the outputstream, it gives me only the portion of the tile I read in and watermarked, not the whole image file
    I have attached the code I use when I load up the whole image
    Could somebody please help with the TiledImage solution?
    Thx
    public void annotateFile(File file, String wText, OutputStream out, AnnotationParameter param) throws Throwable {
    ImageReader imgReader = null;
    ImageWriter imgWriter = null;
    TiledImage in_image = null, out_image = null;
    IIOMetadata metadata = null;
    ImageOutputStream ios = null;
    try {
    Iterator readIter = ImageIO.getImageReadersBySuffix("tif");
    imgReader = (ImageReader) readIter.next();
    imgReader.setInput(ImageIO.createImageInputStream(file));
    metadata = imgReader.getImageMetadata(0);
    in_image = new TiledImage(JAI.create("fileload", file.getPath()), true);
    System.out.println("Image Read!");
    Annotater annotater = new Annotater(in_image);
    out_image = annotater.annotate(wText, param);
    Iterator writeIter = ImageIO.getImageWritersBySuffix("tif");
    if (writeIter.hasNext()) {
    imgWriter = (ImageWriter) writeIter.next();
    ios = ImageIO.createImageOutputStream(out);
    imgWriter.setOutput(ios);
    ImageWriteParam iwparam = imgWriter.getDefaultWriteParam();
    if (iwparam instanceof TIFFImageWriteParam) {
    iwparam.setCompressionMode(ImageWriteParam.MODE_EXPLICIT);
    TIFFDirectory dir = (TIFFDirectory) out_image.getProperty("tiff_directory");
    double compressionParam = dir.getFieldAsDouble(BaselineTIFFTagSet.TAG_COMPRESSION);
    setTIFFCompression(iwparam, (int) compressionParam);
    else {
    iwparam.setCompressionMode(ImageWriteParam.MODE_COPY_FROM_METADATA);
    System.out.println("Trying to write Image ....");
    imgWriter.write(null, new IIOImage(out_image, null, metadata), iwparam);
    System.out.println("Image written....");
    finally {
    if (imgWriter != null)
    imgWriter.dispose();
    if (imgReader != null)
    imgReader.dispose();
    if (ios != null) {
    ios.flush();
    ios.close();
    }

    user8684061 wrote:
    U are right, SGA is too large for my server.
    I guess oracle set SGA automaticlly while i choose default installion , but ,why SGA would be so big? Is oracle not smart enough ?Default database configuration is going to reserve 40% of physical memory for SGA for an instance, which you as a user can always change. I don't see anything wrong with that to say Oracle is not smart.
    If i don't disincrease SGA, but increase max-shm-memory, would it work?This needs support from the CPU architecture (32 bit or 64 bit) and the kernel as well. Read more about the huge pages.

  • Help with display settings needed urgently

    Graphics and icons that are supposed to be round appear oval. For instance the Safari and App icons on the dock appear very oval. Logos on websites I've visited before and I know are round appear oval.
    I've tried all display settings and nothing helps. I'm a designer and this is causing a major hinderance. Everything appears condenced / squashed sideways. I'd be very grateful if someone could help with this.
    I've just purchased the laptop. I have been using Mac for a few years and I've always selected the "stretched" option from the Display settings which sorted out the problem completely. A circle looked a proper circle. But in this version the option is not available.
    Badly hoping someone can help with this.
    Thanks.
    Version Details - OS X Lion 10.7.4

    It sounds like you have selected an incorrect resolution.  For starters, are you talking about your Air's display or an external display?  You haven't said which Air you have.  If you have an 11" model, make sure your display resolution is set to 1366x768.  If you have a 13" model, it should be set to 1440x900.  These are the proper resolutions for the built in displays.  Chosing anything other than the referenced "native" display resolutions will result in distortions or clarity problems. 

  • Help with form sending the data to email

    I have looked all over the Internet for help with this.  I have tried numerous video tutorials and for some reason I can't get it to work.  I have created a form in flash cs4 AS2.  It is a contact information form where the user fills out their information and sends it.  I have created a the form in a movie clip (I have also tried it not in a movie clip) with the form components inside that movie clip.  I have given each component on the form an instance name.
    The form has:
    Full name (with instance name=name)
    Company (with IN =company)
    Title (with IN = title)
    Phone (with IN = phone)
    Email (with IN = email)
    Topic combobox (with IN=topic)
    Message box (with IN=msg)
    Submit button (with IN=submit)
    I need help with the actionscript writing.  I am VERY new to flash and have never done any scripting really.  Does anyone have a sample file I can look at to see how it works or can someone IM me and I can send my file for them to help me?
    My IM is logan3975
    Any help is greatly appreciated.  I consider myself a pretty technical person so I do learn quick...I just need some guidance until I wrap my head around how this all works.  Thanks.

    Here's a link to a posting elsewhere some had had that may provide some useful info (?)
    http://board.flashkit.com/board/showthread.php?t=684031

  • URGENT Help With Scientific Calculator!

    Hi everybody,
    I designed a calculator, and I need help with the rest of the actions. I know I need to use the different Math methods, but I tried tried that and it didn't work. Also, it needs to work as an applet and application, and in the applet, the buttons don't appear in order, how can I fix that?
    I will really appreciate your help with this program, I can't get it to work and I'm frustrated, I need to finish this for next Tuesday 16th. Please e-mail me at [email protected].
    Below is the code for the calcualtor.
    Thanks a lot!
    -Maria
    // calculator
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.border.*;
    public class calculator extends JApplet implements
    ActionListener
      private JButton one, two, three, four, five, six, seven,
      eight, nine, zero, dec, eq, plus, minus, mult, div, clear,
      mem, mrc, sin, cos, tan, asin, acos, atan, x2, sqrt, exp, pi, percent;
      private JLabel output, blank;
      private Container container;
      private String operation;
      private double number1, number2, result;
      private boolean clear = false;
      //GUI
      public void init()
        container = getContentPane();
        //Title
        //super("Calculator");
        JPanel container = new JPanel();     
        container.setLayout( new FlowLayout( FlowLayout.CENTER
        output = new JLabel("");     
        output.setBorder(new MatteBorder(2,2,2,2,Color.gray));
        output.setPreferredSize(new Dimension(1,26));     
        getContentPane().setBackground(Color.white);     
        getContentPane().add( "North",output );     
        getContentPane().add( "Center",container );
        //blank
        blank = new JLabel( "                    " );
        container.add( blank );
        //clear
        clear = new JButton( "CE" );
        clear.addActionListener(this);
        container.add( clear );
        //seven
        seven = new JButton( "7" );
        seven.addActionListener(this);
        container.add( seven );
        //eight
        eight = new JButton( "8" );
        eight.addActionListener(this);
        container.add( eight );
        //nine
        nine = new JButton( "9" );
        nine.addActionListener(this);
        container.add( nine );
        //div
        div = new JButton( "/" );
        div.addActionListener(this);
        container.add( div );
        //four
        four = new JButton( "4" );
        four.addActionListener(this);
        container.add( four );
        //five
        five = new JButton( "5" );
        five.addActionListener(this);
        container.add( five );
        //six
        six = new JButton( "6" );
        six.addActionListener(this);
        container.add( six );
        //mult
        mult = new JButton( "*" );
        mult.addActionListener(this);
        container.add( mult );
        //one
        one = new JButton( "1" );
        one.addActionListener(this);
        container.add( one );
        //two
        two = new JButton( "2" );
        two.addActionListener(this);
        container.add( two );
        //three
        three = new JButton( "3" );
        three.addActionListener(this);
        container.add( three );
        //minus
        minus = new JButton( "-" );
        minus.addActionListener(this);
        container.add( minus );
        //zero
        zero = new JButton( "0" );
        zero.addActionListener(this);
        container.add( zero );
        //dec
        dec = new JButton( "." );
        dec.addActionListener(this);
        container.add( dec );
        //plus
        plus = new JButton( "+" );
        plus.addActionListener(this);
        container.add( plus );
        //mem
        mem = new JButton( "MEM" );
        mem.addActionListener(this);
        container.add( mem );   
        //mrc
        mrc = new JButton( "MRC" );
        mrc.addActionListener(this);
        container.add( mrc );
        //sin
        sin = new JButton( "SIN" );
        sin.addActionListener(this);
        container.add( sin );
        //cos
        cos = new JButton( "COS" );
        cos.addActionListener(this);
        container.add( cos );
        //tan
        tan = new JButton( "TAN" );
        tan.addActionListener(this);
        container.add( tan );
        //asin
        asin = new JButton( "ASIN" );
        asin.addActionListener(this);
        container.add( asin );
        //acos
        acos = new JButton( "ACOS" );
        cos.addActionListener(this);
        container.add( cos );
        //atan
        atan = new JButton( "ATAN" );
        atan.addActionListener(this);
        container.add( atan );
        //x2
        x2 = new JButton( "X2" );
        x2.addActionListener(this);
        container.add( x2 );
        //sqrt
        sqrt = new JButton( "SQRT" );
        sqrt.addActionListener(this);
        container.add( sqrt );
        //exp
        exp = new JButton( "EXP" );
        exp.addActionListener(this);
        container.add( exp );
        //pi
        pi = new JButton( "PI" );
        pi.addActionListener(this);
        container.add( pi );
        //percent
        percent = new JButton( "%" );
        percent.addActionListener(this);
        container.add( percent );
        //eq
        eq = new JButton( "=" );
        eq.addActionListener(this);
        container.add( eq );
        //Set size and visible
        setSize( 190, 285 );
        setVisible( true );
    public static void main(String args[]){
        //execute applet as application
         //applet's window
         JFrame applicationWindow = new JFrame("calculator");
    applicationWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         //applet instance
         calculator appletObject = new calculator();
         //init and start methods
         appletObject.init();
         appletObject.start();
      } // end main
      public void actionPerformed(ActionEvent ae)
        JButton but = ( JButton )ae.getSource();     
        //dec action
        if( but.getText() == "." )
          //if dec is pressed, first check to make shure there
    is not already a decimal
          String temp = output.getText();
          if( temp.indexOf( '.' ) == -1 )
            output.setText( output.getText() + but.getText() );
        //clear action
        else if( but.getText() == "CE" )
          output.setText( "" );
          operation = "";
          number1 = 0.0;
          number2 = 0.0;
        //plus action
        else if( but.getText() == "+" )
          operation = "+";
          number1 = Double.parseDouble( output.getText() );
          clear = true;
          //output.setText( "" );
        //minus action
        else if( but.getText() == "-" )
          operation = "-";
          number1 = Double.parseDouble( output.getText() );
          clear = true;
          //output.setText( "" );
        //mult action
        else if( but.getText() == "*" )
          operation = "*";
          number1 = Double.parseDouble( output.getText() );
          clear = true;
          //output.setText( "" );
        //div action
        else if( but.getText() == "/" )
          operation = "/";
          number1 = Double.parseDouble( output.getText() );
          clear = true;
          //output.setText( "" );
        //eq action
        else if( but.getText() == "=" )
          number2 = Double.parseDouble( output.getText() );
          if( operation == "+" )
            result = number1 + number2;
          else if( operation == "-" )
            result = number1 - number2;
          else if( operation == "*" )
            result = number1 * number2;
          else if( operation == "/" )
            result = number1 / number2;       
          //output result
          output.setText( String.valueOf( result ) );
          clear = true;
          operation = "";
        //default action
        else
          if( clear == true )
            output.setText( "" );
            clear = false;
          output.setText( output.getText() + but.getText() );
    }

    Multiple post:
    http://forum.java.sun.com/thread.jsp?forum=31&thread=474370&tstart=0&trange=30

Maybe you are looking for

  • Standard SAP program to generate email invoices ?

    Hello, Is there is any standard SAP SD program which can analyse the accounts recevables, and generate many invoices for many customers with a single run ? The program would then recognize the customer e-mail adress and send an e-mail with the invoic

  • How can we get ADFSecurity work when used in OC4J, OID and OAM?

    I am getting error in http server log "mod_oc4j: Response status=499 and reason=Oracle SSO, but failed to get mod_osso global context." But I am not using Oracle SSO and my client doesn't want to use it either, I am using OAM SSO(CoreIDSSO) in my con

  • For query experts

    Hi All Here we have a new requirement from the customer asking us to create a new query. Now the problem is I have to include the 4 views on the application tool bar, it is similar to that we create 4 buttons on the application tool bar and manage wi

  • I cannot open mail. No response to tapping anything.

    ?what to do to unfreeze mailbox?

  • Some errors when calling LabVIEW VIs Interactively from DIAdem

    Hi! I'm having some trouble using the "Calling LabVIEW VIs Interactively from DIAdem" found on: http://zone.ni.com/devzone/conceptd.nsf/webmain/1A98AB48E35D913086256E23004E6A22 Following the troubleshooting section didn't resolve the issue. I recompi