Hello, my intention is to use a top view, set in parallel projection, with axis x=0,y=100,z=0 for picking up a snapshot of a 3D plane positioned at origin, obviously "y" depends by dimensions of the plane (I have also problems to understand why I must use View.setScreenScale to obtain a depth effect).
The problem comes when I want to gr...
Is there a good(and easy) way to make a JCombobox look like a JTextField?
By this I mean there should not be a dropdown button, but when the user enters something it should show multible results.
Basically the same way google, youtube, facebook etc. works.
...
Does anybody know of a good classifieds application written in Java?
Update
... by "classifieds application", I mean an application which handles buying and selling, advertisements etc., something like "http://www.ikiclassifieds.com/" but only written in Java.
...
I'm considering porting an application from Java to .NET. This application makes a massive use of the NIO package which is totally non-existing in .NET.
One of the crucial differences, which is difficult to replicate on .NET, is the MappedBytesBuffer, since it is used to access an isolated portion of a file.
Could anyone help me findin...
Let's say we have a class foo which has a private instance variable bar.
Now let us have another class, baz, which extends foo. Can non-static methods in baz access foo's variable bar if there is no accessor method defined in foo?
I'm working in Java, by the way.
...
Hi all,
We ate migrating one of our axis web service which was built using JDK 1.4 and axis 1.0.
We are trying to migrate it to JDK 1.6.0 with axis 1.2, but I am getting the following null pointer exception.
The same code is working fine as soon as switch back to JDK 1.4.
Any help? Thanks in advance.
java.lang.NullPointerException
...
Hello,
I have this string: "\"Blah \'Blah\' Blah\"". There is another string inside it. How do I convert that into: Blah 'Blah' Blah? (you see, unescaping the string.) This is because I get a SQL Where query:
WHERE blah="Blah \'Blah\' Blah"
When I parse this, I get the string above (still inside quotes and escaped.) How would I extrac...
I've gone through a few Java questions on SO. And I must say the content here is pretty well written and the Java guys on SO can really pump out the answers.
But what I always found was Java answers for Java people. Which is great on its own, but I'm a Java noob. So I don't really care for the workings of "Joint union in type parameter ...
I have a class I'm unit testing that requires fairly extensive database setup before the individual test methods can run. This setup takes a long time: for reasons hopefully not relevant to the question at hand, I need to populate the DB programatically instead of from an SQL dump.
The issue I have is with the tear-down. How can I eas...
I've always wanted to create custom components in Java, or customize existing ones, but my searches never resulted in anything useful. So I decided to ask the StackOverflow community:
Where can I find information about customizing Java GUI Components in general?
And when I mean customizing, I'm not talking about changing colors, fonts ...
With JRE6 (SUN VM on Windows XP), getLocalhost() freezes sometimes.
Interestingly, if in the debugger in Eclipse, it does not freeze. I narrowed it down to a single getLocalhost() call using old school println. There is nothing particularly special about the code, that I can see.
Has anyone else seen this problem?
...
i have an ASP.NET web service that returning a custom entity object (Staff):
[WebMethod]
public Staff GetStaffByLoginID(string loginID){}
how would i consume this in Java?
thanks!
...
I am currently working on an intro screen for a game designed using JOGL. I want the intro to be a JPanel with a few buttons to alter options before starting the game.
So, I have JFrame which I add a GLCanvas to. The GLCanvas also contains a GLEventListener. Finally, I add the JPanel.
I have overridden the JPanel paintComponent method ...
I'm not having any luck finding one.
...
I'm building a web application with JSF and ICEFaces. Now I've integrated a Java Applet into one of the JSF pages.
The Question is, how can I pass information stored in the backing bean to the applet?
I don't think that I neeed a bidirectional communication. I'm collection data using ICEFaces input components. For instance, hitting a bu...
Hi,
I wonder why my JDialog pushes my main application into background. That means if the JDialog will be shown and the user clicks "OK" or "CANCEL" the main application looses its focus and will be pushed into the background.
After my investigation I found out, that this behaviour only happens if I disable my main frame for the time I...
I've an assignment currently to implement this RC5 encryption in my java project but I have no much idea how to achieve it.
I tried to create Cipher object as below line and it throw me exception:
Cipher desCipher = Cipher.getInstance("RC5");
***java.security.NoSuchAlgorithmException: Cannot find any provider supporting RC5***
but ot...
Well, I've looked all over the internet (including good ol' StackOverflow) and just haven't been able to find an answer to this question, so maybe someone can provide some insight.
I'm working on developing a relatively simple Java app that will replace a Word doc currently used for system access requests. It's designed to allow form e...
I am trying to throw a (custom) ImportException from the method importUsers in class UserHelper. I can see in the debugger that the throw clause is executed, but the method, from which the importUsers method is called, never catches the exception.
Here is the method, where the exception is thrown:
public static AccessorValidator impor...
This blog post demonstrates a way to implement a mutex per string id idiom. The String ids used are to represent HttpSession ids.
Why do we need to wrap a WeakReference around the Mutex instances ? Isn't it better to just create a Map from String -> Mutex ?
Why do we need to call put twice ?
public Mutex getMutex( String id )
{ ...