Talk:Abstract Window Toolkit

Page contents not supported in other languages.
Source: Wikipedia, the free encyclopedia.

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)[reply]

Example Errors

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)[reply]

Blacklisted Links Found on the Main Page

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

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.—

NotifyOnline 20:08, 8 December 2013 (UTC)[reply
]

External links modified

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:

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.

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: 18 January 2022).

Cheers.—InternetArchiveBot (Report bug) 15:06, 25 June 2017 (UTC)[reply]