Talk:Abstract Window Toolkit
This article is rated Start-class on Wikipedia's content assessment scale. It is of interest to multiple WikiProjects. | |||||||||||||||||||||||||||||||||||||||||||||||||||
|
This article is based on material taken from the Free On-line Dictionary of Computing prior to 1 November 2008 and incorporated under the "relicensing" terms of the GFDL, version 1.3 or later. |
I'm working on GUIs in Java, (I just started learning it) and I've made some code but it's giving me a bunch of errors. It's supposed to be an applet where it has a button, and when it's clicked it greys out so that you can't click it anymore and it shows some pointless hidden text. It doesn't have any use, I'm just trying to learn GUIs.
The code is below:
import java.awt.*;
import java.awt.event.*;
public class myApplet extends java.applet.Applet implements ActionListener {
//Create buttons and other stuffs
- Button showText = new Button("Show Hidden Text!");
- Button doNothing = new Button("Do nothing...");
- Label text = new Label("This is the hidden text!");
- public void init() {
- showText.addActionListener(this);
- add(showText);
- }
- public void actionPerformed(ActionEvent evt) {
- Object source = evt.getSource();
- if (source == "Show Hidden Text") {
- showText.setEditable(false);
- add(text);
- }
- }
}
Please, can someone figure out what I'm doing wrong? Thanks.
- Your code is not very well designed IMHO (take no offense, you are learning as you say), there's a lot to say about it. But this is not the place for these kind of questions my friend !!! Go to a Java forum, there's plenty of them on the web !! I'm sure people will readily answer your questions, even me if you put the pointer to the forum and nobody answered ;) But please I will NOT answer on my talk page too, your question is absolutely NOT wikipedia-related !! Hervegirod (talk) 22:05, 3 February 2009 (UTC)
Example Errors
[edit]Tried creating this page on Java 1.6.0_20 and had the following errors:
Heidi-2:100911 w1jp$ javac JavaSideCanvas.java
Note: JavaSideCanvas.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
So I did what they suggested...
Heidi-2:100911 w1jp$ javac -Xlint:deprecation JavaSideCanvas.java
JavaSideCanvas.java:22: warning: [deprecation] show() in java.awt.Window has been deprecated
frame.show();
^
1 warning
I tried running it anyway and got the following exception...
Heidi-2:100911 w1jp$ java JavaSideCanvas
Exception in thread "main" java.lang.UnsatisfiedLinkError: no NativeSideCanvas in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1754)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1045)
at JavaSideCanvas.<clinit>(JavaSideCanvas.java:7)
So obviously, NativeSideCanvas library is no longer in the JRE distribution.
We need a new example here!
W1jp (talk) 15:13, 11 September 2010 (UTC)
Blacklisted Links Found on the Main Page
[edit]Cyberbot II has detected that page contains external links that have either been globally or locally blacklisted. Links tend to be blacklisted because they have a history of being spammed, or are highly innappropriate for Wikipedia. This, however, doesn't necessarily mean it's spam, or not a good link. If the link is a good link, you may wish to request whitelisting by going to the request page for whitelisting. If you feel the link being caught by the blacklist is a false positive, or no longer needed on the blacklist, you may request the regex be removed or altered at the blacklist request page. If the link is blacklisted globally and you feel the above applies you may request to whitelist it using the before mentioned request page, or request it's removal, or alteration, at the request page on meta. When requesting whitelisting, be sure to supply the link to be whitelisted and wrap the link in nowiki tags. The whitelisting process can take its time so once a request has been filled out, you may set the invisible parameter on the tag to true. Please be aware that the bot will replace removed tags, and will remove misplaced tags regularly.
Below is a list of links that were found on the main page:
- http://java.dzone.com/news/a-farewell-heavyweightlightwei
- Triggered by
\bdzone\.com\b
on the global blacklist
- Triggered by
If you would like me to provide more information on the talk page, contact User:Cyberpower678 and ask him to program me with more info.
From your friendly hard working bot.—cyberbot II NotifyOnline 20:08, 8 December 2013 (UTC)
External links modified
[edit]Hello fellow Wikipedians,
I have just modified 6 external links on Abstract Window Toolkit. Please take a moment to review my edit. If you have any questions, or need the bot to ignore the links, or the page altogether, please visit this simple FaQ for additional information. I made the following changes:
- Corrected formatting/usage for http://java.sun.com/products/jfc/tsc/articles/mixing/index.html
- Added archive https://web.archive.org/web/20081217062847/http://download.java.net/jdk6/6u12/promoted/b02/changes/jdk6uN-b02.html to http://download.java.net/jdk6/6u12/promoted/b02/changes/jdk6uN-b02.html
- Corrected formatting/usage for http://mail.openjdk.java.net/pipermail/challenge-discuss/2008-March/000082.html
- Corrected formatting/usage for http://rkennke.wordpress.com/2008/09/03/cacio-swing-awt-peers/
- Corrected formatting/usage for http://mail.openjdk.java.net/pipermail/caciocavallo-dev/2009-September/000184.html
- Corrected formatting/usage for http://www.google-melange.com/gsoc/project/google/gsoc2011/linuxhippy/11001
When you have finished reviewing my changes, you may follow the instructions on the template below to fix any issues with the URLs.
This message was posted before February 2018. After February 2018, "External links modified" talk page sections are no longer generated or monitored by InternetArchiveBot. No special action is required regarding these talk page notices, other than regular verification using the archive tool instructions below. Editors have permission to delete these "External links modified" talk page sections if they want to de-clutter talk pages, but see the RfC before doing mass systematic removals. This message is updated dynamically through the template {{source check}}
(last update: 5 June 2024).
- If you have discovered URLs which were erroneously considered dead by the bot, you can report them with this tool.
- If you found an error with any archives or the URLs themselves, you can fix them with this tool.
Cheers.—InternetArchiveBot (Report bug) 15:06, 25 June 2017 (UTC)
- Start-Class Java articles
- Mid-importance Java articles
- WikiProject Java articles
- Start-Class Technology articles
- WikiProject Technology articles
- Start-Class software articles
- Low-importance software articles
- Start-Class software articles of Low-importance
- Start-Class Computing articles
- Unknown-importance Computing articles
- All Computing articles
- All Software articles
- Start-Class computer graphics articles
- Low-importance computer graphics articles
- WikiProject Computer graphics articles
- Low-importance Computing articles