Dark Mode

Jump to content

Talk:Abstract Window Toolkit

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This article is rated C-class on Wikipedia's content assessment scale.
It is of interest to multiple WikiProjects.
Java Mid-importance
This article is within the scope of WikiProject Java, a collaborative effort to improve the coverage of Java on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.JavaWikipedia:WikiProject JavaTemplate:WikiProject JavaJava
MidThis article has been rated as Mid-importance on the project's importance scale.
Technology
This article is within the scope of WikiProject Technology, a collaborative effort to improve the coverage of technology on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.TechnologyWikipedia:WikiProject TechnologyTemplate:WikiProject TechnologyTechnology
Software: Computing Low-importance
This article is within the scope of WikiProject Software, a collaborative effort to improve the coverage of software on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.SoftwareWikipedia:WikiProject SoftwareTemplate:WikiProject Softwaresoftware
LowThis article has been rated as Low-importance on the project's importance scale.
This article is supported by WikiProject Computing.
Computer graphics Low-importance
This article is within the scope of WikiProject Computer graphics, a collaborative effort to improve the coverage of computer graphics on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.Computer graphicsWikipedia:WikiProject Computer graphicsTemplate:WikiProject Computer graphicscomputer graphics
LowThis article has been rated as Low-importance on the project's importance scale.
Computing Low-importance
This article is within the scope of WikiProject Computing, a collaborative effort to improve the coverage of computers, computing, and information technology on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.ComputingWikipedia:WikiProject ComputingTemplate:WikiProject ComputingComputing
LowThis article has been rated as Low-importance on the project's importance scale.
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.

Untitled

[edit]

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

[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.(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]

[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

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