How to MOCHA ?

Hi.
While testing my ftp-ing to and fro, I clobbered all my copies of .java and I'm trying to mocha one back from my .class
I downloaded mocha.zip to j2sdk1.4.2_05\jre\lib\mocha.zip
Set the CLASSPATH = c:\j2sdk1.4.2_05\jre\lib\mocha.zip;
Rebooted XP
And got a java.lang.NoClassDefFoundError
Is this a problem with MOCHA?

Thanks YoGee, DJ did the job, except for the missing commentaries.
:~)
Out of interest, this thing with MOCHA and XP :
I've the CLASSPATH as a system classpath on XP (its got a lot of things in it, I'm running Ora9i client etc)
But MOCHA didn't like the system CLASSPATH on XP
So I inserted that into my personal CLASSPATH, which MOCHA recognised because it got rid of the "NoClassDefFoundError".
But on trying to run MOCHA after the reboot, it tells me my .class is not a valid class file.
Maybe it is the Java version or is it XP? Does anyone know?

Similar Messages

  • "Mocha for After Effects" included when you install Dreamweaver CS5

    During installation of Adobe Master Collection CS5, I deselected everything except for Dreamweaver. After finishing, I had shortcuts for the following:
    Adobe Device Central CS5
    Adobe Dreamweaver CS5
    Mocha for After Effects CS5
    Adobe Help
    (I believe Air is installed as well, but it appears to be required for Adobe Help?)
    How did Mocha for After Effects and Adobe Device Central get installed?

    Device Central and Mocha for After Effects are not main applications (those which are displayed on left side of Options dialog), rather they are termed as Shared Technologies which are used by multiple applications. Adobe Help is anyway installed even when a single application is installed, Device Central is installed as Dreamweaver has dependency on it. Mocha for After Effects should not be installed if Aftre Effects is deselcted, but it gets installed because of one deferred bug in CS5, you can see some unusable folders of Premiere Pro, Encore etc also even when they are not selected.

  • How to get more efficient After Effects and Mocha Integration?

    Hello All
    Is there a way to open a previously created Mocha AE project from AE? I am working on a shot that needed tracking and each time I stopped and then came back to the project, I had to open AE, open the AE project, click the clip in the composition, click animation, click track in Mocha AE and then cancel Mocha asking to start a new project and then click file, recent files and choose the appropriate Mocha project.
    This works but is really dumb.
    I also understand this is the bundled version and that Imagineer really wants me to buy the full version. If I get enough projects to justify it, I will. Currently the bundled version is fine. Just need a shot that AE couldn't handle stabilized.
    What would be even better is if AE saw the Mocha program as an effect. Click a clip and then apply Mocha AE Tracking from the effects and presets panel. And then be able to do the track in the Mocha interface and then using the effects controls tell it to apply the track as either stabilization, corner pin data or whatever from the AE interface when the clip is selected.
    Does anyone else think this would be a much better way of using Mocha? Am I the only one who feels this way? Was there something I missed in creating my project?

    Thanks for the reply but... I think maybe I might not have communicated my thoughts correctly.
    I am working on a video that is going to be 1/2 hour long. Part of my footage is from a handheld camera. One section of the footage needs to be stabilized. So I right click on the clip in Premiere and replace with an After Effects Composition.
    Now I tried to track just using AE but that was a wash. So I figured I would track it in Mocha. Then I spent at least 1/2 an hour looking for Mocha in my start menu and on my hard drives in places that programs usually reside. Then when I didn't find it I went to the Creative Cloud site (I am a subscriber) and checked to see why I was having a hard time finding it. Then I got a little panicked trying to find out if it was still bundled with CS6 as I couldn't find mention of it there. The Imagineer site said it was, but it was not in my start menu and I couldn't manually find the executable where I expected it to be.
    So then after a short Google search I found that it was on the animate menu in AE. (Whew )
    So I opened the AE project I had created for tracking the clip and clicked animate and saw that the track in Mocha AE was grayed out. (oh boy...) I immediately went to the edit menu and clicked preferences, general. I looked through the choices and tried to find where I was supposed to "turn on" Mocha. Couldn't find anything related.
    So I selected the clip in the composition timeline. Chose Animate and then the choice was available and I clicked Track in Mocha AE.
    Now Mocha asked to create a new project. Basically took the defaults and then I had to wait a while as Mocha cached the clip. Once the clip was cached I got started finding the relevant area of the footage and set up the x spline for tracking on the first frame. Then I saved so I could start again the next day without having to wait and went to bed happy.
    The next day when I was ready to start tracking that footage again I tried to find Mocha in my start menu, I figured that maybe it would show up now because I had used it once. Didn't so I found it in Program files tucked away in a secret folder in the Adobe folder sets and created a short cut and double clicked it. It told me that I had to start it from inside AE.
    So I opened the previous days AE Project and clicked the clip chose Animation and clicked track in Mocha. Mocha wanted to start a new project based on the clip I had to select in order to get the menu choice from inside of AE, so I canceled that and then Mocha opened and I chose recent files and the previous days project.
    And then I waited again as Mocha re-cached the clip. I made sure everything was set up correctly, looked at the spline layer and felt I was good to go so I hit the forward track button. The clip has a frame length of 21752 frames. At frame 9199 I had to stop working and do other things. I stopped the tracking and saved the project.
    The next day when I was ready to start tracking that footage again I opened the previous days AE Project and clicked the clip chose Animation and clicked track in Mocha. Mocha wanted to start a new project based on the clip I had to select in order to get the menu choice from inside of AE, so I canceled that and then Mocha opened and I chose recent files and the previous days project.
    And then I waited again as Mocha re-cached the clip. I made sure everything was the same as I had left it the previous day and then found the end of the previous days work and moved Mocha's CTI to the spot where I needed to track from. I hit the track forward button. It told me the footage was different or too dark from previous frames and that it couldn't continue. HUH?
    So I noticed that there was a different coloration on the frame timeline indicator. There was a blue section, where I had previously tracked and a red section, which I assumed meant it was untracked. I moved the CTI back into the blue section and hit track forward. Everything worked. Then I got to a section that had people obscuring the part of the shot that I was doing my tracking on. Time to create an exclusion x spline layer. I found the first frame where the people would become a problem and surrounded them. Everything was good even though it was taking 7 extra steps to get to the start of working on the clip each time. So I saved and went to bed.
    Should I bother to tell you what happened the next?
    The today when I was ready to start tracking that footage again I opened the previous days AE Project and clicked the clip chose Animation and clicked track in Mocha. Mocha wanted to start a new project based on the clip I had to select in order to get the menu choice from inside of AE, so I canceled that and then Mocha opened and I chose recent files and the previous days project.
    And then I waited again as Mocha re-cached the clip.
    This work flow is aggravating. I have to take extra steps, wait at least 5 minutes for caching each time and then wait for the actual track itself. I have used Mocha before and so I know how to use it, I know the different ways of getting the data to AE, but the problem is not the end of the workflow, it is getting to the start of the work each time I have to close the project(s) that is the problem.
    This "workflow" is making me want to see if there is a better way or another program that will help in correcting shaky footage. Yes I get back to exactly where I left off, but the point is the amount of work to it takes to just start working on my project again. I wonder how anyone can tolerate the process.
    Is there some magic menu choice or setting somewhere I am missing? Do you feel that this process is "normal"?

  • How can i access mocha in after effects cs6

    how can i access mocha in after effects cs6

    To use mocha AE in After Effects CS6, select the item to track and choose Animation > Track in mocha AE.

  • How to tell AE CS6 to use bundled Mocha rather than Pro?

    I recently upgraded my bundled Mocha from AE CS6 to Mocha Pro 4, but for some unknown reason, it won't let me export shape data in Mocha.  There seems to be no data at all, as even trying to paste in Notepad results in nothing.  Tracking data, however, works fine (both in AE and Notepad).
    Since I cannot figure out any solution in Mocha, the only thing I can do is use bundled Mocha rather than Pro... but I do not know how to tell AE to use bundled Mocha rather than Pro when I click 'Track In Mocha' (...a setting which was changed when Pro was installed).
    Does anyone know where/how I can switch it to Mocha bundled when you click on Track In Mocha?  (or, does anyone have any idea why Pro would not export shape data, whereas the same project in bundled Mocha did?)
    If anyone has any answers or theories, please let me know ASAP, as I have a project I'm trying to complete, and (as luck always has it) the weekend is now upon us, and support is closed over the weekend.

    I tried connecting MBP and TC via Ethernet - after verifying the settings that you suggested - and it does not work: if I turn Airport off, Time Machine says it can't find the TC
    Any other sugestions?
    Ok, then ethernet is not getting an ip address from the TC and is plugged in wrongly..
    You still didn't give me any idea of what actual model the linksys is.. and why is it in the network.. Is it a modem router?? If you have cable internet just throw it away and use the TC.
    If you have the linksys as modem, then bridge it.. turn off wireless and run pppoe client on the TC.
    If the ISP does not allow pppoe client mode then simply use the TC in bridge. Turn off all wireless in the linksys and just use the TC.
    Still need info on how everything is setup to analyse the problem.

  • How to remove an object from its background with mocha

    Hello,
    I have th Mocha version that comes along with Adobe After Effects CS5.5. Does this cersion has the remove tool?
    Thank you..

    You can track things, create masks, export the masks, remove backgrounds, and do a bunch of really amazing things with the version of Mocha that comes with AE, you just can't drop a clip into the included version of Mocha and render out a composite. There are also other goodies in Mocha Pro.
    I'd suggest that you go through a fist full of Mocha tutorials. There are a bunch of good ones on the Imagineer Systems site. Try filtering the results by Mocha AE.

  • How to access and open Mocha within After Effects CS6

    I'm aware that the Mocha app is opened through After Effects in the Animation tab then Track In mocha AE option, but this option is always greyed out. What do I need to do so that this option is not greyed out.

    Do you have a layer based on a video footage item selected?

  • How do i remove a blinking light? CC 2014 Premiere Pro AE / Mocha ?

    I have been trying to figure out the best way to do this and it seems harder than I first thought.
    There's a blinking message light on a phone in a shot (very small) that I need to remove. I've tried various ways of inserting a photo and tracking the motion etc but they're all jumpy and inconsistent. Can someone tell me the best way?
    the shot does move a bit since the camera was on track.
    the phone button is dark them bright orange then dark.
    help?
    thanks!

    you could try "change to color" effect or something similar, to remove the bright orange, but that might have its own problems as the light changes.   if you are unable to manually track your picture over the video frame, you will probably want/need AE. you can use its motion tracker or mocha.  there are plenty of tutorials on these on youtube.  if the picture you have doesn't work as the camera moves on its track thru the shot, you may need to recycle moments of the video where the light on the phone is off.

  • I have an Ipad 2 and here is what I am trying to accomplish.  On my laptop I connect to a remote desktop connection to access a shared program we use for reporting.  How do I set up my Ipad to access this remote server?  Thanks for the help.

    I have an Ipad 2 and here is what I am trying to accomplish.  On my laptop I connect to a remote desktop connection to access a shared program we use for reporting.  How do I set up my Ipad to access this remote server?  Thanks for the help.

    Close ... before going for a specific Cisco app ... lets find out some details:
    Host we need more details:
    What is your server environment (Windows Server, or Mac OS X Server, or Linux)?
    What security is implemented in your environment - as what is restricted (RDP for all or specifc credentials on all machines? Are you part of local admin group to the server you wish to connect)?
    Does your environment Support CISCO IPSec connection? If so use Settings> VPN and IPSec tab to enter VPN details, if not then go with above suggestion. IF your restricted to RSA then either built in VPN settings or 3rd party app for RSA would suffice.
    Finally, there are many RDP applications out there I use "Mocha RDP Light" (free minimal ads when launched not when connecting).

  • How do I back up my IPad to my laptop.  It is asking for a password I am signed it

    How do I back up my IPad to my laptop.  It is asking for a password but I am signed it

    Close ... before going for a specific Cisco app ... lets find out some details:
    Host we need more details:
    What is your server environment (Windows Server, or Mac OS X Server, or Linux)?
    What security is implemented in your environment - as what is restricted (RDP for all or specifc credentials on all machines? Are you part of local admin group to the server you wish to connect)?
    Does your environment Support CISCO IPSec connection? If so use Settings> VPN and IPSec tab to enter VPN details, if not then go with above suggestion. IF your restricted to RSA then either built in VPN settings or 3rd party app for RSA would suffice.
    Finally, there are many RDP applications out there I use "Mocha RDP Light" (free minimal ads when launched not when connecting).

  • How to free-form transform/distort image?

    Hello, everyone!
    I need to fit my photo on a video of a hand-held piece of paper that is a little distorted by holding in fingers and moving.
    I tracked it using planar tracker (Mocha Pro) and exported into Motion, so now I have 4-corner pinned rectangle in different layer, matching movement of 4 corners of this paper piece for all length of clip.
    BUT, as paper is not just 4 cornered (but has some push distortion, imagine you hold a soft piece of paper in hand), just matching movement of this rectangle won't help, I think I need to free-form distort some parts of my photo to perfectly fit in my final render.
    Is it possible to do such a simple thing? I surfed all internet, but didn't find an answer (everywhere is a TV Screen, or plain sheet of paper replacement that have just 4 corners with no distortion). All i found is just a CHV Deform FX plugin, but it costs some money, and I don't believe Motion doesn't have this function itself. Or there's another way of solving a problem?
    If you don't understand what i mean, just let me know, I'll upload a video or photos to show it.
    Thanks everyone who will help me, I'm f*ing about 3 days about this and even can't sleep thinking of solution...

    hi,
    motion can't do this kind of mesh deformation on its own. I believe the chv plugin does have this kind of thing, but I don't know how useful it is. The only solutions I can think of are hopelessly time consuming and wouldnt look convincing.
    adam

  • How to generate this output?URGENT

    how to generate using DOM or SAX to get this output?
    <project>
    <process name = " Process1 " >
    </project>
    i am stuck here ... may i know how to continued coding from here.. must add in wat ? can any one tell me thank....
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.FactoryConfigurationError;
    import javax.xml.parsers.ParserConfigurationException;
    import org.w3c.dom.Document;
    import org.w3c.dom.*;
    import org.w3c.dom.DOMException;
    import java.io.*;
    import java.util.*;
    public class TestVector
         private Vector m_vProcess;
         String strProjectName;
         public static void main(String[] args)
              TestVector pThis = new TestVector();
              pThis -> WriteToXML(m_vProcess);
         public void TestVector {
              strProjectName ="Project1";
              m_vProcess = new Vector();               
              m_vProcess.add("Process1");
              m_vProcess.add("Process2");
         public void WriteToXML(Vector vProcess)
              DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
              DocumentBuilder builder = facory.newDocumentBuilder();
              Document builder = builder.parse("Project.xml");
              Node rootNode = document.getDocumentElement();
              NodeList list = document.getElementsByTagName("Project");
    // Loop through the list.
              for (int i=0; i < list.getLength(); i++) {
              thisProjectNode = list.item(i);
              Node thisName1Node = thisProjectNode.getFirstChild();
              if (thisName1Node == null) continue;
              if (thisName1Node.getFirstChild() == null) continue;
              if (! thisName1Node.getFirstChild() instanceof
    org.w3c.dom.Text) continue;
              String data = thisName1Node.getFirstChild().getNodeValue();
              if (! data.equals("Process1")) continue;
    //We're at the Mocha Java node. Create and insert the new
    //element.
              Node newCoffeeNode = document.createElement("Project");
              Node newName1Node = document.createElement("Process");
              Text tnNode = document.createTextNode("Process1");
              newName1Node.appendChild(tnNode);
              Node newName2Node = document.createElement("Process");
              Text tpNode = document.createTextNode("Process2");
              newName2Node.appendChild(tpNode);
              newProjectNode.appendChild(newName1Node);
              newProjectNode.appendChild(newName2Node);
              rootNode.insertBefore(newProjectNode, thisProjectNode);
              break;

    i am not good in programming..wat ever i read b4 ,i wlll forget easily ..and y the output nv come out after i type these...
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.FactoryConfigurationError;
    import javax.xml.parsers.ParserConfigurationException;
    import org.w3c.dom.Document;
    import org.w3c.dom.*;
    import org.w3c.dom.DOMException;
    import java.io.*;
    import java.util.*;
    public class TestVector
         private Vector m_vProcess;
         String strProjectName;
         public static void main(String[] args)
              TestVector pThis = new TestVector();
              pThis -> WriteToXML(m_vProcess);
         public void TestVector {
              strProjectName ="Project1";
              m_vProcess = new Vector();               
              m_vProcess.add("Process1");
              m_vProcess.add("Process2");
         public void WriteToXML(Vector vProcess)
              DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
              DocumentBuilder builder = facory.newDocumentBuilder();
              Document builder = builder.parse("Project.xml");
              TransformerFactory tfac = TransformerFactory.newInstance();
              FileWriter fileWtr = new FileWriter("output.xml");
              StreamResult strResult = new StreamResult(fileWtr);
              Transformer trans = tfac.newTransformer();
              trans.transform(new DOMSource(document.getDocumentElement()),strResult);
              Node rootNode = document.getDocumentElement();
              NodeList list = document.getElementsByTagName("Project");
    // Loop through the list.
              for (int i=0; i < list.getLength(); i++) {
              thisProjectNode = list.item(i);
              Node thisName1Node = thisProjectNode.getFirstChild();
              if (thisName1Node == null) continue;
              if (thisName1Node.getFirstChild() == null) continue;
              if (! thisName1Node.getFirstChild() instanceof
    org.w3c.dom.Text) continue;
              String data = thisName1Node.getFirstChild().getNodeValue();
              if (! data.equals("Process1")) continue;
              Node newCoffeeNode = document.createElement("Project");
              Node newName1Node = document.createElement("Process");
              Text tnNode = document.createTextNode("Process1");
              newName1Node.appendChild(tnNode);
              Node newName2Node = document.createElement("Process");
              Text tpNode = document.createTextNode("Process2");
              newName2Node.appendChild(tpNode);
              newProjectNode.appendChild(newName1Node);
              newProjectNode.appendChild(newName2Node);
              rootNode.insertBefore(newProjectNode, thisProjectNode);
              break;

  • How to use remote desktop client in mountain lion

    How to use remote desktop client in mountain lion.
    I want to connect my other system(ubuntu) using mac remote desktop client, But i could not locate remote desktop client in moutain lion.

    In Ubuntu 12.xx use Dash to find "Desktop Sharing" and set the preferences, including requiring a password.
    Then in Ubu use System Settings > Network to determine your Ubu machine's IP address, such as 192.168.1.13.
    On the Mountain Lion Mac do Finder > Go > Connect to Server   and enter:  vnc://192.168.1.13  or whatever your IP is.  Enter the password that you used in the Ubu Desktop Sharing setup, when asked.
    On the Ubu machine answer the question that pops up asking for permission to connect.  Your Ubu screen will now show up on the Mac, and you can remote control it.   Here I am running "Octave" (a math program) on the Ubu machine, remotely.
    Works great!  BTW, you can do this from an iPad too, using a VNC client such as Mocha VNC Lite.  You can even run both remotes simultaneously.
    Good luck.

  • Newbie: How to design layering?

    I am sorry if this question isn�t the clearest but I am pretty new to Java. And please feel free to critic how I ask this question and the program I am going to show, I hope this will help me in the future ask better questions and write better code.
    This program was something I was working on for class that I couldn't finish. It is something I really need to learn because I am taking the second Java class and i am sure this is something I really will need to know.
    Question: I am trying to finish this program and my goal is to click on the order button and have all the panels I have be cleared. ( I change the setVisible to false). But the problem I am facing is when I try to add more panels the panels are being added to the bottom. I am pretty sure this is happening because I am not starting a new frame. But that is the question, how do I clear the first frame and all the panes and start a new one?
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.text.*;
    class LowFatBurgerGUI extends JFrame
    //Frame properties
    private static final int FRAME_WIDTH = 575;
    private static final int FRAME_HEIGHT = 500;
    private static final int FRAME_X_ORIGIN = 150;
    private static final int FRAME_Y_ORIGIN = 250;
    //Button properties
    private static final int BUTTON_WIDTH = 150;
    private static final int BUTTON_HEIGHT = 30;
    private int tofuCount = 0;
    private int cajunCount = 0;
    private int buffaloCount = 0;
    private int rainbowCount = 0;
    private int riceCount = 0;
    private int noSaltCount = 0;
    private int zucchiniCount = 0;
    private int brownCount = 0;
    private int mochaCount = 0;
    private int latteCount = 0;
    private int espresCount = 0;
    private int oolongCount = 0;
    private int tofuBurgercount = 0;
    private int cajunChickencount = 0;
    private int buffaloWingscount = 0;
    private int rainbowFilletcount = 0;
    private int riceCrackercount = 0;
    private int noSaltFriescount = 0;
    private int zucchinicount = 0;
    private int brownRicecount = 0;
    private int cafeMochacount = 0;
    private int cafeLattecount = 0;
    private int espressocount = 0;
    private int OolongTeacount = 0;
    private static final double TOFU_BURGER_PRICE = 3.49;
    private static final double CAJUN_CHICKEN_PRICE = 4.59;
    private static final double BUFFALO_WINGS_PRICE = 3.99;
    private static final double RAINBOW_FILLET_PRICE = 2.99;
    private static final double RICE_CRACKER_PRICE = 0.79;
    private static final double NO_SALT_FRIES_PRICE = 0.69;
    private static final double ZUCCHINI_PRICE = 1.09;
    private static final double BROWN_RICE_PRICE = 0.59;
    private static final double CAFE_MOCHA_PRICE = 1.99;
    private static final double CAFE_LATTE_PRICE = 1.99;
    private static final double ESPRESSO_PRICE = 2.49;
    private static final double OOLONG_TEA_PRICE = 0.99;
    //Initalize food buttons
    private JButton tofuBurgerButton;
    private JButton cajunChickenButton;
    private JButton buffaloWingsButton;
    private JButton rainbowFilletButton;
    private JButton riceCrackerButton;
    private JButton noSaltFriesButton;
    private JButton zucchiniButton;
    private JButton brownRiceButton;
    private JButton cafeMochaButton;
    private JButton cafeLatteButton;
    private JButton espressoButton;
    private JButton OolongTeaButton;
    //control buttons
    private JButton orderButton;
    private JButton cancelButton;
    //Subtotal output
    private static final String MESSAGE = " Your subtotal: $ ";
    //BLANK
    private static final String BLANK = "";
    //Initialize subtota
    private double subTotal = 0.0;
    private JLabel countLabel;
    JPanel headerPanel, menuPanel, buttomPanel, orderOutputPanel,
    middleOutputPanel, buttomOutputPanel;
    JFrame lowFatBurgerOrderFrame, lowFatBurgerOutputFrame;
    * Start
    public static void main(String [] args)
    new LowFatBurgerGUI();
    public LowFatBurgerGUI()
    lowFatBurgerMain();
    setVisible(true);
    private void lowFatBurgerMain()
    lowFatBurgerOrderFrame();
    //lowFatBurgerOutputFrame();
    tofuBurgerButton();
    cajunChickenButton();
    buffaloWingsButton();
    rainbowFilletButton();
    riceCrackerButton();
    noSaltFriesButton();
    zucchiniButton();
    brownRiceButton();
    cafeMochaButton();
    cafeLatteButton();
    espressoButton();
    OolongTeaButton();
    orderButton();
    cancelButton();
    lowFatBurgerOrderPanel();
    //lowFatBurgerOutputPanel();
    //Create order frame
    private void lowFatBurgerOrderFrame()
    // set the frame properties
    setSize ( FRAME_WIDTH, FRAME_HEIGHT );
    setResizable ( false );
    setTitle ( "Welcome to Low Fat Bugers ");
    setLocation ( FRAME_X_ORIGIN, FRAME_Y_ORIGIN );
    //Create output frame
    private void lowFatBurgerOutputFrame()
    // set the frame properties
    setSize ( FRAME_WIDTH, FRAME_HEIGHT );
    setResizable ( false );
    setTitle ( "Finalize your order ");
    setLocation ( FRAME_X_ORIGIN, FRAME_Y_ORIGIN );
    lowFatBurgerOutputPanel();
    //Create food buttons
    private void tofuBurgerButton()
    tofuBurgerButton = new JButton("Tofu Burger");
    tofuBurgerButton.addActionListener(new java.awt.event.ActionListener()
    public void actionPerformed(ActionEvent event)
    tofuBurgerCount(event);
    private void cajunChickenButton()
    cajunChickenButton = new JButton("Cajun Chicken");
    cajunChickenButton.addActionListener(new java.awt.event.ActionListener()
    public void actionPerformed(ActionEvent event)
    cajunChickenCount(event);
    private void buffaloWingsButton()
    buffaloWingsButton = new JButton("Buffalo Wings");
    buffaloWingsButton.addActionListener(new java.awt.event.ActionListener()
    public void actionPerformed(ActionEvent event)
    buffaloWingsCount(event);
    private void rainbowFilletButton()
    rainbowFilletButton = new JButton("Rainbow Fillet");
    rainbowFilletButton.addActionListener(new java.awt.event.ActionListener()
    public void actionPerformed(ActionEvent event)
    rainbowFilletCount(event);
    private void riceCrackerButton()
    riceCrackerButton = new JButton("Rice Cracker");
    riceCrackerButton.addActionListener(new java.awt.event.ActionListener()
    public void actionPerformed(ActionEvent event)
    riceCrackerCount(event);
    private void noSaltFriesButton()
    noSaltFriesButton = new JButton("No-Salt Fries");
    noSaltFriesButton.addActionListener(new java.awt.event.ActionListener()
    public void actionPerformed(ActionEvent event)
    noSaltFriesCount(event);
    private void zucchiniButton()
    zucchiniButton = new JButton("Zucchini");
    zucchiniButton.addActionListener(new java.awt.event.ActionListener()
    public void actionPerformed(ActionEvent event)
    zucchiniCount(event);
    private void brownRiceButton()
    brownRiceButton = new JButton("Brown Rice");
    brownRiceButton.addActionListener(new java.awt.event.ActionListener()
    public void actionPerformed(ActionEvent event)
    brownRiceCount(event);
    private void cafeMochaButton()
    cafeMochaButton = new JButton("Cafe Mocha");
    cafeMochaButton.addActionListener(new java.awt.event.ActionListener()
    public void actionPerformed(ActionEvent event)
    cafeMochaCount(event);
    private void cafeLatteButton()
    cafeLatteButton = new JButton("Cafe Latte");
    cafeLatteButton.addActionListener(new java.awt.event.ActionListener()
    public void actionPerformed(ActionEvent event)
    cafeLatteCount(event);
    private void espressoButton()
    espressoButton = new JButton("Espresso");
    espressoButton.addActionListener(new java.awt.event.ActionListener()
    public void actionPerformed(ActionEvent event)
    espressoCount(event);
    private void OolongTeaButton()
    OolongTeaButton = new JButton("Oolong Tea");
    OolongTeaButton.addActionListener(new java.awt.event.ActionListener()
    public void actionPerformed(ActionEvent event)
    OolongTeaCount(event);
    private void orderButton()
    orderButton = new JButton("Order");
    orderButton.addActionListener(new java.awt.event.ActionListener()
    public void actionPerformed(ActionEvent event)
    OrderButtonAction(event);
    private void cancelButton()
    cancelButton = new JButton("Cancel");
    cancelButton.addActionListener(new java.awt.event.ActionListener()
    public void actionPerformed(ActionEvent event)
    CancelButtonAction(event);
    //Create order panels
    public void lowFatBurgerOrderPanel()
    Container orderPane;
    orderPane = getContentPane();
    orderPane.setLayout (new GridLayout( 3, 1 ));
    //header Panel
    headerPanel = new JPanel();
    headerPanel.setBorder(BorderFactory.createTitledBorder( "Menu"));
    //menu middle
    menuPanel = new JPanel();
    menuPanel.setBorder(BorderFactory.createTitledBorder("Items"));
    menuPanel.setLayout(new GridLayout (4, 3));
    menuPanel.add(tofuBurgerButton);
    menuPanel.add(riceCrackerButton);
    menuPanel.add(cafeMochaButton);
    menuPanel.add(cajunChickenButton);
    menuPanel.add(noSaltFriesButton);
    menuPanel.add(cafeLatteButton);
    menuPanel.add(buffaloWingsButton);
    menuPanel.add(zucchiniButton);
    menuPanel.add(espressoButton);
    menuPanel.add(rainbowFilletButton);
    menuPanel.add(brownRiceButton);
    menuPanel.add(OolongTeaButton);
    //Buttom Panel
    buttomPanel = new JPanel();
    buttomPanel.setBorder(BorderFactory.createTitledBorder("New"));
    buttomPanel.add(countLabel = new JLabel(" Your subtotal: "));
    buttomPanel.setLayout(new GridLayout(0,2));
    buttomPanel.add(orderButton);
    buttomPanel.add(cancelButton);
    //contentPane
    orderPane.add(headerPanel);
    orderPane.add(menuPanel);
    orderPane.add(buttomPanel);
    //Create output panel
    public void lowFatBurgerOutputPanel()
    Container outputPane;
    outputPane = getContentPane();
    outputPane.setLayout (new GridLayout( 3, 1 ));
    orderOutputPanel = new JPanel();
    orderOutputPanel.setBorder(BorderFactory.createTitledBorder("Output"));
    middleOutputPanel = new JPanel();
    middleOutputPanel.setBorder(BorderFactory.createTitledBorder("something"));
    buttomOutputPanel = new JPanel();
    buttomOutputPanel.setBorder(BorderFactory.createTitledBorder("new"));
    outputPane.add(orderOutputPanel);
    outputPane.add(middleOutputPanel);
    outputPane.add(buttomOutputPanel);
    //Craete and count the number of times a button is clicked
    void tofuBurgerCount(ActionEvent event)
    tofuBurgercount++;
    setLableTextSubtotal();
    void cajunChickenCount(ActionEvent event)
    cajunChickencount++;
    setLableTextSubtotal();
    void buffaloWingsCount(ActionEvent event)
    buffaloWingscount++;
    setLableTextSubtotal();
    void rainbowFilletCount(ActionEvent event)
    rainbowFilletcount++;
    setLableTextSubtotal();
    void riceCrackerCount(ActionEvent event)
    riceCrackercount++;
    setLableTextSubtotal();
    void noSaltFriesCount(ActionEvent event)
    noSaltFriescount++;
    setLableTextSubtotal();
    void zucchiniCount(ActionEvent event)
    zucchinicount++;
    setLableTextSubtotal();
    void brownRiceCount(ActionEvent event)
    brownRicecount++;
    setLableTextSubtotal();
    void cafeMochaCount(ActionEvent event)
    cafeMochacount++;
    setLableTextSubtotal();
    void cafeLatteCount(ActionEvent event)
    cafeLattecount++;
    setLableTextSubtotal();
    void espressoCount(ActionEvent event)
    espressocount++;
    setLableTextSubtotal();
    void OolongTeaCount(ActionEvent event)
    OolongTeacount++;
    setLableTextSubtotal();
    void OrderButtonAction(ActionEvent event)
    headerPanel.setVisible(false);
    menuPanel.setVisible (false);
    buttomPanel.setVisible(false);
    lowFatBurgerOutputFrame();
    // Clear order
    void CancelButtonAction(ActionEvent event)
    countLabel.setText(BLANK);
    countLabel.setText(" Cancelled Order");
    tofuBurgercount = 0;
    cajunChickencount = 0;
    buffaloWingscount = 0;
    rainbowFilletcount = 0;
    riceCrackercount = 0;
    noSaltFriescount = 0;
    zucchinicount = 0;
    brownRicecount = 0;
    cafeMochacount = 0;
    cafeLattecount = 0;
    espressocount = 0;
    OolongTeacount = 0;
    private void setLableTextSubtotal()
    DecimalFormat df = new DecimalFormat("0.00");
    countLabel.setText(MESSAGE + df.format((
    TOFU_BURGER_PRICE * tofuBurgercount
    + CAJUN_CHICKEN_PRICE * cajunChickencount
    + BUFFALO_WINGS_PRICE * buffaloWingscount
    + RAINBOW_FILLET_PRICE * rainbowFilletcount
    + RICE_CRACKER_PRICE * riceCrackercount
    + NO_SALT_FRIES_PRICE * noSaltFriescount
    + ZUCCHINI_PRICE * zucchinicount
    + BROWN_RICE_PRICE * brownRicecount
    + CAFE_MOCHA_PRICE * cafeMochacount
    + CAFE_LATTE_PRICE * cafeLattecount
    + ESPRESSO_PRICE * espressocount
    + OOLONG_TEA_PRICE * OolongTeacount)));
    //Create a window closer
    private void addWindowCloseListener()
    this.addWindowListener(new java.awt.event.WindowAdapter()
    public void windowClosing(WindowEvent event)
    quit(event);
    void quit(WindowEvent event)
    System.exit(0);
    }

    And please feel free to critic how I ask this question and the program I am going to show, I hope this will help me in the future ask better questions and write better code.1) Use the "preview" link before posting your question. As you have noticed all your code has lost its formatting and is left justified. I'm sure you don't code like this so don't ask as to read it like this.
    2) So you ask how to I keep the formatting of the posted code? Well, did you notice the buttons at the top of the message box or the "Formatting Tips" link.
    3) Post a small executable version of your code that demonstrates the problem. I hope you don't expect us to read through hundreds of lines of unnecessary code. Most problems can be demonstrated in about 20 lines of code and the side benefit is many times you find your problem while creating the sample code.
    But the problem I am facing is when I try to add more panels the panels are being added to the bottomThis is because of the LayoutManager you are using. Most LayoutManagers just keep displaying the component as it is added to the container. One way around this is to remove(...) the existing component before adding the new component (check out the Container API for more information about the remove(...) methods). Or maybe use a different LayoutManager like a BorderLayout which replaces components that are added or a CardLayout which allow you to display multiple components in the same area.
    I suggest you read the Swing tutorial on [url http://java.sun.com/docs/books/tutorial/uiswing/layout/visual.html]Using Layout Managers.

  • Mocha & Keylight: problems with a greenscreen on the iPad

    Hey guys,
    at the moment I am doing my first greenscreen project with an iPad (and a TV). But I have a few problems with the turbulent footage.
    In the first picture you can see the tracked path on the iPad with Mocha. Everything moves really fine in the final result (see second picture). But there is a lot green left in the person's face and around the screen that I need to get rid of.
    So my first question: How do I get rid of those green diffuse edges around the screen and the green in the face?
    I tried several keying effects including keylight etc. – nothing worked. Either the green from the plants around dissappeared or it looked really edged. Is the only possibilty using moving masks? Or is there a more precise method?
    Second question: How can I isolate the hand from the greenscreen while interacting "over" the iPad? I have a few sequences where the hand of the person is interacting on the (green)screen. So I need to get the screen behind the hand although everything's moving :-/ Is that possible?
    Thanks a lot for your support!

    Green isn't wrong, but you'll get a better result using tracking and roto using a dark gray screen unless the objects passing in front of the screen are very complex. The dark gray screen allos you to pick up reflections and add them to the composite easily. It just looks more real. Mocha can generate the roto as well as the track. If you have a lot of movement then you have the same problems that you have with a bunch of movement on a green screen set. Edge contamination, motion blur, details being lost. With lots of detail and lots of movement you need a very good camera with a very good lens and a lossless or nearly lossless original. Shooting with a professional cine camera that shoots raw or 10 bit uncompressed is the only way to capture that kind of fine detail and pull it out in a key. Consumer and prosumer cameras just dont give you the color information or the resolution necessary to really do a great job with fine details. Acceptable for most work but not great.
    I guess my point is that if you shoot on a green screen you have to plan for color suppression and spill control on set. Plan your back lighting, and accept the fact that you'll have to do a bunch of color correcting and color suppression that you don't have to do if you shoot for roto. This gets into art direction, costuming, and set design. It's all about planning and the quality of the photography. If you are going to suppress green then you better not have anything in the scene that is important and green. Look at what happened to the green in the flower arrangement and the green in the plants in the window in my example below. A good set designer would have worked around that or let you know that you needed to do some rough roto work on the piece to restore those greens in the shot.
    I've done a ton of screen replacements for phones and ipads. We carefully plan the shoot so that there's just a bit of simple roto work. If we do need to use green screen (or blue or orange depending on the art direction of the scene) we keep the exposure levels down and the reflected light down. The biggest problem you have in your scene is that the green from the TV and the green from the tablet are so bright they are acting as light sources for the set. This is where an experienced cinematographer or vfx supervisor would have saved you a bunch of time in post.
    When you're stuck with footage with a lot of spill you have to isolate that spill and try and remove as much color as you can.
    Try this with keylight. I'm using your mocha.png. I set keylight to view the corrected source then set foreground color correction to on and set color suppression to green, then I set edge color correction to on and set color suppression to green. There is no green left in the image. Your green edges should be gone completely. As you can see, with these settings, the green from both screen is completely gone.
    To restore the green in the flower arrangement and the window just duplicate your keyed layer, do a rough roto around the flowers and the plants and reduce the color correction and color suppression to bring back the color there.
    This shows you that you'll need another layer to fix the color problems. Most of my work that involves keying results in a comp with 5 or 6 layers just to control the color, most of them copies of the main plate (green screen footage) two or three copies of the replacement footage (things that fill the green screen) a layer for light wrap, a layer for lighting effects, one or two layers for reflections if there are shiny things that are being keyed. and an adjustment layer for final color correction. Sometime two or three adjustment layers for color correction.
    Great compositing is seldom if ever two layers and one instance of Keylight.

Maybe you are looking for