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
-
help!!!
Unless you purchased the optional AppleCare+ extended warranty,
Apple will exchange your iPod for a refurbished one for (USA) $99 for 16 GB 5G and $149 for the other 5Gs. They do not fix yours.
Apple - iPod Repair price
A third-party place like the following maybe less. Google for more.
iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens
Replace the screen yourself if you are up to it
iPod Touch Repair – iFixit -
Happens when going to print.coupons.com. I click the "learn more" button on the message that the plugin has crashed, and I get sent to the Adobe Flash plugin crash info page on Firefox. They say just to reload the page. There is a button for this. I click it and the page tries to reload for 5 minutes before freezing.
https://support.mozilla.com/en-US/kb/Firefox+crashes#Getting_help_with_your_crash
-
updated iphone 4 to iso 7 and now my phone tells me to plug into itunes
http://support.apple.com/kb/ht1808
-
I was running KeyPassFox with Firefox 8.0.1, but the plugin does not work in the new release (9) . Is there a way to restore my previous version with all of my bookmarks intact? I do not mind if I have to restore the plugins myself.
The plugin shows on the list as enabled and functioning, yet the tool does not show on the toolbar. It would appear that I need to restore the previous version of Firefox and wait until a newer release of the plugin is available before upgrading the browser.I copied the iTunes file from the external drive and it's in both places. I thought all I would need is the iTunes program (which I downloaded to new computer) and my iTunes library file. There must be something else that's missing. My iTunes library looks the same on the new computer as it does when I open it on the external drive. If I click on an iTunes library song from my new computer, it will only play if I have the external drive plugged in.
My back-up drive is a mess. I have multiple copies of music, video, photo, and document files and I don't know how that happened. ={ Obviously, I don't know how to back up stuff properly and there are back-up files extending over a 6- to 8-year period. I think all I did was just drag and drop the main folders from the back-up drive to the same main folders on the C: drive. Also (and I'm kind of fuzzy on this) Windows used to automatically save music files in a folder within my document files (which makes no sense to me). As my Jewish friends would say, "Oy Vey!" -
I have a macbook pro. i have a photosmart 7510. we just bought a new windows tower and the printer works wireless for us, but now the mac does not print anymore wirelessly. i keep getting a message Network host 'HPE93F2A.local.' is busy. what can i do to
it is a windows 8
-
Ever since I updating my IPhone 4 to 5.1.1. my alert/banner does not work with my mail app. Initial startup it works but after that, it does
not work. The only way I know there is a message by tapping on the mail app and then I hear the alert and the banner shows up. Prior
to updating, it always worked. Is there a 'bug' in the system or is there something I am missing here.Yeah this was my first time connecting my phone to the computer since I went to iOS 5.0 and iCloud, so I wasn't familiar with the fact that it did not automatically create a backup on iTunes during the Sync process. Should have right-clicked on the phone device and did a manual backup.
But still, after restoring the backup from iCloud, I don't understand why data from certain apps got hosed (anything before October 2011, which was my last iTunes backup), while other apps' data appears to be fully intact. -
I have tried to reinstall CS3 extended student version to my new comuter from the dvd and also from the web download but it does not work - I get the information that the server does not work- why. How should I do?
Well the error message is in Swedish but says: The installation program database is damaged. Please contact the Adobe support (which is a hard thing to do!!). I use Windows 7 Home Premium with service pack 1.
Från: Mylenium
Skickat: den 29 december 2014 16:48
Till: Tony Bohman
Ämne: I have tried to reinstall CS3 extended student version to my new comuter from the dvd and also from the web download but it does not work - I get the information that the server does not work- why. How should I do?
I have tried to reinstall CS3 extended student version to my new comuter from the dvd and also from the web download but it does not work - I get the information that the server does not work- why. How should I do?
created by Mylenium <https://forums.adobe.com/people/Mylenium> in Downloading, Installing, Setting Up - View the full discussion <https://forums.adobe.com/message/7050595#7050595> -
How do I set up a mail group on mac mail? All the advise on line seems to refer to 'address book' and I only have 'contacts'. The guidance does not work when using 'contacts' - can anyone help me?
Create a group and send mail
http://www.dummies.com/how-to/content/how-to-create-a-basic-contact-group-in-mac -os-x-li.html
http://www.macworld.com/article/1165582/how_to_email_groups_with_mail.html
Best. -
I am having trouble with my iPad, i can start it, but the iPad does not work. i tried to use the power and home button at the same time, the apple logo appears, but the iPad does not work. What am I suppose to do?
After the Apple logo appears, what happens then? Can you hear any sounds or if you tap on the screen, does it seem like apps can open or are you just seeing a black screen? You might have a hardware problem, but you can try restoring the software and see what happens.
Read this in its entirety before you do anything. Make sure you read the sections at the end about using recovery mode.
iTunes: Restoring iOS software - Support - Apple -
Hello, I am trying to upgrade my macbook pro to yosemite, but I get the "disk cannot be used to startup your computer" error.
Resizing the partition does not work for me and I get the error "MediaKit reports no such partition" probably because I installed linux in dual boot and the disk manager is lost.
Anyway to tell the yosemite installer that it should not pay attention whether the disk is bootable or not ?
If I am doomed, any way to delete the installer and downloaded OS from my hard drive ?
Thanks for your helpAs usual, the Linux installer wrecked the partition table. You would have to boot from your OS X installation disc and repartition. Doing so will of course remove all data from the drive, so you must back up first if you haven't already done so.
-
I have creative cloud but Lightroom 5 develop does not work. What do I need to do to get it working?
If lightroom downloaded and installed without any errors, you will get better help with program questions in the program forum
If you start at the Forums Index http://forums.adobe.com/index.jspa
You will be able to select a forum for the specific Adobe product(s) you use
Click the "down arrow" symbol on the right (where it says ALL FORUMS) to open the drop down list and scroll
http://forums.adobe.com/community/lightroom -
I uninstalled yesscript but now the website will not work properly
I uninstalled yesscript but now the website will not work properly.
== URL of affected sites ==
http://sears.comHello Anonymous.
Although possibly not related to your problem, I will remind you that the version of Firefox you are using at the moment has been discontinued and is no longer supported. Furthermore, it has known bugs and security problems. I urge you to update to the latest version of Firefox, for maximum stability, performance, security and usability. You can get it for free, as always, at [http://www.getfirefox.com getfirefox.com].
As for your problem, you may be having a problem with some Firefox add-on that is hindering your Firefox's normal behavior. Have you tried disabling all add-ons (just to check), to see if Firefox goes back to normal?
Whenever you have a problem with Firefox, whatever it is, you should make sure it's not coming from one of your installed add-ons, be it an extension, a theme or a plugin. To do that easily and cleanly, run Firefox in [http://support.mozilla.com/en-US/kb/Safe+Mode safe mode] and select ''Disable all add-ons''. If the problem disappears, you know it's from an add-on. Disable them all in normal mode, and enable them one at a time until you find the source of the problem. See [http://support.mozilla.com/en-US/kb/Troubleshooting+extensions+and+themes this article] for information about troubleshooting extensions and theme. You can troubleshoot plugins the same way.
If you want support for one of your add-ons, you'll need to contact its author. -
i was using iphone4 in england then in pakistan and now the same set in south korea.....but here the sim is not working.....shopkeepers said that it is not factory unlock. but this set is factory unlocked. kindly inform me what to do now to activate the korean sim here.
To answer the post title FireFox save all downloads automatically in the download folder, which you can find in the Documents folder. If you want to choose where to save your downloads go to tools>options>check always ask me where to save files.
Secondly, I am assuming you have IE 8 installed as this is the only version that supports this fix that is currently not in beta. Go to control panel>internet options>advanced tab and reset the settings at the bottom. This may or may not fix the problem but it is a good first step. -
updated my ipad with ios7 but the keyboard does not work its slow when i hit the letters does not click did not do this until i updated anyone can help me on this to fix it
Settings>General>Reset>Reset All Settings
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