Description:
Programming in the Java language.
|
|
|
java 5 and PBEWithSHA1AndAES
|
| |
Java 5 throws 'Algorithm not found' exception for the below PBE cipher: SecretKeyFactory.getInstance(" PBEWithSHA1AndAES") As per JCE provider spec- PBEWith<digest>And<encryption> , where AES is listed as supported 'encryption'. So, it should work without installing any external providers in Java 5. So, how would one do PBE with SHA1+AES in a java 5 solution without... more »
|
|
Porting C++ Template to Java Generic
|
| |
I've run into a road block with porting some C++ code that makes use of templates to Java. In it, there is a main class I'll call A that is a template class: // C++ template <class T> class A public: virtual T Evaluate() const = 0; ...Other classes extend this class: // C++ template <class T> class B : public A<T> {... more »
|
|
label setCursor not working when main frame is maximized
|
| |
I have a label in a JInternalFrame. The label has a mouseListener on it, to listen for clicks but also when the mouse is over the label. When the mouse is over it, I want to change the cursor to a hand cursor, and back to normal when exiting the label. All this works when my frame & internal frame are their start up sizes, but if I... more »
|
|
student-tutor interaction java
|
| |
are there sites online where student-tutor interaction on programming is facilitated, e.g like a site where students look for tutors willing to coach them through webinar, conferencing tools etc on programming? is it possible online? if yes, where? if no, are there ways a tutor can find students online willing to learn java through conferencing... more »
|
|
GTK Window to JFrame converter?
|
| |
Hello folks, Any java gui geniuses out there? I have this rather interesting problem: I have a shell application written in GTK that uses the GTK socket-plug architecture to allow third party programs to plug into that shell. The problem is that I would like to write a Java Swing application and plug it in to that architecture ... is that even possible?... more »
|
|
Java & Delphi
|
| |
What can a programmer in Delphi do best if he wants to try Java ? Comparable IDE, making forms, debugging, etc. Thanks, Fons.
|
|
OutOfMemoryException but I don't know why
|
| |
I am currently writing a portion of an application that is used to edit and display formulas to the user. The users add the formula tokens through a point and click interface and the tokens are added as JLabels to the panel. By existing as JLabels, the users can select the labels and make modifications to them given the controls... more »
|
|
style guide on method ordering
|
| |
I generally try to stay as close as possible to standard Java style in my code. But one area I've never seen any guidelines or best practices is with regard to the ordering of methods within a class. This may not seem like a big deal but I often waste time looking for, say, the compareTo method of a subsidiary class while debugging an ordering... more »
|
|
which OutputStreams are buffered?
|
| |
There is a java.io.BufferedOutputStream whose purpose is well documented, basically as a good thing to wrap around an unbuffered OutputStream (at least if you want buffering). However, and surprisingly to me, a number of the other OutputStreams in java.io do not document whether they are buffered, and thus it's not clear to me whether I... more »
|
|
|