I am trying to make GUIs in SWT using Jigloo and when I want to set images to Labels or Buttons, I can see them in the preview pane. However, when i compile and run it, it throws
SWTResourceManager.getImage: Error getting image img/game/front/test.png, java.lang.IllegalArgumentException: Argument cannot be null
The code it generates l...
Hello all,
I'm stumped on how to convert 3 letters and 3 numbers to ascii and increment them by one...it's the old next-license-plate problem. Can anyone give me a nudge in the right direction?
...
How do I run the plugin project under Resources [1] here: http://www.eclipse.org/articles/article.php?file=Article-JavaCodeManipulation%5FAST/index.html
If I am not wrong, the project starting point is here
public class ASTArticleActionDelegate implements IObjectActionDelegate -> public void run(IAction action)
public void run(IAction ...
I have made a java project and want to deliver it to a client but I don't want to deliver it as a jar file as the client can see the source code easily by unpacking the jar file.
How can I pack my java project so client cannot look at the source code or cannot change the source code?
One more thing, Can I integrate a key functionality ...
What is the difference between @Column and @Basic annotations in JPA? Can they be used together? Should they be used together? Or does one of them suffice?
...
What would make you to switch to Scala ?
If you are negative on the switching to Scala, please state the reason as well (or upvote).
As with all StackOverflow Poll type Q&As, please make certain your answer is NOT listed already before adding a new answer
If it already exists, vote that one up so we see what the most popular answe...
Hi all,
I have a question, I want to connect my handphone with my ubuntu laptop using bluetooth connection. The handphone just need to send what key I pressed to the laptop and do process based on what key I pressed. Did you guys have any easy to learn reference about j2me and bluetooth for people who just know basic JAVA syntax?
...
Can someone explain the differences of the Java Platform SE (6), Java, Java VM, etc.? Thanks.
...
Hi all,
I created the J2ME application and I have the web service (developed in Java) that has HelloServiceNMethod() as Web method. it returns the String. Now i want to invoke this web service in My J2ME MIDlet (in Sun wireless toolkit OR Eclipse)
What steps i have to follow.
Please Guide me.
...
Hello,
I have written a java program that is actually works as a gui to an existing command line program.
so in basic all my program does is Runtime.getRuntime().exec("myprogram parameter");. So I have exported my java source as a executable-jar file by using Eclipse IDE and it is working nice, however I indeed need to include this mypro...
What techniques could I use to make my "jar" file Reverse Engineer proof?
...
Hi,
I am trying to read database scripts in a Jar file so that I can split up my import.sql files as many times as I see fit.
For instance, I have several projects or modules that provide reference data, so I have a few separate scripts in each project that declares that. Instead of having one large import.sql, my approach was to spli...
What is the best way to tokenize a text file in Java, if
I want to work with a java.io.Reader, not a String
Delimiters should be returned?
I have evaluated the following classes:
java.util.StringTokenizer fulfills [2.], but not [1.]
java.util.Scanner fulfills [1.], but not [2.]
java.io.StreamTokenizer seems quite complicated.
I d...
I am making a text based game in Java. I have a text field, enter button, and a label.
What code do i use to scan the text field once the button is clicked and respond?
So that if I type in (launch missile) the label should say (missile launched).
I will be listening to a button actionperformed or maybe a mouseclick event . Somethin...
A single data structure to store different types in a single variable.
Not asking for generics, some a dynamically typed data structure.
Is it possible?
...
Whats the difference between:
@interface SomeClass : NSObject {
NSObject *something;
}
and
@interface SomeClass : NSObject {
}
NSObject *something;
? Also, what's the difference between Java's final and Objective C (C)'s const? And where should I declare static class members for the following situations: 1. When only the clas...
Hi,
A simple question with a fairly complicated answer. How do you sign a Java Midlet so you can load it onto a mobile phone with less security prompts.
Dave
PS: This is intended to be a self-answered question (I'm moving my blog and I don't want this info to be lost). Not quite sure on the etiqette for something like this
...
Given the following:
> This is level 1
> This is level 2
>> This is level 2.1
>> This is level 2.2
>>> This is level 2.2.1
>>> This is level 2.2.2
> This is level 3
How would you convert that text to XHTML, without a parser library such as ANTLR? That is:
<ul>
<li>This is level 1</li>
<li>This is level 2
<ul>...
If I have the value "foo", and a hashmap ftw for which ftw.containsValue("foo") returns true, how can I get the corresponding key? Do I have to loop through the hashmap? What is the best way to do that?
...
Its so happening that my actual data is 1/4 that of the HTTP request header size in bytes.
Is there a way to cut down on the size on the HTTP headers or any other relevant way to deal with this situation?
I am sending data from a mobile device over GPRS to the server and dont want to be burdened with huge request packets that will eat i...