Event problem on two different panels

I have an application which has a main JFrame.
It has two panels north and south
The one in the south has buttons that listens for events.
The events are action events. The events on this panel works if I don't include the events for my other panel i.e
PersonalDataPanel as described below.
The noth panel uses card layout. Inside this layout has two panels.
One panel is called PersonalDataPanel.
Inside PersonalDataPanel are components.
One is a group of radio buttons that listens for events
the events are again action events and if one is choosen from the group it is written to a file.
I have testdriver for this which works.
My porblem occurs when I include the code for PersonalDataPanel to listen for events and the main JFrame also to listen for events.
How should I handle this dilemma??

Why does the JFrame also have to listen for events? If its only button events surely it doesn't need to be involved and could be causing the problem.
Have you tried using different event handlers for the different panels...?

Similar Messages

  • Is it a problem having two different Ipod accounts on the same computer?

    I have just bought an Ipod Nano for my wife. I have a 30 Gb Ipod my self.
    My question is:
    Is it a problem, having two different Ipod accounts on the same computer?
    Are there something I should be aware of before connecting the second Ipod?
      Windows XP  

    hiya!
    these resources might be of some help with your questions:
    Natalie Beresford: multiple iPod/iTunes installations
    How to use multiple iPods with one computer
    iTunes: How to share music between different accounts on a single computer
    love, b

  • I have a problem activating two different products Creative Cloud and Acrobat

    I have several subscriptions with my Adobe.com and Creative Cloud accounts. I manage a team in Creative Cloud and am a member of this team as well.
    Additionally, I have a separate subscription for Acrobat for a different user.
    I cannot see how I can activate the Acrobat licence separate to the Creative cloud licence. I understand that I can activate the Creative Cloud suite on two machines (one at work and one at home) When I then try to activate Acrobat only on a different machine, it tells me I have already activated on two machines and must re-set.
    I have the licencing for the two different products. How can I separate them?
    Thanks

    if you have more than one cc account you must have more than one adobe id, each associated with a different subscription cc account.  sign in to your cc desktop app using the adobe id you want associated with the cc programs and that particular computer.
    for your non-cc adobe products, do not install via the cc desktop app.  download and install outside the app and activate with your serial number.
    Downloads available:
    Suites and Programs:  CC | CS6 | CS5.5 | CS5 | CS4 | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  12 | 11, 10 | 9, 8, 7
    Photoshop Elements:  12 | 11, 10 | 9,8,7
    Lightroom:  5 | 4 | 3
    Captivate:  7 | 6 | 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.

  • Big problem with put the same received dataSource on two different panels

    Hello All!
    I have a big problem, but first what have I done:
    I am writting application that is based on AVReceiver2 and AVTransmit2 from Sun help.
    I have modified AVReceiver2 to only receive one stream - video stream.
    I show received video on scrollPane, but I want to show the same video on second scrollPane in the same time. I have read about cloning dataSource, but I don't know how to modify that code to make it work.
    This is my receiver class (logger is my own class that have listbox, so don't watch on it. This is not important):
    public class Połączenie implements ReceiveStreamListener, SessionListener,
         ControllerListener
        String session = null;
        RTPManager manager = null;
        public Player player1 = null;
        boolean dataReceived = false;
        Object dataSync = new Object();
        private Logger logger;
        private JPanelŹródłoPołączone panelOgólny;
        private JPanelŹródłoSzczegóły panelSzczegóły;
        private Date dataRozpoczęcia;
        public Połączenie(String session, JPanelŹródłoSzczegóły panelSzczegóły, JPanelŹródłoPołączone panelOgólny, Logger logger) {
            this.session = session;
            this.logger = logger;
            this.panelOgólny = panelOgólny;
            this.panelSzczegóły = panelSzczegóły;
        public void Start()
            if (!initialize())
                System.err.println("Failed to initialize the sessions.");
                System.exit(-1);
                System.err.println("Odbiór rozpoczęty");
        public boolean initialize() {
            try {
             InetAddress ipAddr;
             SessionAddress localAddr = new SessionAddress();
             SessionAddress destAddr;
             SessionLabel sessionLabel;
             // Open the RTP sessions.
               // Parse the session addresses.
              try {
                  sessionLabel = new SessionLabel(session);
              } catch (IllegalArgumentException e) {
                  System.err.println("Failed to parse the session address given: " + session);
                  return false;
              System.err.println("  - Otwarcie sesji RTP: addr: " + sessionLabel.addr + " port: " + sessionLabel.port + " ttl: " + sessionLabel.ttl);
              manager = (RTPManager) RTPManager.newInstance();
              manager.addSessionListener(this);
              manager.addReceiveStreamListener(this);
              ipAddr = InetAddress.getByName(sessionLabel.addr);
              if( ipAddr.isMulticastAddress()) {
                  // local and remote address pairs are identical:
                  localAddr= new SessionAddress( ipAddr,
                                     sessionLabel.port,
                                     sessionLabel.ttl);
                  destAddr = new SessionAddress( ipAddr,
                                     sessionLabel.port,
                                     sessionLabel.ttl);
              } else {
                  localAddr= new SessionAddress( InetAddress.getLocalHost(),
                                          sessionLabel.port);
                        destAddr = new SessionAddress( ipAddr, sessionLabel.port);
              manager.initialize( localAddr);
              // You can try out some other buffer size to see
              // if you can get better smoothness.
              BufferControl bc = (BufferControl)manager.getControl("javax.media.control.BufferControl");
              if (bc != null)
                  bc.setBufferLength(350);
                  manager.addTarget(destAddr);
            } catch (Exception e){
                System.err.println("Cannot create the RTP Session: " + e.getMessage());
                return false;
         // Wait for data to arrive before moving on.
         long then = System.currentTimeMillis();
         long waitingPeriod = 30000;  // wait for a maximum of 30 secs.
         try{
             synchronized (dataSync) {
              while (!dataReceived &&
                   System.currentTimeMillis() - then < waitingPeriod) {
                  if (!dataReceived)
                   System.err.println("  - Oczekiwanie na transmisj&#281; danych...");
                  dataSync.wait(1000);
         } catch (Exception e) {}
         if (!dataReceived) {
             System.err.println("No RTP data was received.");
             close();
             return false;
            return true;
         * Close the players and the session managers.
        protected void close() {
             try {
                player1.close();
             } catch (Exception e) {}
         // close the RTP session.
             if (manager != null) {
                    manager.removeTargets( "Closing session from AVReceive2");
                    manager.dispose();
                    manager = null;
         * SessionListener.
        public synchronized void update(SessionEvent evt) {
         if (evt instanceof NewParticipantEvent) {
             Participant p = ((NewParticipantEvent)evt).getParticipant();
             System.err.println("  - Do&#322;&#261;czy&#322; nowy u&#380;ytkownik: " + p.getCNAME());
         * ReceiveStreamListener
        public synchronized void update( ReceiveStreamEvent evt) {
         RTPManager mgr = (RTPManager)evt.getSource();
         Participant participant = evt.getParticipant();     // could be null.
         ReceiveStream stream = evt.getReceiveStream();  // could be null.
         if (evt instanceof RemotePayloadChangeEvent) {
             System.err.println("  - Received an RTP PayloadChangeEvent.");
             System.err.println("Sorry, cannot handle payload change.");
             System.exit(0);
         else if (evt instanceof NewReceiveStreamEvent) {
             try {
              stream = ((NewReceiveStreamEvent)evt).getReceiveStream();
              DataSource ds = stream.getDataSource();
    //=========important thing:
                            DataSource cloneableDS = Manager.createCloneableDataSource( ds );
                            DataSource clonedDS = ((SourceCloneable)cloneableDS).createClone();
    //========
              // Find out the formats.
              RTPControl ctl = (RTPControl)ds.getControl("javax.media.rtp.RTPControl");
              if (ctl != null){
                  System.err.println("  - Recevied new RTP stream: " + ctl.getFormat());
              } else {
                  System.err.println("  - Recevied new RTP stream");
              if (participant == null)
                  System.err.println("      The sender of this stream had yet to be identified.");
              else {
                  System.err.println("      The stream comes from: " + participant.getCNAME());
              // create a player by passing datasource to the Media Manager
    //=====important thing:
                            player1 = javax.media.Manager.createPlayer(clonedDS);
    //=====
              if (player1 == null)
                  return;
              player1.addControllerListener(this);
              player1.realize();
              // Notify intialize() that a new stream had arrived.
              synchronized (dataSync) {
                  dataReceived = true;
                  dataSync.notifyAll();
             } catch (Exception e) {
              System.err.println("NewReceiveStreamEvent exception " + e.getMessage());
              return;
         else if (evt instanceof StreamMappedEvent) {
              if (stream != null && stream.getDataSource() != null) {
              DataSource ds = stream.getDataSource();
              // Find out the formats.
              RTPControl ctl = (RTPControl)ds.getControl("javax.media.rtp.RTPControl");
              System.err.println("  - The previously unidentified stream ");
              if (ctl != null)
                  System.err.println("      " + ctl.getFormat());
              System.err.println("      had now been identified as sent by: " + participant.getCNAME());
         else if (evt instanceof ByeEvent) {
              System.err.println("  - Got \"bye\" from: " + participant.getCNAME());
          player1.close();
            manager.dispose();
        }

    I wanted to show the same video stream on 2 panels at the same time. The panels are on 2 different Tabs of TabbedPane.
    So I done some kind of switch:
    - when user change tab, I change vievport from one panel to another. This works gr8, but I need to record some received video on the same time when user watch it.
    I find some code to record - this works on single machine, but now, when I have cloned dataSource I supposed to be able to record received video, but guess what: it doesn't work.
    Code of recording part:
               DataSource ds2; // I cloned this the same as I posted earlier
                PushBufferStream pbs;
         Vector camImgSize = new Vector();
         Vector camCapDevice = new Vector();
         Vector camCapFormat = new Vector();
         int camFPS;
         int camImgSel;
         Processor processor = null;
         DataSink datasink = null;
        public void record()
            fetchDeviceFormats();
              camImgSel=0;     // first format, or otherwise as desired
              camFPS = 30;     // framerate
              // Setup data source
              fetchDeviceDataSource();
              createPBDSource();
              createProcessor(ds2); // i'm using cloned datasource
              startCapture();
              try{Thread.sleep(20000);}catch(Exception e){}     // 20 seconds
              stopCapture();
         boolean fetchDeviceFormats()
              Vector deviceList = CaptureDeviceManager.getDeviceList(new VideoFormat(null));
              CaptureDeviceInfo CapDevice = null;
              Format CapFormat = null;
              String type = "N/A";
              CaptureDeviceInfo deviceInfo=null;boolean VideoFormatMatch=false;
              for(int i=0;i<deviceList.size();i++)
                   // search for video device
                   deviceInfo = (CaptureDeviceInfo)deviceList.elementAt(i);
                   if(deviceInfo.getName().indexOf("vfw:")<0)continue;
                   Format deviceFormat[] = deviceInfo.getFormats();
                   for (int f=0;f<deviceFormat.length;f++)
                        if(deviceFormat[f] instanceof RGBFormat)type="RGB";
                        if(deviceFormat[f] instanceof YUVFormat)type="YUV";
                        if(deviceFormat[f] instanceof JPEGFormat)type="JPG";
                        Dimension size = ((VideoFormat)deviceFormat[f]).getSize();
                        camImgSize.addElement(type+" "+size.width+"x"+size.height);
                        CapDevice = deviceInfo;
                        camCapDevice.addElement(CapDevice);
                        //System.out.println("Video device = " + deviceInfo.getName());
                        CapFormat = (VideoFormat)deviceFormat[f];
                        camCapFormat.addElement(CapFormat);
                        //System.out.println("Video format = " + deviceFormat[f].toString());
                        VideoFormatMatch=true;     // at least one
              if(VideoFormatMatch==false)
                   if(deviceInfo!=null)System.out.println(deviceInfo);
                   System.out.println("Video Format not found");
                   return false;
              return true;
         * Finds a camera and sets it up
         void fetchDeviceDataSource() //I test it on localhost so I don't change it
              CaptureDeviceInfo CapDevice = (CaptureDeviceInfo)camCapDevice.elementAt(camImgSel);
              System.out.println("Video device = " + CapDevice.getName());
              Format CapFormat = (Format)camCapFormat.elementAt(camImgSel);
              System.out.println("Video format = " + CapFormat.toString());
              try
                   // ensures 30 fps or as otherwise preferred, subject to available cam rates but this is frequency of windows request to stream
                   FormatControl formCont=((CaptureDevice)ds2).getFormatControls()[0];
                   VideoFormat formatVideoNew = new VideoFormat(null,null,-1,null,(float)camFPS);
                   formCont.setFormat(CapFormat.intersects(formatVideoNew));
              catch(Exception e){}
         * Gets a stream from the camera (and sets debug)
         void createPBDSource()
              try
                   pbs=((PushBufferDataSource)ds2).getStreams()[0];
              catch(Exception e){}
         public void createProcessor(DataSource datasource)
              FileTypeDescriptor ftd = new FileTypeDescriptor(FileTypeDescriptor.MSVIDEO);
              Format[] formats = new Format[] {new VideoFormat(VideoFormat.INDEO50)};
              ProcessorModel pm = new ProcessorModel(datasource, formats, ftd);
              try
                   processor = Manager.createRealizedProcessor(pm);
              catch(Exception me)
                   System.out.println(me);
                   // Make sure the capture devices are released
                   datasource.disconnect();
                   return;
         private void startCapture()
              // Get the processor's output, create a DataSink and connect the two.
              DataSource outputDS = processor.getDataOutput();
              try
                   MediaLocator ml = new MediaLocator("file:capture.avi");
                   datasink = Manager.createDataSink(outputDS, ml);
                   datasink.open();
                   datasink.start();
              }catch (Exception e)
                   System.out.println(e);
              processor.start();
              System.out.println("Started saving...");
         private void pauseCapture()
              processor.stop();
         private void resumeCapture()
              processor.start();
         private void stopCapture()
              // Stop the capture and the file writer (DataSink)
              processor.stop();
              processor.close();
              datasink.close();
              processor = null;
              System.out.println("Done saving.");
         }I run method record() from gui, after I received stream.
    IMPORTANT:
         on:           processor.close();
    I have an exception:
    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    at com.sun.media.multiplexer.video.AVIMux.writeFooter(AVIMux.java:827)
    at com.sun.media.multiplexer.BasicMux.close(BasicMux.java:142)
    at com.sun.media.BasicMuxModule.doClose(BasicMuxModule.java:172)
    at com.sun.media.PlaybackEngine.doClose(PlaybackEngine.java:872)
    at com.sun.media.BasicController.close(BasicController.java:261)
    at com.sun.media.BasicPlayer.doClose(BasicPlayer.java:229)
    at com.sun.media.BasicController.close(BasicController.java:261)
    at jmonitorserver.engine.Po&#322;&#261;czenie.stopCapture(Po&#322;&#261;czenie.java:684)
    And the video file have 0kb, even during recording
    datasource ds2 is not null.
    any idea?

  • Two problems with two different classes.

    im having two problems: i get nothing with the printConferences() method inside ReferenceBook class, the arraylist size is equal to zero. and my printSchoolsAndCopies() and schoolsAndCopiesToArray() methods which are inside TextBook class, give exceptions:
    Exception in thread "main" java.lang.ArrayStoreException at java.lang.System.arraycopy(Native Method) at java.util.ArrayList.toArray(ArrayList.java:304) at project3.TextBook.schoolsAndCopiesToArray(TextBook.java:64) at project3.TextBook.printSchoolsAndCopies(TextBook.java:74) at project3.BookTester.main(BookTester.java:27) Java Result: 1 BUILD SUCCESSFUL (total time: 0 seconds)
    all you need to read is TextBook and ReferenceBook class, but i added the tester and BookCatalog, which is an arraylist of books.
    here are my TextBook and ReferenceBook classes and the tester, there are two abstract classes Book and TechnicalBook, but i wont post them unless anybody needs them, i presume not.
    * TextBook.java
    * Created on April 19, 2007, 8:02 PM
    * To change this template, choose Tools | Template Manager
    * and open the template in the editor.
    package project3;
    import java.util.*;
    * @author Kevin
    public class TextBook extends TechnicalBook{
        private ArrayList <String> schools;
        private ArrayList <Integer> numberCopiesForSchool;
        private String [][] schoolsAndCopies;
        public static final String TEXTBOOK = "Textbook";
        /** Creates a new instance of TextBook */
        public TextBook(String author, String title, int numberPages, int copiesSold,
                double price) {
            super(author, title, numberPages, copiesSold, price);
            schools = new ArrayList();
            numberCopiesForSchool = new ArrayList();
        public int getNumberCopiesForSchool(String school){
            Integer temp = null;
            for(int i = 0; i < schools.size();i++){
                if(schools.get(i).equals(school))
                   temp = numberCopiesForSchool.get(i);
            return temp;
        public void addSchool(String school){
            Integer one = new Integer(1);
            schools.add(school);
            // number of copies for the school is initially 1
            numberCopiesForSchool.add(one);  
        public int getNumberSchools(){
            int count = 0;
            for(int i = 0; i < schools.size(); i++){
                if(schools.get(i) != null)
                    count++;
            return count;
        public void addCopiesForSchool(String school, int copies) {
              for (int i = 0; i < schools.size(); i++) {
                        if (schools.get(i).equals(school))
                   numberCopiesForSchool.set(i, numberCopiesForSchool.get(i)
                                + (Integer) copies);
        private void schoolsAndCopiesToArray(ArrayList <String> a, ArrayList <Integer> b){
            String [] c = null;
            String [] d = null;
            c = (String[]) a.toArray(new String[a.size()]);
            d = (String[]) b.toArray(new String[b.size()]);
            String [] [] schoolsAndCopies = null;
            for(int i = 0; i < c.length;i++){
                for(int j = 0; j < d.length;j++){
                    schoolsAndCopies[i] = c;
                    schoolsAndCopies[j] = d;
        public void printSchoolsAndCopies(String title){
            schoolsAndCopiesToArray(schools, numberCopiesForSchool);
            System.out.println("---------------");
            System.out.println("Schools and copies sold to each school for " + this.title+ ".");
            System.out.println("Schools:\tCopies:");
            for(int i = 0; i < schoolsAndCopies.length;i++)
                for(int j = 0; j < schoolsAndCopies.length;j++)
    System.out.println(schoolsAndCopies [i] + "\t" +
    schoolsAndCopies[j]);
    public String getClassName(){
    return TEXTBOOK;
    // overrides TechnicalBook toString
    public String toString(){
    return "Author = " + author + ". Title = " + title + ". Number of Pages = " +
    numberPages + ". Copies Sold = " + copiesSold + ". Schools using " + title +
    ". Price = " + this.getPrice() + " = " + this.getNumberSchools() + ". ";
    * ReferenceBook.java
    * Created on April 19, 2007, 8:02 PM
    * To change this template, choose Tools | Template Manager
    * and open the template in the editor.
    package project3;
    import java.util.*;
    * @author Kevin
    public class ReferenceBook extends TechnicalBook{
    private ArrayList <String> conferences;
    public static final String REFERENCE_BOOK = "Reference Book";
    //private int numberConferences;
    /** Creates a new instance of ReferenceBook */
    public ReferenceBook(String author, String title, int numberPages, int copiesSold,
    double price) {
    super(author, title, numberPages, copiesSold, price);
    conferences = new ArrayList();
    public String getConference(int a){
    for(int i = 0; i < conferences.size();i++)
    if(i == a)
    return conferences.get(i);
    return null;
    public void addConference(String conference){
    for(int i = 0; i < conferences.size();i++){
    conferences.add(conference);
    break;
    public void printConferences(){
    System.out.println("-------------");
    System.out.println("Conferences made for " + this.title + ".");
    for(int i = 0; i < conferences.size(); i++){
    System.out.println("["+(i + 1) +"]: "+ conferences.get(i));
    System.out.println(conferences.size());
    public String getClassName(){
    return REFERENCE_BOOK;
    public String toString(){
    return super.toString();
    * BookTester.java
    * Created on April 19, 2007, 8:02 PM
    * To change this template, choose Tools | Template Manager
    * and open the template in the editor.
    package project3;
    * @author Kevin
    public class BookTester{
    /** Creates a new instance of BookTester */
    public static void main(String [] args){
    BookCatalog catalog = new BookCatalog("Library");
    TextBook java = new TextBook("John", "Java", 5, 20, 5.00);
    TextBook beans = new TextBook("Mike", "JavaBeans", 6, 21, 5.00);
    ReferenceBook ref = new ReferenceBook("Jones", "Standard Class Library", 6, 23, 5.00);
    ref.addConference("Meeting");
    ref.printConferences();
    beans.addSchool("UTSA");
    beans.printSchoolsAndCopies("c++");
    catalog.addBook(java);
    catalog.addBook(beans);
    catalog.printCatalog();
    my BookCatalog class is fine, and everything prints out with out using the listed methods that give trouble.
    * BookCatalog.java
    * Created on April 20, 2007, 4:42 PM
    * To change this template, choose Tools | Template Manager
    * and open the template in the editor.
    package project3;
    import java.util.*;
    * @author Kevin
    public class BookCatalog {
        private String name;
        private ArrayList <Book> bookList;
        /** Creates a new instance of BookCatalog */
        public BookCatalog(String name) {
            this.name = name;
            bookList = new ArrayList <Book>();
        public String getCatalogName(){
            return name;
        public void addBook(Book b){
            bookList.add(b);
        public void printCatalog(){
            for(int i = 0; i < bookList.size(); i ++){
                System.out.println("[" + i + "]: " + bookList.get(i).getClassName() +
                       ": " + bookList.get(i).toString());
    }thanks in advance

    everything runs now, but it doesnt sort them. it prints them in the original order: here is the revised BookCatalog and Tester, also when making sortByTitle static it gives non static variable errors so i have no idea. Thanks for helping me fix the errors, i have no idea why it doesnt sort.
    * BookCatalog.java
    * Created on April 20, 2007, 4:42 PM
    * To change this template, choose Tools | Template Manager
    * and open the template in the editor.
    package project3;
    import java.util.*;
    * @author Kevin
    public class BookCatalog {
        private String name;
        private ArrayList <Book> bookList;
        //private Book [] bookList2;
        /** Creates a new instance of BookCatalog */
        public BookCatalog(String name) {
            this.name = name;
            bookList = new ArrayList <Book>();
        public String getCatalogName(){
            return name;
        public void addBook(Book b){
            bookList.add(b);
            public void sortByTitle(ArrayList<Book> list){
          if (bookList.size() > 1)
            for (int index = 1; index < bookList.size(); index++)
               insertItemByTitle(bookList, index);
         private void insertItemByTitle(ArrayList <Book> bookList, int index) {
                Book key = bookList.get(index);
                int position = index;
                while (position > 0 && key.getTitle().compareTo(bookList.get(index).getTitle()) < 0)   {
                    bookList.set(position, bookList.get(position-1));// = bookList.set(position-1, key);
                   position--;
                bookList.set(position, key);
        public void printCatalog(){
            sortByTitle(bookList);
            Book [] bookList2 = (Book[])bookList.toArray(new Book[bookList.size()]);
            for(int i = 0; i < bookList2.length; i ++){
                System.out.println("[" + (i+1) + "]: " + bookList2.getClassName() +
    ": " + bookList2[i].toString());
    * BookTester.java
    * Created on April 19, 2007, 8:02 PM
    * To change this template, choose Tools | Template Manager
    * and open the template in the editor.
    package project3;
    * @author Kevin
    public class BookTester{
    /** Creates a new instance of BookTester */
    public static void main(String [] args){
    BookCatalog catalog = new BookCatalog("Library");
    TextBook java = new TextBook("John", "Java", 5, 20, 5.00);
    TextBook beans = new TextBook("Mike", "JavaBeans", 6, 21, 5.00);
    ReferenceBook ref = new ReferenceBook("Jones", "Standard Class Library", 6, 23, 5.00);
    ref.addConference("Meeting");
    ref.printConferences();
    beans.addSchool("UTSA");
    //beans.printSchoolsAndCopies("c++");
    catalog.addBook(ref);
    catalog.addBook(java);
    catalog.addBook(beans);
    catalog.printCatalog();

  • Please help, problems with two different ipods

    Both my ipod and my sister's ipod are experiencing problems. Both ipod's are 4th gen with click wheel.
    My ipod isn't being recognized by itunes (I have the latest version) and only once in awhile will my computer recognize my ipod. I get a file showing my calender, notes, etc,.. I can't click on any of them though. When I connect my ipod to the usb cord and connect the cord to the computer, the ipod only just restart's itself.
    My sister's ipod does absolutely nothing except show the apple logo and then shut off. Earlier today it was displaying the exclamation mark and the folder icon and it once displayed the sad ipod icon.
    Does anyone here know what the problem is with these two ipod's and if there is a way that I can fix them?

    See these troubleshooting articles.
    My iPod is sad.
    iPod displays a "sad iPod" icon.
    What does this picture on my iPod mean?
    Also, there is a pretty comprehensive post written by another forum member which is about the sad iPod icon or the folder and ! icon. Be aware that it's quite involved and contains some info that will almost certainly void the warranty. If your iPod is still within the warranty period, you should use that option first.
    The Sad iPod/folder and ! icon.
    You can arrange online service here.
    Service request.

  • Elements 9 has stopped printing-photopaper comes out untouched.  Same problem with two different pri

    Photoshop Elements 9 was printing great.  I hooked up new Canon Pixma 9000 printer and it worked great for about 20 prints.  Spontaneously quit putting an image on the photopaper.  Same problem with my Epson Artisan 810, so I assume it's an Elements 9 problem.  Seems like it's not transmitting an image to the printer(s), but is sending the command to cycle the paper.  I'm using a 4 year old MacBook with OS 10.6, and it worked fine for a long time.  Still prints with iPhoto.
    Anyone have any suggestions???
    Obie

    My inclination is that it is something in the projects or in the manuals being linked that is the culprit because that is where the consistency lies - projects were created identically and manuals all follow identical formats. The problem typically only occurs after the project has been successfully created and the manual is subsequently updated and I am syncing the manual in RH so I can generate a new AIR file. This is the first time the project has consistently corrupted every time I try to generate the Word document after linking it in RH. This makes little sense to me since it generated fine a couple weeks ago and I did nothing special when I updated it in Word yet when I tried to update it in RH, that is when it originally corrupted. The bottom line is that I cannot 100% trust that any project I run will work the next time. I end up just crossing my fingers and hoping for the best.
    My problems seemed to start once I went to RH9 (from RH8) because we had upgraded from MS Office 2003 to the 2010 version and I needed 9 for the docx extension. Like I said, it is not all the time - I can be beating my head against the wall getting one of the projects to work, then create 3 more projects that have no problems and then the next one leaves me wanting to throw my PC through a window....
    Deleting the CPD does not corrupt the project, it just removes my default linked document that allows me to circumvent linking the styles individually for that project. Once I have a manual linked and I remove the CPD, it just creates a new one. What I am saying is that if I delete the CPD file, it does not prevent the project from corrupting nor does it make the corrupted project viable again.
    thanks!
    Kathi

  • NEED HELP!!  Problem running two different versions of Java

    We have two applications that will only run on two specific java versions. The web app that is vital to our company will only work with 1.40. Certain things in Lotus Notes will only run on 1.50. The only way we get IE to work properly is to install 1.50 first and then install 1.40 for our web app. I have the option in IE for both versions, yet when I uncheck IE to use 1.50, and check it to use 1.40 it still tries to open the web app in 1.50. Any suggetstions? I am a noob when it comes to Java, and this is killing us support wise. Is their any setting I can change in the Java plug-in to make the web app only use the correct version?

    The 1.5 JRE is backward compatible with 1.4.
    If your i\1.4 app will not run under 1.5, I suggest you call the vendor and as them why thier application only works under 1.4?
    If your web app is internally developed, tell the development team to get on the ball.

  • Want to assign one event to two different JSliders

    Can somebody explain how to assign one event handler to two different Jsliders?

    Jamaal wrote:
    I found some code on the Sun example index but it very vague and seems like something is missing. I've been through the Sun JSlider tutorials and examples. I'd call them anything but vague or incomplete; not to be insulting, but it's probable that your understanding of them is as yet incomplete, and you just need to study them some more. If you have specific questions about a part of the tutorial, please ask.
    I don't think that the source code even shows how they make the sliders change at the same time.Have you looked at the Converter program source code or run it?
    http://java.sun.com/docs/books/tutorial/uiswing/examples/components/index.html#Converter

  • Event driven drawing on separate panels

    Dear all,
    What I intend to achieve:-
    Suppose I have two panels in my JApplet. The first contains a
    textfield. When I input a number, say 'x', in the textfield and press enter,
    a circle of radius 'x' would have been drawn in the second panel.
    ONCE I AM THROUGH WITH THE FIRST PART, I JUST WANT TO ADD ANOTHER (3RD) JPANEL
    TO THE JAPPLET, SO THAT WHEN I ENTER THE VALUE OF 'X' IN THE JTEXTFIELD, NOT
    ONLY IS A CIRCLE DRAWN WITH RADIUS EQUAL TO 'X' IN THE SECOND PANEL, BUT
    SIMULTANEOUSLY A SQUARE OF SIDE EQUALLING 'X' IS DRAWN ON THE 3RD PANEL.
    How I plan to achieve that:-
    Set the layout of the contentpane as grid layout:-
    getContentPane().setLayout(new GridLayout(1,2,10,10));
    Create a JPanel object p1 as follows:
    JPanel p1 = new JPanel();
    Create another object p2 belonging to a nested class Panel2 which extends
    JPanel:
    Panel2 p2 = new Panel2();
    Define a JTextField:-
    JTextField t1 = new JTextField(4);
    Make t1 an ActionListener
    t1.addActionListener(this);
    Does 'this' refer to the whole contentPane?
    If I want t1 to send an action event to the second panel p2, how do I do that?
    Add the TextField to the JPanel object p1:-
    p1.add(t1);
    Add the panels p1 and p2 to the contentPane:-
    getContentPane().add(p1);
    getContentPane().add(p2);
    Next I include a paintComponent() method inside the nested class Panel2 and
    include all the drawing inside this method.
    In the actionPerformed() method I include the code for reading in a value for
    the variable 'x' into the JTextField and call repaint().
    This should draw the required circle with radius 'x' in the second panel.
    Please let me know if my thought process is on the right track so far.
    ONCE I AM THROUGH WITH THE FIRST PART, I JUST WANT TO ADD ANOTHER (3RD) JPANEL
    TO THE JAPPLET, SO THAT WHEN I ENTER THE VALUE OF 'X' IN THE JTEXTFIELD, NOT
    ONLY IS A CIRCLE DRAWN WITH RADIUS EQUAL TO 'X' IN THE SECOND PANEL, BUT
    SIMULTANEOUSLY A SQUARE OF SIDE EQUALLING 'X' IS DRAWN ON THE 3RD PANEL.
    Can it be done simply by modifying the above code? If yes, please let me know
    how? Can I have a separate paintComponent() method for the 3rd panel? I
    would appreciate if somebody could give me the pertinent code for just the
    relevant part (that deals with how to draw on the two different panels
    separately).

    Why are you creating a new thread on this when you never responded to help in your previous threads from yesterday? If you are going to be inconsiderate and ignore the input of volunteers who used their free time to consider your problem and give you advice why should anyone help you here now or in the future? Think on it.
    [http://forums.sun.com/thread.jspa?threadID=5339213&messageID=10462693#10462693]

  • Reload different panels

    Hello all,
    Like to reload different panels onto the same load panel.
    Code sample below on what I'am trying to achieve
    Each panel size would like to be 45% of window size.
    Have problems of reloading different panels to achieve the size and
    also when resizing the window
    Have 8 dukes to get rid of from:
    http://forum.java.sun.com/thread.jsp?forum=43&thread=431639
    Thanks
    Abraham Khalil
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.plaf.*;
    * Want to test reloading panels of very different text sizes inside it<br>
    * The goal is no matter want the label text size is, each label panel should only
    * show a maximum of 45% of the window size. <br>
    * <p>
    * Each button on the right will show a more uglier panel to load
    public class PanelChangeTest extends JFrame implements ActionListener {
       private static final int WIDTH = 640;
       private static final int HEIGHT = 400;
       private static final String BUTTON_PANEL_TEST1 = "Load Normal Panel";
       private static final String BUTTON_PANEL_TEST2 = "Load bit ugly Panel";
       private static final String BUTTON_PANEL_TEST3 = "Load very ugly Panel";
       private static final String[] BUTTON_COMMANDS = {
                                                         BUTTON_PANEL_TEST1,
                                                         BUTTON_PANEL_TEST2,
                                                         BUTTON_PANEL_TEST3
       private JPanel loadPanel = new JPanel();
       private PanelChange[] testPanels = null;
        * Model for each panel. <br>
        * Each panel contain email fields of from, to, subject and cc
       private class PanelFields {
          private String from = null;
          private String to = null;
          private String subject = null;
          private String cc = null;
          public PanelFields(String from, String to, String subject, String cc) {
             this.from = from;
             this.to = to;
             this.subject = subject;
             this.cc = cc;
          public String getFrom() {
             return from;
          public String getTo() {
             return to;
          public String getSubject() {
             return subject;
          public String getCC() {
             return cc;
       } // End PanelFields class
        * View panel class <br>
        * Each panel change class will contain four panels and they are from, to, cc and subject panel. <br>
        * Each of the from, to, cc and subject panel contain two labels, one for description and other for
        * its text value.
        * Want to set each panel size to 45% of window size so it looks even, and if label text is too long
        * to fit in 45% view, it should truncate it..
       private class PanelChange extends JPanel {
          private static final float PERCENT = 1 / 100.0f;
          private static final float EACH_PANEL_SIZE = 45 * PERCENT;
          private JPanel getPanel(String labelForText, String text) {
             JLabel labelLeft = new JLabel(labelForText, JLabel.LEFT);
             JLabel labelRight = new JLabel(text, JLabel.LEFT);
             setBold(labelLeft, true);
             JPanel panel = new JPanel();
             panel.setLayout(new FlowLayout(FlowLayout.LEFT, 5, 0));
             panel.add(labelLeft);
             panel.add(labelRight);
             panel.setBorder(BorderFactory.createLineBorder(Color.blue));
             return panel;
          public void recalculate(Dimension parentSize) {
             Dimension eachPanelSize = new Dimension((int) (parentSize.width * EACH_PANEL_SIZE), 12);
             System.out.println("Parent size = (" + parentSize.width + ", " + parentSize.height + ")\n" +
                                "Each panel size is recalculated as (" + eachPanelSize.width + ", " + eachPanelSize.height + ")\n");
             Component[] components = getComponents();       
             for (int eachPanel = 0 ; eachPanel < components.length ; eachPanel++) {
                JComponent panel = (JComponent) components[eachPanel];
                panel.setMaximumSize(eachPanelSize);
                panel.setMinimumSize(eachPanelSize);
                panel.setSize(eachPanelSize);
          public PanelChange(PanelFields panelFields) {
             JPanel fromPanel = getPanel("From: ", panelFields.getFrom());
             JPanel toPanel = getPanel("To: ", panelFields.getTo());        
             JPanel subjectPanel = getPanel("Subject: ", panelFields.getSubject());
             JPanel ccPanel = getPanel("CC: ", panelFields.getCC());
             setLayout(new BorderLayout());
             JPanel panel = new JPanel();
             // Test with panel of GridLayout instead of GridBagLayout to see the difference...     
             panel.setLayout(new GridLayout(2, 2, 5, 5));
             panel.add(fromPanel);
             panel.add(toPanel);
             panel.add(subjectPanel);
             panel.add(ccPanel);
             panel.setLayout(new GridBagLayout());
             constrain(panel, fromPanel,
                       GridBagConstraints.HORIZONTAL, GridBagConstraints.WEST,
                       0, 0, 1, 1, 1.0, 0.0);
             constrain(panel, toPanel,
                       GridBagConstraints.HORIZONTAL, GridBagConstraints.WEST,
                       1, 0, 1, 1, 1.0, 0.0);
             constrain(panel, subjectPanel,
                       GridBagConstraints.HORIZONTAL, GridBagConstraints.WEST,
                       0, 1, 1, 1, 1.0, 0.0);
             constrain(panel, ccPanel,
                       GridBagConstraints.HORIZONTAL, GridBagConstraints.WEST,
                       1, 1, 1, 1, 1.0, 0.0);
             add(panel, BorderLayout.CENTER);
          private int getFontStyle(Component component, boolean makeBold) {
             int style = 0;
             if (component != null) {
                Font f = component.getFont();
                if (f != null) {
                   if (f.isPlain()) style = style | Font.PLAIN;
                   if (f.isItalic()) style = style | Font.ITALIC;
                   if (makeBold) style = style | Font.BOLD;
             return style;
          private void setBold(Component component, boolean makeBold) {
             int style = getFontStyle(component, makeBold);
             Font styleFont = component.getFont().deriveFont(style);
             component.setFont(styleFont);
       } // End PanelChange class
       public void constrain( Container container, Component component, 
                              int fill, int anchor,
                              int gx, int gy, int gw, int gh, double wx, double wy ) {
          GridBagConstraints c = new GridBagConstraints();
          c.fill = fill;
          c.anchor = anchor;
          c.gridx = gx;
          c.gridy = gy;
          c.gridwidth = gw;
          c.gridheight = gh;
          c.weightx = wx;
          c.weighty = wy;
          ( (GridBagLayout) container.getLayout() ).setConstraints( component, c );
          container.add( component );
       public void constrain( Container container, Component component, 
                              int fill, int anchor,
                              int gx, int gy, int gw, int gh,
                              double wx, double wy, Insets inset ) {
          GridBagConstraints c = new GridBagConstraints();
          c.fill = fill;
          c.anchor = anchor;
          c.gridx = gx;
          c.gridy = gy;
          c.gridwidth = gw;
          c.gridheight = gh;
          c.weightx = wx;
          c.weighty = wy;
          c.insets = inset;
          ( (GridBagLayout) container.getLayout() ).setConstraints( component, c );
          container.add( component );
       private void initPanels() {
          PanelFields okPanel = new PanelFields("Simple from...",
                                                "[email protected]; [email protected]",
                                                "Simple subject...",
                                                "[email protected]; [email protected]");
          PanelFields bitUglyPanel = new PanelFields("A bit ugly from................",
                                                     "[email protected]; [email protected]; [email protected]; [email protected]",
                                                     "A bit ungle subject.....................",
                                                     "[email protected]; [email protected]; [email protected]; [email protected]");
          PanelFields veryUglyPanel = new PanelFields("A very very very very very " +
                                                      "very very ugly from................",
                                                      "[email protected]; [email protected]; [email protected]; [email protected], " +
                                                      "[email protected]; [email protected]; [email protected]; [email protected]",
                                                      "A very very very very very very " +
                                                      "very ungle subject.....................",
                                                      "[email protected]; [email protected]; [email protected]; [email protected]; " +
                                                      "[email protected]; [email protected]; [email protected]; [email protected]");
          testPanels = new PanelChange[] {
                                            new PanelChange(okPanel),
                                            new PanelChange(bitUglyPanel),
                                            new PanelChange(veryUglyPanel)
          Container container = getContentPane();
          container.setLayout(new BorderLayout());
          JPanel buttonPanel = new JPanel();
          buttonPanel.setLayout(new BoxLayout(buttonPanel, BoxLayout.X_AXIS));
          JButton button1 = new JButton(BUTTON_PANEL_TEST1);
          button1.setActionCommand(BUTTON_PANEL_TEST1);
          button1.addActionListener(this);
          JButton button2 = new JButton(BUTTON_PANEL_TEST2);
          button2.setActionCommand(BUTTON_PANEL_TEST2);
          button2.addActionListener(this);
          JButton button3 = new JButton(BUTTON_PANEL_TEST3);
          button3.setActionCommand(BUTTON_PANEL_TEST3);
          button3.addActionListener(this);
          buttonPanel.add(button1);
          buttonPanel.add(Box.createHorizontalStrut(5));
          buttonPanel.add(button2);
          buttonPanel.add(Box.createHorizontalStrut(5));
          buttonPanel.add(button3);
          JPanel mainPanel = new JPanel();
          mainPanel.setLayout(new GridBagLayout());
          constrain(mainPanel, loadPanel,
                    GridBagConstraints.BOTH, GridBagConstraints.WEST,
                    0, 0, 1, 1, 1.0, 1.0, new Insets(5, 5, 5, 5));
          constrain(mainPanel, buttonPanel,
                    GridBagConstraints.NONE, GridBagConstraints.CENTER,
                    0, 1, 1, 1, 0.0, 0.0, new Insets(5, 5, 5, 5));
          container.add(mainPanel);
       private void setupLoadPanel(PanelChange panelToLoad) {
          loadPanel.removeAll();
          panelToLoad.recalculate(getSize());
          loadPanel.add(panelToLoad);
          loadPanel.revalidate();     
       public void actionPerformed(ActionEvent e) {
          String actionCommand = e.getActionCommand();
          for (int i = 0 ; i < BUTTON_COMMANDS.length ; i++) {
             if (actionCommand.equals(BUTTON_COMMANDS)) {
    setupLoadPanel(testPanels[i]);
    break;
    public PanelChangeTest() {
    super("Panel change test...");
    Dimension size = new Dimension(WIDTH, HEIGHT);
    Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
    int x = (screenSize.width - size.width) / 2;
    int y = (screenSize.height - size.height) / 2;
    setBounds(x, y, WIDTH, HEIGHT);
    addWindowListener(new WindowAdapter() {
    public void windowClosing( WindowEvent e ) {
    System.exit(0);
    FontUIResource standardFont = new FontUIResource("dialogPlain11", Font.PLAIN, 11);
    UIManager.put("Label.font", standardFont);
    UIManager.put("Button.font", standardFont);
    initPanels();
    public static void main(String args[]) {
    new PanelChangeTest().setVisible(true);

    Please use the following code below:
    Somehow it doesn't show the text if it can't fit inside the panel.
    When resize to full screen, it shows the text??
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.plaf.*;
    * Want to test reloading panels of very different text sizes inside it<br>
    * The goal is no matter want the label text size is, each label panel should only
    * show a maximum of 45% of the window size. <br>
    * <p>
    * Each button on the right will show a more uglier panel to load
    public class PanelChangeTest extends JFrame implements ActionListener {
       private static final int WIDTH = 640;
       private static final int HEIGHT = 400;
       private static final String BUTTON_PANEL_TEST1 = "Load Normal Panel";
       private static final String BUTTON_PANEL_TEST2 = "Load bit ugly Panel";
       private static final String BUTTON_PANEL_TEST3 = "Load very ugly Panel";
       private static final String[] BUTTON_COMMANDS = {
                                                         BUTTON_PANEL_TEST1,
                                                         BUTTON_PANEL_TEST2,
                                                         BUTTON_PANEL_TEST3
       private JPanel loadPanel = new JPanel();
       private PanelChange[] testPanels = null;
        * Model for each panel. <br>
        * Each panel contain email fields of from, to, subject and cc
       private class PanelFields {
          private String from = null;
          private String to = null;
          private String subject = null;
          private String cc = null;
          public PanelFields(String from, String to, String subject, String cc) {
             this.from = from;
             this.to = to;
             this.subject = subject;
             this.cc = cc;
          public String getFrom() {
             return from;
          public String getTo() {
             return to;
          public String getSubject() {
             return subject;
          public String getCC() {
             return cc;
       } // End PanelFields class
        * View panel class <br>
        * Each panel change class will contain four panels and they are from, to, cc and subject panel. <br>
        * Each of the from, to, cc and subject panel contain two labels, one for description and other for
        * its text value.
        * Want to set each panel size to 45% of window size so it looks even, and if label text is too long
        * to fit in 45% view, it should truncate it..
       private class PanelChange extends JPanel {
          private static final float PERCENT = 1 / 100.0f;
          private static final float EACH_PANEL_SIZE = 45 * PERCENT;
          public PanelChange(PanelFields panelFields) {
             JPanel fromPanel = getPanel("From: ", panelFields.getFrom());
             JPanel toPanel = getPanel("To: ", panelFields.getTo());        
             JPanel subjectPanel = getPanel("Subject: ", panelFields.getSubject());
             JPanel ccPanel = getPanel("CC: ", panelFields.getCC());
             setLayout(new BorderLayout());
             JPanel panel = new JPanel();
             // Test with panel of GridLayout instead of GridBagLayout to see the difference...     
             panel.setLayout(new GridLayout(2, 2, 5, 5));
             panel.add(fromPanel);
             panel.add(toPanel);
             panel.add(subjectPanel);
             panel.add(ccPanel);
             panel.setLayout(new GridBagLayout());
             constrain(panel, fromPanel,
                       GridBagConstraints.HORIZONTAL, GridBagConstraints.WEST,
                       0, 0, 1, 1, 1.0, 0.0);
             constrain(panel, toPanel,
                       GridBagConstraints.HORIZONTAL, GridBagConstraints.WEST,
                       1, 0, 1, 1, 1.0, 0.0);
             constrain(panel, subjectPanel,
                       GridBagConstraints.HORIZONTAL, GridBagConstraints.WEST,
                       0, 1, 1, 1, 1.0, 0.0);
             constrain(panel, ccPanel,
                       GridBagConstraints.HORIZONTAL, GridBagConstraints.WEST,
                       1, 1, 1, 1, 1.0, 0.0);
             add(panel, BorderLayout.CENTER);
          public void recalculate(Dimension parentSize) {
             Dimension eachPanelSize = new Dimension((int) (parentSize.width * EACH_PANEL_SIZE), 20);
             System.out.println("Parent size = (" + parentSize.width + ", " + parentSize.height + ")\n" +
                                "Each panel size is recalculated as (" + eachPanelSize.width + ", " + eachPanelSize.height + ")\n");
             JPanel mainPanel = (JPanel) getComponent(0);
             Component[] components = mainPanel.getComponents();
             for (int eachPanel = 0 ; eachPanel < components.length ; eachPanel++) {
                JComponent panel = (JComponent) components[eachPanel];
                panel.setMaximumSize(eachPanelSize);
                panel.setMinimumSize(eachPanelSize);
                panel.setPreferredSize(eachPanelSize);
          private JPanel getPanel(String labelForText, String text) {
             JLabel labelLeft = new JLabel(labelForText, JLabel.LEFT);
             JLabel labelRight = new JLabel(text, JLabel.LEFT);
             setBold(labelLeft, true);
             JPanel panel = new JPanel();
             panel.setLayout(new FlowLayout(FlowLayout.LEFT, 5, 0));
             panel.add(labelLeft);
             panel.add(labelRight);
             panel.setBorder(BorderFactory.createLineBorder(Color.blue));
             return panel;
          private int getFontStyle(Component component, boolean makeBold) {
             int style = 0;
             if (component != null) {
                Font f = component.getFont();
                if (f != null) {
                   if (f.isPlain()) style = style | Font.PLAIN;
                   if (f.isItalic()) style = style | Font.ITALIC;
                   if (makeBold) style = style | Font.BOLD;
             return style;
          private void setBold(Component component, boolean makeBold) {
             int style = getFontStyle(component, makeBold);
             Font styleFont = component.getFont().deriveFont(style);
             component.setFont(styleFont);
       } // End PanelChange class
       public void constrain( Container container, Component component, 
                              int fill, int anchor,
                              int gx, int gy, int gw, int gh, double wx, double wy ) {
          GridBagConstraints c = new GridBagConstraints();
          c.fill = fill;
          c.anchor = anchor;
          c.gridx = gx;
          c.gridy = gy;
          c.gridwidth = gw;
          c.gridheight = gh;
          c.weightx = wx;
          c.weighty = wy;
          ( (GridBagLayout) container.getLayout() ).setConstraints( component, c );
          container.add( component );
       public void constrain( Container container, Component component, 
                              int fill, int anchor,
                              int gx, int gy, int gw, int gh,
                              double wx, double wy, Insets inset ) {
          GridBagConstraints c = new GridBagConstraints();
          c.fill = fill;
          c.anchor = anchor;
          c.gridx = gx;
          c.gridy = gy;
          c.gridwidth = gw;
          c.gridheight = gh;
          c.weightx = wx;
          c.weighty = wy;
          c.insets = inset;
          ( (GridBagLayout) container.getLayout() ).setConstraints( component, c );
          container.add( component );
       private void initPanels() {
          PanelFields okPanel = new PanelFields("Simple from...",
                                                "[email protected]; [email protected]",
                                                "Simple subject...",
                                                "[email protected]; [email protected]");
          PanelFields bitUglyPanel = new PanelFields("A bit ugly from................",
                                                     "[email protected]; [email protected]; [email protected]; [email protected]",
                                                     "A bit ungle subject.....................",
                                                     "[email protected]; [email protected]; [email protected]; [email protected]");
          PanelFields veryUglyPanel = new PanelFields("A very very very very very " +
                                                      "very very ugly from................",
                                                      "[email protected]; [email protected]; [email protected]; [email protected], " +
                                                      "[email protected]; [email protected]; [email protected]; [email protected]",
                                                      "A very very very very very very " +
                                                      "very ungle subject.....................",
                                                      "[email protected]; [email protected]; [email protected]; [email protected]; " +
                                                      "[email protected]; [email protected]; [email protected]; [email protected]");
          testPanels = new PanelChange[] {
                                            new PanelChange(okPanel),
                                            new PanelChange(bitUglyPanel),
                                            new PanelChange(veryUglyPanel)
          Container container = getContentPane();
          container.setLayout(new BorderLayout());
          JPanel buttonPanel = new JPanel();
          buttonPanel.setLayout(new BoxLayout(buttonPanel, BoxLayout.X_AXIS));
          JButton button1 = new JButton(BUTTON_PANEL_TEST1);
          button1.setActionCommand(BUTTON_PANEL_TEST1);
          button1.addActionListener(this);
          JButton button2 = new JButton(BUTTON_PANEL_TEST2);
          button2.setActionCommand(BUTTON_PANEL_TEST2);
          button2.addActionListener(this);
          JButton button3 = new JButton(BUTTON_PANEL_TEST3);
          button3.setActionCommand(BUTTON_PANEL_TEST3);
          button3.addActionListener(this);
          buttonPanel.add(button1);
          buttonPanel.add(Box.createHorizontalStrut(5));
          buttonPanel.add(button2);
          buttonPanel.add(Box.createHorizontalStrut(5));
          buttonPanel.add(button3);
          JPanel mainPanel = new JPanel();
          mainPanel.setLayout(new GridBagLayout());
          constrain(mainPanel, loadPanel,
                    GridBagConstraints.BOTH, GridBagConstraints.WEST,
                    0, 0, 1, 1, 1.0, 1.0, new Insets(5, 5, 5, 5));
          constrain(mainPanel, buttonPanel,
                    GridBagConstraints.NONE, GridBagConstraints.CENTER,
                    0, 1, 1, 1, 0.0, 0.0, new Insets(5, 5, 5, 5));
          container.add(mainPanel);
       private void setupLoadPanel(PanelChange panelToLoad) {
          loadPanel.removeAll();
          Dimension parentSize = getSize();
          panelToLoad.recalculate(parentSize);     
          loadPanel.add(panelToLoad);
          loadPanel.revalidate();
          loadPanel.repaint(); 
       public void actionPerformed(ActionEvent e) {
          String actionCommand = e.getActionCommand();
          for (int i = 0 ; i < BUTTON_COMMANDS.length ; i++) {
             if (actionCommand.equals(BUTTON_COMMANDS)) {
    setupLoadPanel(testPanels[i]);
    break;
    public PanelChangeTest() {
    super("Panel change test...");
    Dimension size = new Dimension(WIDTH, HEIGHT);
    Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
    int x = (screenSize.width - size.width) / 2;
    int y = (screenSize.height - size.height) / 2;
    setBounds(x, y, WIDTH, HEIGHT);
    addWindowListener(new WindowAdapter() {
    public void windowClosing( WindowEvent e ) {
    System.exit(0);
    FontUIResource standardFont = new FontUIResource("dialogPlain11", Font.PLAIN, 11);
    UIManager.put("Label.font", standardFont);
    UIManager.put("Button.font", standardFont);
    initPanels();
    public static void main(String args[]) {
    new PanelChangeTest().setVisible(true);

  • Data communication b/w different panels!!!

    I have two different panels CFtree and CMyTab and I am trying to call a function of CFtree from CMyTab
    //+++++++++++++++++++++++++++++
    //CFtree code...
    // Generating only one object of this class like
    public class CFTree extends JTree implements ActionListener {
    private static CFTree objFeatureTree = null;
    public static CFTree createObject() {
    if (objFeatureTree == null) {
    objFeatureTree = new CFTree();
    return objFeatureTree;
    return objFeatureTree;
    * Get object of CFTree
    * @return CFTree
    public static CFTree getObject() {
    return objFeatureTree;
    public void dummy(){
    System.out.println("Feature tree function called");
    // CMyTab pseudo-code..
    public class CMyTab
    extends JPanel {
    CFTree mFtrTree = CFTree.getObject(); // calling to get current object of CFTree
    // and function acess like
    mFtrTree.dummy();
    As soon as mFtrTree.dummy() is called, following exception is thrown:
    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    What can be the reason for this? How can I specify in CMyTab that it is going to call a function placed in a different panel CFTree. What are the way to tackle this problem?
    Please comment!
    Thanks,
    rdh

    In the following statement, please replace "getObject" with "createObject":
    CFTree mFtrTree = CFTree.getObject(); // calling to get current object of CFTree

  • Premiere Pro CS5 Not exportting to tape on TWO different Computers!!! HELP

    I had a prior post in january with a new desktop having problems exporting to tape. when it would export a blue screen would come up at random times breaking up the recording. almost like the camera was losing signal with the computer.
    Im capturing and exporting using a Canon XHG1 HDV camera.
    Both the Laptop (sony vpcf11x) and Desktop (custom with intel sandybridge motherboard) can CAPTURE tapes fine. but export causes problems on BOTH machines.
    Both of my computers (a laptop and desktop use the Intel i7 chipset.
    I have a Third desktop (gateway something or other) that ive been using Sony Vegas to Export to tape and it WORKS EVERYTIME! with the same Camera and Firewire Cable.
    Itried installing Sony Vegas onto the new Desktop to export and I get the SAME problem that I get with Exporting with Premiere.
    has anyone else heard of these problems? it is really starting to irritate me. with everything ive done, it has to be something with Adobe. how can i have the same problem on two different computers?

    Here are more specific information with my system and settings for you to see. I also included a video of my workflow and showing you what exactly is happening on export.
    Project Settings:
    Capture Format DV
    Video Rendering and Playback: Mercury Playback Engine Software only
    Sequence Settings:
    DV NTSC
    29.97 fps
    720x480
    Aspect Ratio 16:9
    30fps Drop-Frame Timecode
    Playback Settings:
    Desktop Video Display during playback checked box
    External Device: DV_29.97 720x480i
    Aspect Ration Conversion: Hardware Only
    External Device Audio
    Export: external device DV: 29.97 720x480i
    Disable video output when in the background is not checked
    Export to tape settings:
    Activate recording device is checked
    assemble timecode, delay movie start, and preroll _ frames (none are checked)
    abort after _ dropped frames (not checked)
    report dropped frames (not checked)
    render audio before video (is checked)
    I render out the video to one file (on my desktop).
    then import the clip into a new sequence with the above settings.
    file>export>tape>
    then it begins recording and drops out like the camera loses signal.
    this is really frusterating.

  • FCE HD 3.5 Crashing at Startup on Two Different Macs

    The software started crashing on my Power Mac a couple of days after install. I tried trashing the preferences--but It still crashes again every time I open the application.
    Then on the advice from someone on this forum, I trashed everything associated with FCE, Soundtrack, and LIvetype.
    Yet the problem persists.
    Then we got a brand new iMac last week and installed FCE HD 3.5 (from a different disk) and I am having exactly the same problem.
    I am trying not to pull my hair out.
    Any help would be much appreciated.

    Basically, whenever I click on the application to open it, it will start opening, and then will crash within 5 seconds.
    The only way I have found to rid this problem is to trash the preferences folder. Then afterwards, the application will work fine for one editing session. But then the next time I try to launch the application, it starts to crash at start up again. And will crash continually at startup until I trash the preferences again.
    This is occuring to me on two different Macs where I have installed FCE 3.5 HD separately using different disks.
    Both Macs are purchased within the last year, have tons of RAM, Quicktime Pro, the latest OS etc. etc.
    My intuition tells me that it is some kind of FCE software problem, since I am having the exact same problem on two different systems.

  • Problems with EventSource generating two different types of event

    Hi everybody,
    i was trying to connect an EventSource (capable of generating two different event types: a MapEventType and a TupleEventType) to two CQL processors through two separate channels, each one dedicated to its event type:
    ASSEMBLY:
    <?xml version="1.0" encoding="UTF-8"?>
    <beans ....>
         <wlevs:event-type-repository>
              <wlevs:event-type type-name="testMapEvent">
                   <wlevs:metadata>
                        <entry key="message" value="java.lang.String"/>
                        <entry key="date" value="java.util.Date" />
                        <entry key="list" value="java.util.List" />                    
                   </wlevs:metadata>
              </wlevs:event-type>
              <wlevs:event-type type-name="testTupleEvent">
    <wlevs:properties>
    <wlevs:property name="t_message" type="char" length="4000" />
    <wlevs:property name="t_date" type="timestamp"/>
    <wlevs:property name="t_list" type="object"/>
    </wlevs:properties>
              </wlevs:event-type>
         </wlevs:event-type-repository>
         <wlevs:adapter id="input" class="com.bea.wlevs.adapter.example.types.TestAdapter">
         <wlevs:instance-property name="eventTypeName" value="testMapEvent"/>
         </wlevs:adapter>
         <bean id="output" class="com.bea.wlevs.example.types.TestOutputBean" />
    <wlevs:channel id="inputChannelTuple" event-type="testTupleEvent">
    <wlevs:listener ref="testProcessorTuple" />
    <wlevs:source ref="input" />
    </wlevs:channel>
         <wlevs:channel id="inputChannelMap" event-type="testMapEvent">
              <wlevs:listener ref="testProcessorMap" />
              <wlevs:source ref="input" />
         </wlevs:channel>
         <wlevs:processor id="testProcessorMap" />
    <wlevs:processor id="testProcessorTuple" />
         <wlevs:channel id="outputChannelMap" event-type="testMapEvent">
              <wlevs:listener ref="output" />
              <wlevs:source ref="testProcessorMap" />
         </wlevs:channel>
         <wlevs:channel id="outputChannelTuple" event-type="testTupleEvent">
              <wlevs:listener ref="output" />
              <wlevs:source ref="testProcessorTuple" />
         </wlevs:channel>
    </beans>
    JAVA:
    The com.bea.wlevs.adapter.example.types.TestAdapter class is a simple RunnableBean generating "testMapEvent"s like this:
    +public void run() {+
    +... bla bla bla ...+
    +while(true) {+
    Object event = createEvent();
    +if(event != null) {+
    eventSender.sendInsertEvent(event);
    +}+
    +}+
    +}+
    +private Object createEvent() {+
    Object obj = eventType.createEvent();
    EventProperty p;
    p = eventType.getProperty("message");
    p.setValue(obj, "Evento #" seqNum); // seqNum is a int+
    p = eventType.getProperty("date");
    p.setValue(obj, new Date());
    p = eventType.getProperty("list");
    p.setValue(obj, nipotini); // nipotini is a List<String>
    return obj;
    +}+
    CONFIG:
    +<?xml version="1.0" encoding="UTF-8"?>+
    +<n1:config xmlns:n1="http://www.bea.com/ns/wlevs/config/application">+
    +<processor>+
    +<name>testProcessorMap</name>+
    +<rules>+
    +<query id="testRuleMap">+
    +<![CDATA[ select message, date, list from inputChannelMap ]]>+
    +</query>+
    +</rules>+
    +</processor>+
    +<processor>+
    +<name>testProcessorTuple</name>+
    +<rules>+
    +<query id="testRuleTuple">+
    +<![CDATA[ select t_message, t_date, t_list from inputChannelTuple ]]>+
    +</query>+
    +</rules>+
    +</processor>+
    +</n1:config>+
    Seems like the events cannot make it beyond the CQL processors:
    +<15-dic-2010 20.11.34 CET> <Error> <CQLProcessor> <BEA-000000> <Failed to set property [t_message] of event type [testTu+
    +pleEvent]. Cause = [t_message] is not a property of event type [testMapEvent]>+
    +<15-dic-2010 20.11.34 CET> <Warning> <Ede> <BEA-000000> <Exception for 'testMapEvent{message=Evento #14, list=[QUI, QUO,+
    +QUA], date=Wed Dec 15 20:11:34 CET 2010}' raised by listener = com.oracle.cep.processor.cql.impl.CQLEventReceiver@aa882+
    +7+
    +com.bea.wlevs.ede.api.EventProcessingException: Internal error processing event [testMapEvent{message=Evento #14, list=[+
    +QUI, QUO, QUA], date=Wed Dec 15 20:11:34 CET 2010}] = Failed to set property [t_message] of event type [testTupleEvent].+
    +Cause = [t_message] is not a property of event type [testMapEvent]+
    at com.oracle.cep.processor.cql.impl.CQLEventReceiver.sendToEngine(CQLEventReceiver.java:389)
    at com.oracle.cep.processor.cql.impl.CQLEventReceiver.onInsertEvent(CQLEventReceiver.java:248)
    at com.bea.wlevs.processor.impl.EventSenderImpl.sendInsertEventToListener(EventSenderImpl.java:360)
    at com.bea.wlevs.processor.impl.EventSenderImpl.sendInsertEvent(EventSenderImpl.java:331)
    at com.bea.wlevs.ede.spi.AbstractSendEventInterceptor.sendInsertEvent(AbstractSendEventInterceptor.java:78)
    at com.bea.wlevs.eventstore.recplay.RecordPlaySendEventInterceptor.sendInsertEvent(RecordPlaySendEventIntercepto
    r.java:159)
    at com.bea.wlevs.ede.spi.AbstractSendEventInterceptor.sendInsertEvent(AbstractSendEventInterceptor.java:78)
    at com.bea.wlevs.eventinspector.EventInspectInterceptor.sendInsertEvent(EventInspectInterceptor.java:132)
    at com.bea.wlevs.ede.spi.AbstractSendEventInterceptor.sendInsertEvent(AbstractSendEventInterceptor.java:78)
    at com.bea.wlevs.monitor.internal.MonitorSendEventInterceptor.sendInsertEvent(MonitorSendEventInterceptor.java:4
    +79)+
    at com.bea.wlevs.channel.impl.ChannelImpl.onInsertEvent(ChannelImpl.java:439)
    at com.bea.wlevs.processor.impl.EventSenderImpl.sendInsertEventToListener(EventSenderImpl.java:360)
    at com.bea.wlevs.processor.impl.EventSenderImpl.sendInsertEvent(EventSenderImpl.java:331)
    at com.bea.wlevs.ede.impl.EventSourceEventSenderImpl.sendInsertEvent(EventSourceEventSenderImpl.java:85)
    at com.bea.wlevs.ede.spi.AbstractSendEventInterceptor.sendInsertEvent(AbstractSendEventInterceptor.java:78)
    at com.bea.wlevs.eventstore.recplay.RecordPlaySendEventInterceptor.sendInsertEvent(RecordPlaySendEventIntercepto
    r.java:159)
    at com.bea.wlevs.ede.spi.AbstractSendEventInterceptor.sendInsertEvent(AbstractSendEventInterceptor.java:78)
    at com.bea.wlevs.eventinspector.EventInspectInterceptor.sendInsertEvent(EventInspectInterceptor.java:132)
    at com.bea.wlevs.ede.spi.AbstractSendEventInterceptor.sendInsertEvent(AbstractSendEventInterceptor.java:78)
    at com.bea.wlevs.monitor.internal.MonitorSendEventInterceptor.sendInsertEvent(MonitorSendEventInterceptor.java:4
    +79)+
    at com.bea.wlevs.adapter.example.types.TestAdapter.run(TestAdapter.java:33)
    at com.bea.wlevs.adapter.example.types.TestAdapter$$FastClassByCGLIB$$89b675c7.invoke(<generated>)
    at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
    at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:70
    +0)+
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    at com.bea.wlevs.ede.impl.EventManagerAccessorProxy.invoke(EventManagerAccessorProxy.java:30)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.wlevs.ede.impl.EventBeanProxy.invoke(EventBeanProxy.java:38)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:635)
    at com.bea.wlevs.adapter.example.types.TestAdapter$$EnhancerByCGLIB$$16190560.run(<generated>)
    at com.bea.wlevs.spring.RunnableBeanPostProcessor$RunnableWrapper.run(RunnableBeanPostProcessor.java:117)
    at weblogic.work.commonj.CommonjWorkManagerImpl$WorkWithListener.run(CommonjWorkManagerImpl.java:196)
    at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    +Caused By: com.bea.wlevs.ede.api.EventPropertyException: Failed to set property [t_message] of event type [testTupleEven+
    +t]. Cause = [t_message] is not a property of event type [testMapEvent]+
    at com.oracle.cep.processor.cql.impl.TupleValueUtils.raiseEventPropertyException(TupleValueUtils.java:153)
    at com.oracle.cep.processor.cql.impl.TupleValueUtils.projectEvent(TupleValueUtils.java:90)
    at com.oracle.cep.processor.cql.impl.TupleValueUtils.compareAndProjectEvent(TupleValueUtils.java:48)
    at com.oracle.cep.processor.cql.impl.CQLEventReceiver.sendToEngine(CQLEventReceiver.java:337)
    at com.oracle.cep.processor.cql.impl.CQLEventReceiver.onInsertEvent(CQLEventReceiver.java:248)
    at com.bea.wlevs.processor.impl.EventSenderImpl.sendInsertEventToListener(EventSenderImpl.java:360)
    at com.bea.wlevs.processor.impl.EventSenderImpl.sendInsertEvent(EventSenderImpl.java:331)
    at com.bea.wlevs.ede.spi.AbstractSendEventInterceptor.sendInsertEvent(AbstractSendEventInterceptor.java:78)
    at com.bea.wlevs.eventstore.recplay.RecordPlaySendEventInterceptor.sendInsertEvent(RecordPlaySendEventIntercepto
    r.java:159)
    at com.bea.wlevs.ede.spi.AbstractSendEventInterceptor.sendInsertEvent(AbstractSendEventInterceptor.java:78)
    at com.bea.wlevs.eventinspector.EventInspectInterceptor.sendInsertEvent(EventInspectInterceptor.java:132)
    at com.bea.wlevs.ede.spi.AbstractSendEventInterceptor.sendInsertEvent(AbstractSendEventInterceptor.java:78)
    at com.bea.wlevs.monitor.internal.MonitorSendEventInterceptor.sendInsertEvent(MonitorSendEventInterceptor.java:4
    +79)+
    at com.bea.wlevs.channel.impl.ChannelImpl.onInsertEvent(ChannelImpl.java:439)
    at com.bea.wlevs.processor.impl.EventSenderImpl.sendInsertEventToListener(EventSenderImpl.java:360)
    at com.bea.wlevs.processor.impl.EventSenderImpl.sendInsertEvent(EventSenderImpl.java:331)
    at com.bea.wlevs.ede.impl.EventSourceEventSenderImpl.sendInsertEvent(EventSourceEventSenderImpl.java:85)
    at com.bea.wlevs.ede.spi.AbstractSendEventInterceptor.sendInsertEvent(AbstractSendEventInterceptor.java:78)
    at com.bea.wlevs.eventstore.recplay.RecordPlaySendEventInterceptor.sendInsertEvent(RecordPlaySendEventIntercepto
    r.java:159)
    at com.bea.wlevs.ede.spi.AbstractSendEventInterceptor.sendInsertEvent(AbstractSendEventInterceptor.java:78)
    at com.bea.wlevs.eventinspector.EventInspectInterceptor.sendInsertEvent(EventInspectInterceptor.java:132)
    at com.bea.wlevs.ede.spi.AbstractSendEventInterceptor.sendInsertEvent(AbstractSendEventInterceptor.java:78)
    at com.bea.wlevs.monitor.internal.MonitorSendEventInterceptor.sendInsertEvent(MonitorSendEventInterceptor.java:4
    +79)+
    at com.bea.wlevs.adapter.example.types.TestAdapter.run(TestAdapter.java:33)
    at com.bea.wlevs.adapter.example.types.TestAdapter$$FastClassByCGLIB$$89b675c7.invoke(<generated>)
    at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
    at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:70
    +0)+
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    at com.bea.wlevs.ede.impl.EventManagerAccessorProxy.invoke(EventManagerAccessorProxy.java:30)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.wlevs.ede.impl.EventBeanProxy.invoke(EventBeanProxy.java:38)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:635)
    at com.bea.wlevs.adapter.example.types.TestAdapter$$EnhancerByCGLIB$$16190560.run(<generated>)
    at com.bea.wlevs.spring.RunnableBeanPostProcessor$RunnableWrapper.run(RunnableBeanPostProcessor.java:117)
    at weblogic.work.commonj.CommonjWorkManagerImpl$WorkWithListener.run(CommonjWorkManagerImpl.java:196)
    at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    +>+
    Can anybody help me figuring out what's wrong?
    Thank you in advance!

    Hello Chris,
    Wondering if you've found a solution for this.
    I was thinking you could make a web app that used the jQuery dialog, then let the client just put an individual web app item on the home page when they want to have the pop up.
    This way it is more like one type of modal window and the client can show whatever they want when they want, and turn it off by removing the module.
    You can place the module inside a content holder so they do not mess up any template or page content.
    Hope this helps,
    Chad Smith | http://bcgurus.com/Business-Catalyst-Templates for only $7

Maybe you are looking for

  • Photoshop CC really bad lagging on new rMBP

    I resently bought a new Retina MacBook Pro 13" with a nice fast 2,8 i7 proccesor and a big chunk of 16 Gb ram. After using it on my older iMac I was exited to use it on my new MacBook. But its lagging really bad. It makes it unusable for me. I don't

  • Swatches for text?

    how can i use swatches for applying colour to text. normally i get a box in which i have to move  a circle to pick the colour of my choice.

  • With no tabs showing, how do I open a new tab?

    There used to be a command line icon "open new tab". It's gone in F5. Why? What's the replacement when I have no tabs open?

  • Error REP-3000 with parameter BATCH=NO in rwconverter

    Hi all: So we compile our modules in unix environment with this kind of sentence for reports. $ORACLE_HOME/bin/rwconverter.sh userid=sintesis/[email protected] batch=yes source=$fichcompilar stype=rdffile dtype=repfile overwrite=yes So we have the me

  • Operative valuation for FX/MM in ECC6.0

    hi experts, could any provide a short list of config steps to setup account determination for FX spot/forward and MM time deposit? I am implementing this project in an IDES ECC6.0 server and was surprised to learn that the old operative valuation pro