Application is fine in prompt line but in the JSW does not work

Hi folks
I have a stuck problem with my application. It works fine with java ... but does not work with the javaws! The problem is in a inner class who extends a panel which must be painted several times (the application works with a optimazation traffic algorithm)... If i use the inner class, the program does not appear and there is no bug messages.
If a cut the lines with the drawingPane code, the application run without a problem with the javaws!
These are the important lines of the code:
// Main class
public class AlgConstrutivos extends JPanel
implements MouseListener, ActionListener{
// The problem PANEL!!!!!!!!!!
private JPanel drawingPane;
// The constructor of main class
public AlgConstrutivos() {
drawingPane = new DrawingPane();
drawingPane.setBackground(Color.white);
drawingPane.addMouseListener(this);
//Put the drawing area in a scroll pane.
JScrollPane scroller = new JScrollPane(drawingPane);
scroller.setPreferredSize(new Dimension(400,400));
//Lay out
add(ordem, BorderLayout.PAGE_START);
add(scroller, BorderLayout.CENTER);
// The main function
public static void main(String[] args) {
JFrame.setDefaultLookAndFeelDecorated(true);
//Create and set up the window.
JFrame frame = new JFrame("Test");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
//Create and set up the content pane.
JComponent newContentPane = new AlgConstrutivos();
newContentPane.setOpaque(true);
frame.setContentPane(newContentPane);
//Display the window.
frame.pack();
frame.setVisible(true);
public class DrawingPane extends JPanel {
public void paintComponent(Graphics g) {
super.paintComponent(g);
// Draw some lines and points...
Any help?
Thanks...
Andre Cordenonsi

Yes... In fact, the inner class is in the same .java file...
There are no error messages at all!
My jnpl file is (i run with --> javaws a.jnpl)
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+"
codebase="file:///c:/animacao/" href="a.jnlp"
>
<information>
<title>ARGH!</title>
<vendor>Myself</vendor>
<homepage href="/animacao" />
<description>...</description>
</information>
<offline-allowed/>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.2+" />
<jar href="Teste.jar"/>
<nativelib href="Teste.jar"/>
</resources>
<application-desc main-class="AlgConstrutivos" />
</jnlp>
I try use the nativelib resource, but nothing happens...
Andre Cordenonsi

Similar Messages

Maybe you are looking for

  • Would like to separate my Itunes account from rest of the family

    I have one apple iTunes account for my family(myself with two daughters). This has become quite a mess as I am now receiving all of their updates, and I'm not able to backup my iphone anymore. What I would like to do is to separate my account complet

  • Why am I losing the right side of my frames?

    I am working with video originally shot on handled camer with an SD card that has then been copied to a DVD.  The VOB files are 720x480 and 29FPS.  When I add the media I have tried several project pre-set settings, however all of them are cutting of

  • How to show rss from other sites on my site?

    how to show rss from other sites on my site? i'd like to have a window on my site that shows rss from another site (their content in a window on my site) thanks lenny

  • Does Adobe Reader support 64-bit IE versions?

    When opening a pdf from 64 bit IE, the links in the pdf document don't work. I've had to use the 32 bit IE 9 client and then the links work fine.  Is there any way getting around having to use two versions of IE?

  • Creating a Staff without a midi part??

    Hi, I'm trying to score something in Logic. If look at scoring in the manual, it tells me "a staff must exist" before you can score (well obviously!). Is it possible for me to create a score before a midi part exists. So can I create a new project, g