JOptionPane not working outside contractor.

Hello
I have a problem with my JOptionPane�s. If I use them within the constructor, it works fine with the correct decoration, format and graphic. I have a couple in methods within the same class and when I try and use a JOptionPane with these they do not display correctly. (no �ok� button, detonation or body text�only the title)
Does anyone have any idea why this is and any ways around it?
Thanks,
Harold

Sorry about that guys, I wrote this post after a very late night of programming:
Here is the code:
import javax.swing.JOptionPane;
import ...
public class GeneticAlgorithm extends JFrame implements ActionListener, WindowListener, ItemListener
     public GeneticAlgorithm()
         super("GeneticAlgorithm v3");
          //Sort screen size and position
          Dimension screenSize =      Toolkit.getDefaultToolkit().getScreenSize();
          if (screenSize.width < 1024 && screenSize.height < 768)
               String resError = "Please note that this applecation is desgined to run\n with the resolution of 1024x768";
               //WORKS FINE
               JOptionPane.showMessageDialog(null, resError, "Screen Resolution Error", JOptionPane.ERROR_MESSAGE);
               setSize(1024, 768);
     ...other Methods
     private boolean verifyStartParameters()
          boolean startSim = true;
          if (populationSize == 0)
               //DOES NOT WORK
               JOptionPane.showMessageDialog(null, "ERROR: Population Size = 0", "Population Size Error", JOptionPane.ERROR_MESSAGE);
               startSim = false;
          if (generationSize == 0)
               //DOES NOT WORK
               JOptionPane.showMessageDialog(null, "ERROR: Generation Size = 0", "Generation Size Error", JOptionPane.ERROR_MESSAGE);
               startSim = false;
          //DOES NOT WORK
          if (mutationRate == 0) {JOptionPane.showMessageDialog(null, "WARNING: Mutation Rate = 0", "Mutation Rate Warning", JOptionPane.WARNING_MESSAGE);}
          return startSim;
}

Similar Messages

  • Reading message from MQ- works in WSAD (IDE) but does not work outside WSAD

    Read from MQ:
    Same code works within WASD but does not work outside WSAD.

    PDL - thanks for the suggestions - here are the results:
    A button on the form that executes "this.print();" works fine.
    Changing "this" to "event.target" results in the same error.
    document.getElementById("PDFObj").Print(); works fine.
    However, the reason that I'm using ".postMessage([message])" instead of ".Print()" is because I actually have a toolbar that has save, print, zoom in, zoom out, page up, page down, etc.... I simplified the switch statement in the post above to only include print, but in reality has a case for each of the functions above. The postMessage call is triggering the error, since the catch statement is printing out the error message above. Any idea why this would work with Professional but not Reader.

  • JasperReports does not work outside Netbeans

    Hi guys,
    Background story: application with a couple of forms, the data can be stored and saved from a sqlite database. In the end the forms need to be saved as a PDF.
    Netbeans 6.7, JasperReports 4.0.2.
    Libraries in my Classpath: Commons-beanutils, Commons collections, commons digester, commons javaflow, commons logging, iText, Jasperreports
    I tried to use JasperReports for this matter. It runs perfectly when in Netbeans, and my PDF is generated.
    However, when I try to run the compiled .jar file from windows explorer... the whole JasperReports part does not work at all.
    I made a simple example showing my problem. It produces a nice 1 line PDF when in netbeans, but outside Netbeans, nothing again.
    Could you give me some advice on this? Or maybe an alternative for JasperReports?
    Thanks alot,
    Elwin
    package jasperreportsproject2;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    import net.sf.jasperreports.engine.*;
    import net.sf.jasperreports.engine.export.*;
    import java.util.*;
    * @author Elwin
    public class Main {
         * @param args the command line arguments
        public static void main(String[] args) {
            String fileName = "test1.jrxml";
            String outFileName = "test.pdf";
            HashMap hm = new HashMap();
                // Fill the report using an empty data source
            try {
                JasperPrint print;
                JasperReport jasperreport;
                jasperreport = JasperCompileManager.compileReport(fileName);
                print = JasperFillManager.fillReport(jasperreport, hm, new JREmptyDataSource());
                // Create a PDF exporter
                JRExporter exporter = new JRPdfExporter();
                // Configure the exporter (set output file name and print object)
                exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, outFileName);
                exporter.setParameter(JRExporterParameter.JASPER_PRINT, print);
                // Export the PDF file
                exporter.exportReport();
                } catch (JRException ex) {
                Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
    }The xml file used to build the report
    Test1.jrxml
    <?xml version="1.0" encoding="UTF-8"?>
    <jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="HelloWorld" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="30" bottomMargin="30">
         <property name="ireport.zoom" value="1.0"/>
         <property name="ireport.x" value="0"/>
         <property name="ireport.y" value="0"/>
         <detail>
              <band height="200" splitType="Stretch">
                   <staticText>
                        <reportElement x="0" y="0" width="500" height="20"/>
                        <textElement/>
                        <text><![CDATA[Hello Report World!]]></text>
                   </staticText>
              </band>
         </detail>
    </jasperReport>

    Another for xsql:
    Producing PDF Output with the FOP Serializer
    at
    http://www.stanford.edu/dept/itss/docs/oracle/10gR2/appdev.102/b14252/adx_j_xsqladv.htm
    NA
    http://nickaiva.blogspot.com

  • Command_link does not work outside of form

    if command_link is outside of form, it is rendered without a warning notes, but does not work correctly.

    Sorry, you did not get my point again.
    Currently, I check how JSF RI helps developer to recognize his/her mistakes.
    In case of command_link outside of the form, RI says "Everything is all right. Spend the next couple minutes (couple hours or days, depends of developer qualification) to find this trick.

  • Apex_util.get_print_Document not working outside apex environment

    I am working on one of the assignment in Apex 4.0.2 .
    The requirement is to dynamically generate reports and mail to User using the Scheduler program(Pl/sql) -> dbms_scheduler.
    I have used BI publisher to create the template and xml data for the report(Excel) and used Apex_util.get_print_Document
    in the scheduler program (which is written outside Apex), but this is not working properly,sends blank report to email.
    Please suggest how to set the apex session and use Apex_util.get_print_Document to work properly outside apex env.

    Apex (PL/SQL web-enabled) code needs to execute inside an Oracle server session that has been properly and correctly initialised for executing web enabled PL/SQL code.
    An example of how to execute such PL/SQL by intialising a proper environment, is shown in {message:id=2251131}.
    Note that this will not be able to execute Apex pages (via the flow engine) that are not public - that needs a proper authenticated Apex web session. Which could be a tad complex to emulate in this fashion.

  • HT1695 the internet on my iphone 4s does not work outside of my house

    My iphone 4s only connects to the internet in my house, it does not work if I am anywhere else. Everyone else who has an iphone can, how can I make mine work??

    Same. Reset Network -> not solved.
    Restore twice -> not solved.
    I take to genius bar. The STAFF tell me i need take the responsibility on updating the system. Haha.
    I NEED TAKE MY risk on updating to ios6.
    As my iphone4s is out of warranty, the staff told me need to paid 1560HKD to repair.
    I using ios 5 without ANY PROBLEM just because i need install new apps which require ios6.1
    Now the other iphone4s (I got 2 total, one self one my wife) not planning to upgrade, or will not interest iphone 5, who knows if update ios 7 will got something else error and told me is personal fault.

  • ESC key not working outside PS in Vista...

    This haunts our users since we migrated to Vista. When Photoshop CS2/CS3 is running under Vista the ESCAPE key does not work correctly with other programs. When PS is running, the escape key works only when pressing SHIFT+ESC together. This is extremely annoying when multiple programs are used, what could be the root of the problem?
    Thanks!

    I have the same problem with a completely new installation of Photoshop CS4 on Vista 64-bit. When I remove all plugins, it works fine. But it's quite stupid to do it that way, isn't it? This is a complete list of my plug-ins, so you can check there is no third party
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\3D Engines\Photoshop3DEngine.8BI
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\ADM\ADMPlugin.apl
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\Automate\CropPhotosAuto.8LI
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\Automate\HDRMergeUI.8BF
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\Automate\WIASupport.8LI
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\Effects\Filter Gallery.8BF
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\Extensions\FastCore.8BX
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\Extensions\MMXCore.8BX
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\Extensions\MultiProcessor Support.8BX
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\Extensions\ScriptingSupport.8li
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\File Formats\BMP.8BI
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\File Formats\Cineon.8BI
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\File Formats\Dicom.8BI
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\File Formats\FilmStrip.8BI
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\File Formats\FXG.8BI
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\File Formats\GIF.8BI
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\File Formats\IFF Format.8BI
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\File Formats\OpenEXR.8BI
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\File Formats\PBM.8BI
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\File Formats\PCX.8BI
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\File Formats\Pixar.8BI
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\File Formats\PNG.8BI
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\File Formats\Radiance.8BI
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\File Formats\Targa.8BI
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\File Formats\U3D.8BI
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\File Formats\WBMP.8BI
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\Filters\Average.8BF
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\Filters\ChannelPort.8BF
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\Filters\Clouds.8BF
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\Filters\Color Halftone.8BF
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\Filters\CropPhotos.8BF
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\Filters\Crystallize.8BF
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\Filters\De-Interlace.8BF
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\Filters\Displace.8BF
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\Filters\Extrude.8BF
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\Filters\Fibers.8BF
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\Filters\Lens Blur.8BF
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\Filters\Lens Correction.8BF
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\Filters\Lens Flare.8BF
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\Filters\Lighting Styles
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\Filters\LightingEffects.8BF
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\Filters\Liquify.8BF
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\Filters\Mezzotint.8BF
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\Filters\NTSC Colors.8BF
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\Filters\Pinch.8BF
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\Filters\Pointillize.8BF
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\Filters\Polar Coordinates.8BF
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\Filters\Radial Blur.8BF
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\Filters\Ripple.8BF
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\Filters\Shear.8BF
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\Filters\Smart Blur.8BF
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\Filters\Solarize.8BF
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\Filters\Spherize.8BF
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\Filters\Tiles.8BF
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\Filters\Twirl.8BF
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\Filters\VanishingPoint.8BF
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\Filters\Wave.8BF
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\Filters\Wind.8BF
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\Filters\ZigZag.8BF
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\Filters\Lighting Styles\2 O'clock Spotlight
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\Filters\Lighting Styles\Blue Omni
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\Filters\Lighting Styles\Circle of Light
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\Filters\Lighting Styles\Crossing
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\Filters\Lighting Styles\Crossing Down
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\Filters\Lighting Styles\Default
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\Filters\Lighting Styles\Five Lights Down
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\Filters\Lighting Styles\Five Lights Up
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\Filters\Lighting Styles\Flashlight
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\Filters\Lighting Styles\Flood Light
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\Filters\Lighting Styles\Parallel Directional
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\Filters\Lighting Styles\RGB Lights
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\Filters\Lighting Styles\Soft Direct Lights
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\Filters\Lighting Styles\Soft Omni
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\Filters\Lighting Styles\Soft Spotlight
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\Filters\Lighting Styles\Three Down
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\Filters\Lighting Styles\Triple Spotlight
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\Image Stacks\statistics.8BA
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\Import-Export\Paths to Illustrator.8BE
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\Import-Export\Save for Web.8BE
    C:\Program Files\Adobe\Adobe Photoshop CS4 (64 Bit)\Plug-ins\Measurements\MeasurementCore.8ME

  • Hyperlinks not working outside of Reader or preview?

    I am trying to export pdfs to use in emails for my clients. I have inserted hyperlinks with URL destinations. When I open the PDF in adobe or preview, the links work and are clickable. But when viewing the email in mac mail or on the email website, the links are not. Is there a solve to this or something I am missing?

    "The links are not" what? Working? Shown?
    If they are not working, this is most likely based on security settings of Mac Mail for PDFs.

  • Color Sampler not working outside my window! Urgent, please help!

    I just installed Photoshop on my Surface Pro 3. I am doing a presentation in a few hours where I will need to be able to demonstrate the use of the Color Sampler outside the window. It doesn't work. It goes up to the edge of the workspace but does not sample beyond that. I've tried using the pen, the trackpad and the mouse. None of them work. If I try to do it on my Windows 8.1 desktop, it works fine. Help!

    Just looked into this and have found a resolution. Always learning new tricks!! So forgive me I was wrong in the first post.
    You CAN do it by clicking within the workspace and then dragging outside so continually holding down then letting go outside the workspace.
    Colour sampling outside Photoshop | Shape Shed
    Hope this helps!

  • Mail not working outside of the US

    Why was I unable to send or receive email using the Apple Mail app on my iPhone and iPad (both had iOS 8.1.2) when traveling outside the US last week? The email accounts were functioning fine with Mail within the US. I was connected to secure WiFi networks in Mexico and Ireland. I was able to send/receive email if I bypassed Mail and signed on to each email account directly.

    At this point, it sounds like it would be best to delete the email account and then re-add it again.
    (the steps are also listed below)
    Remove a Personal (POP / IMAP) Account - DROID INCREDIBLE 2 by HTC
    From a home screen, select the applications tab (located in the lower left).
    Select Mail.
    From the preferred account, select Menu.
     To change accounts, select Menu > Account list then select the account.
    Select More.
    Select Settings.
     Not available from All accounts.
    Select Delete account.
    Select OK.  
    Add a Personal (POP / IMAP) Account - DROID INCREDIBLE 2 by HTC
    Server addresses, security information and additional support can be obtained from the email provider.
    From a home screen, select the applications tab (located in the lower left).
    If performing Initial Activation and Setup begin with step 2.
    Select Mail.  
    Yahoo, Windows Live Hotmail, AOL and Gmail
    Enter the Email address and Password then select Next.
    Ensure the following are correct.
    Account name
    The name of the account on this device.
    Your name
    The from name for mail sent from this account.
    Select Make this my default mail account to enable / disable.
    Enabled when a check mark is present.
    Select Finish setup. 
    Please let me know if this doesn't work for you.

  • Flex Application does not work outside of the default dir

    Hi,
    I have developed a flex application which calls a http
    service and displays the contents in a text area.
    This works fine when I execute it from the flex builder or
    from the directory where the flex builder stores it.
    If I copy the files to any other dir or the server, after
    making http call no result is displayed in the text area.
    Is there any thing else i need to do other building
    application in flex builder for deployment.
    Please help,
    Thanks in advance,
    Chintan

    "rtalton" <[email protected]> wrote in
    message
    news:gjlmvm$hrv$[email protected]..
    > Stubborn, aren't we? Ok, let me try again:
    > You only use "loadPolicyFile" to load a non-default
    policy file. remove
    > that
    > line from your code.
    > Also you do not need this line:
    > flash.system.Security.allowDomain("*");
    > ...in your code. Remove it. This is used when you have
    two SWFs on two
    > different servers. You do not.
    >
    > Again, read this page:
    >
    >
    http://livedocs.adobe.com/flex/3/html/help.html?content=deployingoverview_12.htm
    > l
    >
    > Your answer is there.
    > Hint: all you need is to *properly* deploy a
    cross-domain policy file.
    > Really.
    > I'm being very honest here. Have I ever lied to you
    before? No, I haven't.
    > So
    > you're buying the first round tonight after work, ok?
    Some people will do anything for a date ;-)

  • Folder action not working outside automator

    I have a folder action to convert and move all mkv files from within the downloads folder. The folder action included (among other) the following script:
    on run {input, parameters}
              set filename to POSIX path of input
              do shell script "/usr/local/bin/mkvdts2ac3.sh -n " & quoted form of filename user name "white" password "*****)" with administrator privileges
      #do shell script "mount -t smbfs //panos:z2kdft50@nas/internal internal" user name "white" password "******)" with administrator privileges
              do shell script "mv " & quoted form of filename & " /Users/white/internal/library/" user name "white" password "****)" with administrator privileges
              do shell script "rm -rf /Users/white/Downloads/*.dts" user name "white" password "*****)" with administrator privileges
              set message to "File " & filename
              return message
    end run
    The total workflow runs perfectly from within automator.
    The problem is that when the folder action is triggered from the system (regular usage, ouside automator) the workflow executes up to the point that the applescript is implemented (I ghave installed growl notifications at various points to know how far the script has run)
    Does anybody have any idea why could this be happening?
    I  have looked around but found no answers.
    Thanks.
    <Edited by Host>

    Thanks.
    I replaced the applescript with the following shell script:
    /usr/local/bin/mkvdts2ac3.sh -n $@
    mv $@ /Users/white/internal/library/
    rm -rf /Users/white/Downloads/$@
    It works.
    I had tried a shell script in the very begining, but I could not get it to work so I resorted to Applescript instead. I felt myself too that applescript was an unnecessary complicated procedure just to run shell commands.
    Anyway, now, each time a dts download finishes, it gets transcoded to dolby digital so that it can be played on my samsung tv (it's media player does not support dts).

  • Io does not work outside IDE **Importing issues?**

    I am new to javafx and was really enjoying writing a desktop app for local use. I have been using netbeans which I am also new at. I have ran into a snag and I'm getting quite frustrated with it. Reading and Writing files works just fine in a normal java program, the problem only arises with javafx. When I run the javafx program in Netbeans, everything works fine, the program is able to read from files and write to files without a problem. When I do a build then run the .jnlp, the program runs fine but will not read or write any files. I've been trying for long while and can not figure this out. I'd appreciate the help, I might be missing something entirely.
    **UPDATE** It seems to be the case with other imported libraries? I just tried using "import javax.swing.JFileChooser;" and the dialog won't even pop up (it works fine in netbeans)
    I have tried the following utilities, importing them as follows:
    import java.io.PrintWriter;
    import java.io.FileOutputStream;
    import java.io.BufferedWriter;
    import java.io.FileWriter;
    import java.io.File;
    import java.io.IOException;
    import javax.swing.JFileChooser;
    I imagine i just need to get what I'm doing wrong with using imported libraries.
    Edited by: 839984 on Feb 25, 2011 10:51 PM

    To find the console of java while you are running the java app from browser ; small java icon is displayed at right top corner (tray icon) on Mac OSX (right bottom tray icon on windows).Right click the icon and click on 'Open 1.6.x_x Console'.
    But if you are running the java app from desktop then you can go to JAVA control panel >Advance Tab> Java Console (Tree) > Show Console (Radio Button)
    Thanks.
    narayan

  • Context menu not working outside of JDev

    Hi all,
    RTFM replies welcomed, although I couldn't find anything.
    I have a very simple application (ADF BC + ADF Faces, 11.1.1.1.0).
    On one page, I have an af:table that lists departments; there is a context menu that allows me to right-click a row and go to an edit page. It works just fine using the WLS integrated in JDeveloper (on Windows). I have deployed the application to a 10.1.3.1 WLS (JRF installed properly) on Linux. The list page displays, context menu shows up, but when I choose the "edit" item in the context menu, nothing happens. I don't see anything interesting (or otherwise) in WLS log files.
    Am I missing a configuration somewhere?
    Thanks for any help (the app is the same app that I used for my ADF Essentials series on OTN, if anyone wants to download it - I'm trying to get one last wrinkle ironed on the last article, and they are good to go - so anyone who helps here, I'll give them a kudo in the article!).
    I can post the content of the PPR requests and responses if that helps someone (yay, Firebug!)
    As an update - I've tried all major browsers (IE, Firefox, Safari, Chrome - sorry Opera) and get the same results.
    Best,
    John

    John,
    I had to make some changes. The app I got from your series contained only an empty page flow and empty pages. I added the DepartmentList.jspx and DepartmentEdit.jspx to the adfc-config.xml. I added the navigation editDepartment from DepartmentLits to DepartmentEdit in the task flow.
    Because of the empty pages I'd put a read only table on the DepartmentList, added the code from your post to the contextMenu facet, added an edit form on the DepartmentEdit.jspx page.
    Tested it in jdev -> OK
    deployed the app on my test wls server -> OK
    So nothing fancy.
    Is the WLS on OpenSuse 11.2 RC a 64bit installation?
    I remember seeing strange behavior on a ubuntu 9.04 64bit installation had used before. My app runs fine on 32bit ubuntu 9.04 but i got errors when the app was hosted on the 64bit server. Never investigated it further because at work we are using SLSE and it's working there.
    Anyway I'll mail you the workspace I used.
    Keep me posted :-)
    Timo

  • Break statement does not work outside of switch or loop?

    I was just messing around in Xcode and I discovered that, when I tried to use the break statement to exit a block of code, I got an error ("break statement not within loop or switch"). I thought the break statement was supposed to be able to be used to exit any block of code at any time, so I opened my Mac OS X Programming book by Wrox (a bit outdated, uses older version of Xcode/Interface Builder, but applicable enough), and the book confirmed that I should be able to use the break statement within any block of code, not just switch/case construction and loops. I assume something has changed in the newer version of Xcode since this book has been published, but I'm curious, so can anyone explain this to me? Thanks!

    Yeah, that seems to be the case, and that's the only way I've ever used "break," but I did think it could be used to exit any block of code, especially having read it in the book I have. The book is Mac OS X Programming by Wrox, and on page 175 in the "The C Language" chapter, it says:
    "break" is not only useful for "switch" and "while" statements; it can actually be used anytime you want to escape a block of code enclosed in braces. Execution is immediately transferred to the closing brace, and continues from there."
    Anyways, I guess it is possible that in some older standard of C the "break" statement was allowed in these cases, since I can't imagine the book being out and out wrong, but you're right, it certainly seems to be -- interesting...

Maybe you are looking for

  • How can I view the number of messages in each folder

    I have just installed TB 24.4.0 on a new Windows 8 desktop. On my older Windows 7 desktop also running TB 24.4.0, the folder pane is configured to display the number of messages and space usage of each folder. Both machines are set to the same "class

  • Run a .exe file with parameters from my java code

    Hi, I want to run a .exe file from my java program. This .exe file will take some parameters in the command line. I need to supply that to the program as well. Can someone help me in this please? Thanks in advance.

  • How to customised web Report page?

    Hi, I am using Report Server 6i and I wish to customize the report parameter page and the result page so that I can add in buttons such as "close" and etc. Otherwise, the report pages always is covering the entire screen and my end users do now know

  • How to run evaluation version of PQA (picture quality analysis)

    Hi, I downloaded the PQA software. I just want to run it in evaluation mode before decide to purchase. Could you tell me how to run evaluation version? Thanks,

  • Reset Google Maps Searches

    Traveling all over the country, I've searched for "24 hour fitness" dozens of times. However, even after clearing Recents from Bookmarks, those searches live on in some cache somewhere... When I type "24 hour..." I get multiple auto-completed entries