eEcho blog

is een halte van de gedachte

Archive for the ‘Java’ Category

java awt

Contains all of the classes for creating user interfaces and for painting graphics and images.
http://java.sun.com/j2se/1.4.2/docs/api/java/awt/package-summary.html

Programmeren in Java/GUI

AWT
De Abstract Window Toolkit (AWT) is de platformonafhankelijke verzameling van klassen die een beroep doen op de grafische mogelijkheden van het onderliggende besturingssysteem, waardoor toch een platformafhankelijk uitzicht ontstaat.
Swing
Swing werd later ontwikkeld. De soms bedroevende grafische componenten van AWT (knoppen, vensters, navigatiebalken, …) werden geherdefinieerd in Swing. In tegenstelling tot AWT, waar elk grafische element […]

re Java

java.util.regex
Class Pattern
java.lang.Object
extended byjava.util.regex.Pattern
All Implemented Interfaces:
Serializable
public final class Pattern
extends Object
implements Serializable
A compiled representation of a regular expression.
A regular expression, specified as a string, must first be compiled into an instance of this class. The resulting pattern can then be used to create a Matcher object that can match arbitrary character […]

ArrayList gwt Java

Hier is JRE Emulation Library
http://code.google.com/webtoolkit/documentation/jre.html
Veel gebruikte class ArrayList
http://java.sun.com/j2se/1.4.2/docs/api/java/util/ArrayList.html

import java.util.ArrayList;
private ArrayList sinks = new ArrayList();

python jython interpreter eclipse

* Go to: window > preferences > pydev > Interpreter - (Jython/Python).
* 2. Choose the interpreter you have installed in your computer (such as python.exe or jython.jar)
* 3. Select the paths that will be in your SYSTEM PYTHONPATH. It’s important to select […]

Installing Pydev eclipse python

PyDev is a plugin that enables users to use Eclipse for Python and Jython development — making Eclipse a first class Python IDE — It comes with many goodies such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others.
Set the ‘Pydev Extensions’ update site: http://pydev.sourceforge.net/updates/
NOTE: if you currently have the sourceforge update […]

Android - An Open Handset Alliance Project

http://code.google.com/android/
http://code.google.com/android/documentation.html
The Open Handset Alliance, a group of more than 30 technology and mobile companies, is developing Android: the first complete, open, and free mobile platform. To help developers get started developing new applications, we’re offering an early look at the Android Software Development Kit.

Google Base Data API

http://code.google.com/apis/base/
What is the Google Base data API?
The Google Base data API enables developers to :
* query Google Base data to create applications and mashups.
* input and manage Google Base items programmatically.
*
Developer’s Guide
[…]

Java eclipse jdbc connector

- Maak een nieuwe project aan. / File / New project / Java Project /
- Geef een naam voor de project, klik “Next”
- In volgende venster /tab Libraries/ klik op de knop “Add externeal JARS”
- Blader naar de map waar mysql-connector-java-X.X.X -bin.jar zich bevind en selecteer hem. “OK” […]

try catch java

The try/catch statement encloses some code and is used to handle errors and exceptions that might occur in that code. Here is the general syntax of the try/catch statement:

try {
body-code
} catch (exception-classname variable-name) {
[…]

String Comparison Java

ou can compare strings like this.
//myString.equals(OtherString) is boolean
//example string
String myString = null;
//skip errors in a method for null string before comparing
if (myString == null) {
return;
}
//comapre like (this == that)
if (myString.equals(myOtherString)) {
//do this
}
//compare like (this != nothing)
if (myString.equals(null) == false) {
//do this
}
//like (this != nothing)
if […]

Object-Oriented Programming Concepts Java

http://java.sun.com/docs/books/tutorial/java/concepts/index.html
If you’ve never used an object-oriented programming language before, you’ll need to learn a few basic concepts before you can begin writing any code. This lesson will introduce you to objects, classes, inheritance, interfaces, and packages. Each discussion focuses on how these concepts relate to the real world, while simultaneously providing an introduction to the […]

free java tutorial

http://java.sun.com/docs/books/tutorial/java/index.html
Learning the Java Language
This trail covers the fundamentals of programming in the Java programming language.
Object-Oriented Programming Concepts teaches you the core concepts behind object-oriented programming: objects, messages, classes, and inheritance. This lesson ends by showing you how these concepts translate into code. Feel free to skip this lesson if you are already familiar with object-oriented […]

java cast string into int

I’ve got a String like this:
String string = “234″;
Now I want to cast/convert this into an int.

import java.lang.Integer;
if (Integer.parseInt(responseText) < 10){
bNext.setEnabled(false);
}

width=\”” + (Integer.parseInt(flashWidth) -2) +”\”

 

Home | info@eecho.info | Voorwaarden | Blog