Hit a wall with java

I'm writing a java application in netbeans and I've stumbled upon a problem I have no idea how to solve.
In my main code I'm starting a second, maximized frame and adding Canvas extending class that interacts with a user and draws stuff accordingly. The problem is at some point that canvas is supposed to tell the main application that it's finished, so the second frame can be closed and the data that was gathered during canvas action analyzed and I have no idea how to do that, since canvas can't see anything outside itself.
Any hints?

I think you're completely right Drew, I was thinking about something like that too, but it didn't occur to me that I could make that method static to solve the visibility problem.
Thank you.
Edit:
However there's no way to call nonstatic methods or variables from the instance of my main class from the public static method.
Last edited by xaff (2009-03-14 10:22:20)

Similar Messages

  • Hit a wall with adding photos to slideshow

    I have approximately 110 photos added to my project and have hit a roadblock.  I have about 30 more pictures to add and when I try to add another, it does something strange.  It looks like the picture is there but when I play it, it is the picture before it and is "stretched out"?  I have tried adding different pictures and even deleting the one before it and whatever picture I add, it does the same thing.  I'm wondering if there is a limit to the amount of photos you can use in a slideshow?  Or maybe the files are too large?  Please help!  This is my first try at a slideshow and I have to complete this project in two days!

    If this is an existing slideshow colection you already created, select and drag the new image files from their source folder and drop them into the exisiting slideshow collection icon located in the Collections folder. The new images will be appear in the slideshow according to your 'Sort' order selection located above the filmstrip (i.e. Capture Time, User Order, etc.).
    There used to be an issue with the 'Stroke Border' option in the Slideshow module causing soft (fuzzy) imaging at down-scaled resolutions (i.e. anything less than full-resolution). If you encounter this issue, try unchecking the Stroke Border option box. I just tried it with LR 3.4.1 on my Windows 7 system and a 1280x1024 PDF slideshow looks fine with the stroke border....maybe it's fixed in LR 3.4?

  • Hitting a wall with my 3500+ Winchester

    I am sorta new to building and OC'ing.  My first build was 3 months ago and the one in my sig is my second.  My problem is getting this to run at anything above 265.  My HT freq. is set to 3.  I have tried all different voltage settings.  Currently I am at 1.45 and 5%.  I try hitting more and get random freezes as soon as I stress it.  One thing I have noticed is when I hit those levels and I try to run AM3 or the like when it flips a screen like when you click to start I am getting a crackling in my speakers.  It only happens above 2.65 and I have my AGP set to 67.  Any help is greatly appreciated cause this thing wants to go faster or at least I want it to.  

    Has anyone actually figured out how to fix this?
    I am so far beyond annoyed. The "fix" listed here is a joke. I have tried it multiple times, with both settings and nothing changed.
    I have tried reinstalling iTunes. No luck there.
    Nothing seems to do the trick and I would really like to restore my ipod.
    This started happening for no good reason either. It just started to act up yesterday even though I was using the iTunes store fine the night before. Then yesterday suddenly the store does not work and my ipod won't restore.
    Oh and I have no firewall on.
    edit: iTunes is the ONLY internet connection that is not working. Everything else (browsers, outlook, messengers, torrents, VNC, newsgroups, etc) is working perfectly fine.
    Message was edited by: AndrewChiro

  • Shared Project Workflow Problem: Hitting a Wall with Markers

    Hi there,
    Apologies in advance for the long note.  We're using Adobe CC to edit and finish commercials and are having a significant issue regarding shared project workflow.  First, some context:
    We often edit projects remotely.  When this happens, assistants and other editors who remain in LA will have access to the media on our SAN while the editor and assistant traveling out of town will have their own copy of the media.  I know Adobe Anywhere would solve any issue relating to two identical sets of media in use in different cities, but we're a small shop and the hardware and software expense don't make sense for us at this time.  Please do not respond to anything mentioned from here on by stating we should just get Adobe Anywhere.  Thanks.
    What will regularly happen is that the remote editor and assistant will need work done on the project here in LA while they're in session with the clients.  Sometimes this work involves marking up clips with comment markers so the editor can more easily locate a specific moment.  Here's where the problem arises.
    Unlike FCP and Avid, Premiere handles markers within the clip's metadata.  So, if I have two separate projects linking to separate but identical instances of media, one of those media instances gets updated with new markers, there is currently no way to get those markers to the other project without also shuttling the new marked-up media.  This is not possible when a remote editor needs dailies marked up in a couple hours and is working across the country or abroad.
    But let's assume for the sake of argument that it is possible and we apply this workflow.  Let's also assume that in the time it takes the local assistant to mark up the clips for the remote editor, the editor has added a couple markers of his own, which is reasonable and happens all the time.  Now when the editor links to the newly marked up clips he's received via shipment, he'll wipe out all the markers he's made on his own since giving the order to mark up the footage.  That is a significant inconvenience, especially with clients in the room asking stuff like "can we look at the take where the guy says 'good' instead of 'great'?"
    So what happens if we just have repeating sets of media, so that every time the clips markers get updated, the editor actually imports those clips, even though the picture and audio data in those clips is completely redundant to what's already in the project.  The issues with this are, as I can see it, 1) increasing the amount complexity within the project so that you'd have to scan many bins of dailies to look for a single marker, 2) increasing by orders of magnitude the amount of storage space needed, 3) even if problems 1 and 2 are handled, if you have to go to finish with multiple versions of a cut, and those versions reference separate instances of the same clip from different bins, Premiere's dupe frame detection will not work and you'll need to spend a lot of extra time locating duplicate clips manually before sending your EDL or XML off to final color grading.
    At this point, I think it's necessary to interject something:  we're talking about markers here.  Why is this such a problem?  FCP and Avid have no such issues simply by making markers - even clip markers - part of the project metadata.  From what I understand, Adobe has chosen to do things differently because of dynamic link, so that After Effects and Prelude, for example, could add markers to a clip and those markers would ripple across all instances of that clip in the different applications.  It's a great feature which we take advantage of here from time to time.
    So what's the solution?
    My workaround in CS6, which does not solve the issue of needing to merge clip markers so that an editor's markers and an assistant's markers can be applied to a single piece of media, was to turn off "write XMP ID to Files on Import."  This would generate an XMP sidecar file which could be easily passed along with a project file to the remote editor, who could then overwrite his local XMP sidecars with the new ones containing the new marker info.
    However, in Premiere CC that is no longer possible.  It appears that if Premiere CC can access the XMP ID on a file, it will not generate a sidecar regardless of what you have set in your media preferences.  We use ProRes Proxy as our dailies format (again, please no comments on this, it is not up for debate at this time) and Premiere can get to the XMP ID within the files and will not, no matter what it seems, generate an XMP sidecar.
    We could change the company workflow to use DNxHD 36 instead of ProRes Proxy, which would give us XMP sidecars, but that would not solve the issue of needing to merge marker lists between projects non-destructively.
    The best solution I can think of would be to have a script or some kind or built-in feature which would allow for the batch export, import and merging of marker lists.  This way Adobe could keep its current clip-metadata-based marker workflow while giving professional users needing more flexible marker behavior the ability to have assistants non-destructively modify clip markers without necessitating the creation of extra media or project complexity.
    I would really love some input on this and ideas from the pro community out there who has experience with shared project workflows - especially projects being shared remotely.  There's not a lot of info out there about this and it would be great to hear what others are doing.
    Thanks a million for sticking with this, if you've made it this far.
    Best,
    Jon

    Thanks Jim,
    I understand that Adobe Anywhere solves this, but there should be this fairly basic functionality (which exists in Avid and FCP) in a non-enterprise edition of the software.  I have submitted a couple different feature requests about this, going back to CS5, so hopefully enough people make similar requests for a fix to be implemented.  Adobe Anywhere is really not a solution for our small shop as currently configured/priced, especially when we can have editors working remotely with very affordable USB 3 drives.  The only hangup is the markers, which just isn't worth a 5 figure fix.  As such it's hard to consider the problem solved for either us or any small shop or post crew.
    Best,
    Jon

  • Hit brick wall with "Getting started with DW"

    Hi Guys, i am totally new to web design and DW, working
    through the "Getting started with DW" under the “help”
    banner seemed o.k at first until one leaves the comfort of table
    design, once into the css and xml the environment the Getting
    started tutorial is very shake and waiting for a reply from DW
    would test even the patience of a Buddhist monks.
    Can someone please recommend a good book/video/dvd or is it
    best just to ask questions on this forum, it does seem faster than
    DW.
    Thanks in advance
    Regards
    Bal

    To be honest with you, the very best way to get started is to
    start with
    HTML and then CSS. A week or two spent learning the basics of
    both of these
    will make DW seem like a walk in the park afterwards.
    Ask your questions here, though....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "herbybal" <[email protected]> wrote in
    message
    news:ejs6rk$1b1$[email protected]..
    > Hi Guys, i am totally new to web design and DW, working
    through the
    > "Getting
    > started with DW" under the ?help? banner seemed o.k at
    first until one
    > leaves
    > the comfort of table design, once into the css and xml
    the environment the
    > Getting started tutorial is very shake and waiting for a
    reply from DW
    > would
    > test even the patience of a Buddhist monks.
    > Can someone please recommend a good book/video/dvd or is
    it best just to
    > ask
    > questions on this forum, it does seem faster than DW.
    >
    > Thanks in advance
    > Regards
    > Bal
    >
    >

  • Hit a wall with overclock/ any help?

    I overclocked my 865gm2-ls motherboard and have run into a wall at 220mhz fsb. I have an nvidia 5500fx, a 2.8ghz northwood, 2 sticks of 512mb viking 3200 ddr400, and a 3rd generation stock heat sink/fan. I am running the older bios version 5.1 (it killed sata but gave me access to overclocking the cpu). Once I go beyond 220 the system will work for a while and then suddenly reboot. At 220 it runs great. Heat doesn't appear to be the issue. Is this a limitation of the board or is there some other tweak?
    Any help is appreciated.
    Todd

    Quote from: toddctews on 21-February-06, 13:01:13
    I finally have some ddr 550 to test this system. (I am building a new one) I set the fsb to 230 and let prime95 run torture test, set to 10, for around an hour. (didn't have more time) Stable so far. Good call Stu!
    Todd

  • Problem with java and yahoo games

    hello everyone,
    i have a mac 10.6.8 with java SE 6 1.6.0_33-603-424 and i have problems with yahoo games.... anyone can help me please, i have a mac 10.6.8 with java SE 6 1.6.0_33-603-424 and i have problems with yahoo games.... anyone can help me please

    So here is what comes to pass.
    Recall this started as a Lion Safari/5+ environment that SU took to version 6.
    Two weeks ago I just updated Flash Player. Today I fire up Java Preferences and I am told that I need to download Java. Did so, intentionally hit the "factory reset" button and then installed the Flash Player from teh Adobe site. The most recent install suggests automatic update but I choose "ask first."
    Restart Safari and we seem to be in order
    Thanks

  • Is it possible to Integrate dos with Java to create a sample compiler?

    Is it possible to Integrate dos with Java to create a sample compiler, or do I have to write the compiler from scratch? In theory, I would like to have users enter sample code in a java text field, hit a java button that would compile/run the code, by calling a dos command prompt that would run it, and display any error messages back to the java text field. Does anyone know if this is possible? Any help would be greatly appreciated.
    Tflav23

    There is a Compiler class you might be able to use also:
    C:\jdk1.3.1_01\docs\api\java\lang\Compiler.html
    So perhaps there is no need to create a process to compile code. But I don't know if you can get information about compiler errors.

  • Using Java SE 6 with Java FX 2.2 on Mac OS X

    Hello,
    Has anyone tried using Java SE 6 with JavaFX 2.2 on Mac OS X?
    JavaFX 2.2 System Requirements doc states that "For Mac OS X, use Java SE 7 Update 6 for Mac OS X. JavaFX 2.2 has not been formally tested with Apple's Java SE 6 implementation for Mac OS and support is offered only when used with Java SE 7 Update 6 or later.".
    So I guess that means Java SE 6 may or may not work well with JavaFX 2.2 on Mac.
    For some 'bugs' in my app, they simply don't exist if I switch from Java 7 to Java 6?
    One such bug is mentioned in this thread: Re: Unable to play mp3 files with non-English alphabets/characters in the name
    Can people with experiences in this area please share your thoughts?
    Has Oracle done additional Java SE 6 and JavaFX 2.2 compatibility testings since the JavaFX 2.2 System Requirements doc was published (http://docs.oracle.com/javafx/2/system_requirements_2-2/jfxpub-system_requirements_2-2.htm)?
    Thanks.

    Java 6 on Mac is not supported officially and not going to be supported.
    Standalone JavaFX app might work as JDK 6 on Mac was used as dev platform before JDK 7 on Mac became available.
    But this was mostly on older Mac OS X version (up to 10.6) and you may easily hit something that was fixed in Java 7 to support JavaFX better.
    Webstart/Plugin will not work. You need JRE 7 from Oracle.

  • Problems with Java Chat

    Hi
    We are having problems with JAVA chat on a macbook air with mountain lion and java 7 v9
    have tried everything already suggested to roll back jave to 6 but this also does not work
    issue is that when hit the enter button nothing happens, smilies are not working,
    can anyone suggest a fix
    thanks

    Have you tried the update 10 release - http://java.com/en/download/index.jsp ?
    I don't know that it will solve your problem or not, but it's worth a try.
    Clinton

  • Opening MS-DOS with Java

    I'm involved in a college programming class with Java and I'm stumped. I need to create a Java program that is able to open the MS-DOS prompt window and run a Java program in it as well as add a MS-DOS command afterwards in order to catch the output. Basically I need a program that does the following command:
    C:\[pathname]javac [filename].java 2> output.txt
    Any help would be greatly appreciated. Thanks guys! :)

    Here's a hint:
    public class Test {
        public static void main(String[] args) throws Exception {
            if(args.length == 0) {
                String command = "cmd /c start java Test TEST";
                Runtime.getRuntime().exec(command);
            else {
                System.out.println(args[0]);
                System.out.println("Hit return to exit.");
                System.in.read();
    }Good luck.

  • Problem with updating oracle DB with java date thru resultset.updateDate()

    URGENT Please
    I am facing problem in updating oracle database with java date through resultset.updateDate() method. Can anybody help me please
    following code is saving wrong date value (dec 4, 2006 instead of java date jul 4, 2007) in database:
    ResultSet rs = stmt.executeQuery("SELECT myDate FROM myTable");
    rs.first();
    SimpleDateFormat sqlFormat = new SimpleDateFormat("yyyy-mm-dd");
    java.util.Date myDate = new Date();
    rs.updateDate("myDate", java.sql.Date.valueOf(sqlFormat.format(myDate)));
    rs.updateRow();

    I believe you should use yyyy-MM-dd instead of yyyy-mm-dd. I think MM stands for month while mm stands for minute as per
    http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html
    (If this works, after spending so much of your time trying to solve it, don't hit yourself in the head too hard. I find running out of the room laughing hysterically feels better).
    Here is a more standard(?) way of updating:
    String sqlStatement=
    "update myTable set myDate=? where personID=?"
    PreparedStatement p1= connection.prepareStatement(sqlStatement);
    p1.setDate(1,new java.sqlDate());
    p1.setInt(2, personID);
    p1.executeUpdate();

  • XSLT Mapping with Java class not working in Integration Repository

    Hi,
    I have an XSLT mapping program with Java enhancement and I was able to successfully tested it in Stylus Studio. However, when I imported the Java class and the xslt program in Enterprise Service Builder and tested it, my program does not compile.
    Here is the error message: "Transformer Configuration Exception occurred when loading XSLT mapping_temp.xsl; details: Could not compile stylesheet".
    My java program is in a zip file containing SOAPHeaderHandler.java and SOAPHeaderhandler.class. My Java has a package com.nga.xslt.
    Here is the declaration of my Java class in the XSLT: xmlns:javamap="java:com.nga.xslt.SOAPHeaderHandler"
    It seems that it could not read the java class. Can you please advice what is wrong?

    Hi ,
    select XMLTOOLKIT option in Operation mapping and execute it.
    I am not sure we can call java program in XSLT Program,but alternative is copy the code and use it in XSLT mapping it self,that means your XSLT program will become with JAVA extensions.
    then in Operation mapping level select SAPXMLTOOL kit option and execute it. i hope it will work. if it is not working then you have deploy some JAXP files on server,because the way execution of XSLT Mpaping program got changed,like when eve you executing XSLT with extnasions( if you are not using XMLTOOL kit option) then you have to use latest version of JAXP.JDK files.
    Regards,
    Raj

  • Sir i am using datasocket read ,i am communicating with java but my problem is that bcz im using while loop to see if value has changed my labview consumes all the processors time ,sir i want a event like thing so that while loop is not in continuous loop

    sir i have given lot of effort but i am not able to solve my problem either with notifiers or with occurence fn,probably i do not know how to use these synchronisation tools.

    sir i am using datasocket read ,i am communicating with java but my problem is that bcz im using while loop to see if value has changed my labview consumes all the processors time ,sir i want a event like thing so that while loop is not in continuous loopHi Sam,
    I want to pass along a couple of tips that will get you more and better response on this list.
    1) There is an un-written rule that says more "stars" is better than just one star. Giving a one star rating will probably eliminate that responder from individuals that are willing to anser your question.
    2) If someone gives you an answer that meets your needs, reply to that answer and say that it worked.
    3) If someone suggests that you look at an example, DO IT! LV comes with a wonderful set of examples that demonstate almost all of the core functionality of LV. Familiarity with all of the LV examples will get you through about 80% of the Certified LabVIEW Developer exam.
    4) If you have a question first search the examples for something tha
    t may help you. If you can not find an example that is exactly what you want, find one that is close and post a question along the lines of "I want to do something similar to example X, how can I modify it to do Y".
    5) Some of the greatest LabVIEW minds offer there services and advice for free on this exchange. If you treat them good, they can get you through almost every challenge that can be encountered in LV.
    6) If English is not your native language, post your question in the language you favor. There is probably someone around that can help. "We're big, we're bad, we're international!"
    Trying to help,
    Welcome to the forum!
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Problem with java installation on Linux

    HI ,
    I am trying to install jdk on Linux..I am new to java and Linux both. I am trying to download the file for the linux installation onto my home PC(windows XP) and then ftp it to my Linux machine. I need to do this because I have a remote login to my Linux machine( a server at school). However when I try to download file my IE jsut crashes. I can see the page for accepting the Agreement but when I click on Accept the next page just stops responding.
    Could someone explain why this is happening.
    thanks,
    G.

    The problem doesn't have to do anything with Java or Linux as far as i can see. It's more likely a problem with Windows XP and IE. Be assured that normally downloading the Linux JDK in windows is not a problem.

Maybe you are looking for

  • Using VOFM Transaction can we generate an IDOC automatically

    Hi I have a requriement that when ever we change the sales order Rejection Status Field (ABSTA). An IDOC needs to be generated and the status should be sent to third party. Once the IDOC is generated we use XI to transfer the message to third party.

  • Problem in retrieving cookie settings

    Hi there, I set my cookie settings with myCookie.setMaxAge(600) //for 10 min myCookie.setComment("....") The Cookie is retrievable exactly 10 min, after that the .txt file is deleted and the Cookie can't be read out any more. Everything ok so far. I

  • Open new tab by right click

    in old firefox (3.6) when clicking the right click on a link , the " open link in new tab" was the second option. but now in the new firefox (4.0) it is the first option. is there is a way to make it the second option because this annoying me a lot .

  • Delivery split with different delivery types

    Hi, I’ve got the following problem with delivery split: In my order (type ZTA) I have two items with two different item categories (for example TA1 and TA2). For these two items two different deliveries with two different delivery types (for example

  • Mailbox vs. smart mailbox - advantages?

    I'm converting from Outlook express to Mail. I get the concept of smart mailboxes (e.g., all the mail stays in the inbox and the smart mailboxes are just searches). However, I liked the rules setup with specific mailboxes in outlook. As far as I can