can any one give me the source code for mp3 streaming blackberry java application with play/pause, volume slider controls... with background too...
thanks in advance.
:)
Hi,
I want to create a Word or RTF file with a table of contents (with links to each section) from Java. From my understanding, iText & Apache POI do not support generating a table of contents. Some clients of the app still use older versions of Word, so I need a library that supports the older Word doc format. Does anyone know how I can do this?
Thanks,
Glen
Hi All
To build a java-based GUI using jsp and servlets, what are the different factors that go into selection of frameworks like AJAX, JSF, Struts 1/Struts 2 etc.
Also for each of the above pls throw some light on, what are the libraries, toolkits and IDE which are available?
Thanks.
What is the best way to capture a kill signal in java without using JNI. I did discover the sun.misc.Signal and the sun.misc.SignalHandler and the warning of the possibility of being removed in the future releases.
Would using JNI to call a c lib be the only option i have?
In C++, I can use find_if with a predicate to find an element in a container. Is there something like that in Java? The contains method on collections uses equals and can not be parameterized.
I find it curious that the most obvious way to create Date objects in Java has been deprecated and appears to have been "substituted" with not so obvious to use lenient calendar. So...
How do you check that a date given as a combination of day, month and year is a valid date? For instance a date 2008-02-31 (as in yyyy-mm-dd) would be invalid date.
Java Socket Program did not work for WAN
I have written a TCP IP socket program which works fine in my LAN.
One of my friend is at bangalore He ran the server and I ran the
client with the host name of my friend's IP. In this case my
socket program did not work.
Is there a way/tool to auto convert Java source code from using raw types to using generic types?
I have some legacy code with 677 references to raw types:
ArrayList 47
Vector 420
Hashtable 61
Enumeration 64
Class 7
Iterator 78
TOTAL 677
Now I could manually look through the code to infer the generic types and replace, but that is going to take a long time.
Hi, I'm aware of the function BigInteger.probablePrime(int bitLength, Random rnd) that outputs probably prime number of any bit length. I want a REAL prime number in Java. Is there any FOSS library to do so with acceptable performance? Thanks in advance!
I had problem with my client program when I run my client in eclipse or netbeans, I get a runtime error java.lang.RuntimeException: Spurious serialisation error. But when i use command prompt I have no errors.
Here is my client code
http://pastebin.com/jUkw7F7k
I'm trying to find a balance between performance and degree of compression when gzipping a Java webapp response.
In looking at the Deflater class, I can set a level and a strategy. The levels are self explanatory - BEST_SPEED to BEST_COMPRESSION.
I'm not sure regarding the strategies - DEFAULT_STRATEGY, FILTERED and HUFFMAN_ONLY
I can make some sense from the Javadoc but I was wondering if someone had used a specific strategy in their apps and if you saw any difference in terms of performance / degree of compression.
Thanks,
Keyur
Is there a way to get Class object from the type variable in Java generic class? Something like that:
public class Bar extends Foo<T> {
public Class getParameterClass() {
return T.class; // doesn't compile
}
}
This type information is available at compile time and therefore should not be affected by type erasure, so, theoretically, there should be a way to accomplish this. Does it exist?
Hello, everyone
I am doing some research related to Java NIO. I need to find some representative
applications that are based on this framework. Please feel free to suggest! The more, the merrier!
Thanks
This post is similar to this post, but not exactly, so I'm asking this question.
How does one go about, From a Java WebStart app:
launch a new browser window with a target URL?
bring an existing browser window into
focus with a target URL?
Is the solution OS/platform independent? Does it matter which browser you're talking to?
Hello,
I am a long time java web developer but I am new to portlets technology.
Currently I am in the stage of finding my options.
I have tried Liferay and although it is very cool, it is a bit heavy for my needs.
Can you recommend a more lightweight portlet container?
I'm working on an open-source Java Web Start application, and I'd like to give it a consistent theme across platforms. Metal is totally ugly, and I'm not particularly happy with Substance (esp. performance). What are the best Swing Look&Feel options out there today?
I know this is not possible but can anyone provide a theory as to why Java chose not to support this? I am asking because I just ran into a situation where I think it would be nice to have.
I want to create a TreeMap in Java with a custom sort order. The sorted keys which are string need to be sorted according to the second character. The values are also string.
Sample Hash:
Za,FOO
Ab,Bar
hello!
I need to extract the zipcode from file's line.
each line contains an adress and is formatted in a different way.
eg.
"Großen Haag 5c, DE-47559 Kranenburg"
or
"Lange Ruthe 7b, 55294 Bodenheim"
the zipcode is always a five digit number and sometimes follows "DE-".
I use Java.
Thanks a lot!
Is there a way to get all possible values from a MySQL enum column?
The MySQL documentation says the MySQL enum type is returned as a Java String, so I basically would like a way to get all possible strings I can pass when querying a table with such an enum.
I couldn't immediately find anything when I was looking through the metadata returned for such a column, but since enum isn't standard SQL, I'm not sure it's even possible... any suggestions?
hi,
I need the java code snippet for the below logic:
Following is a string and I need to validate the string based on the below condition :
"100 or 200 and 345 not 550 " - Valid string
"abc or 200 and 345 SAME ** 550 " - Not a Valid String
1 . the operands(eg 100,200 ..) should be positive numbers
2 . the operator should be and/or/not
Thx
Can you try/catch a stack overflow exception in java? It seems to be throwing itself either way. When my procedures overflows, I'd like to "penalize" that value.
In java when you close a socket it doesn't do anything anymore but it actually closes the tcp connection after a timeout time.
I need thousands of sockets and I want them to be closed exactly after closed them not after wasting my time and my resources!
What can I do?
Thank you.