I have exactly 1 month until I start a web app project (standard 3-tier) using Java. I can probably decide on the frameworks and (frontend) technology used. The app will most likely be contained in Websphere.
I am coming from a .NET (mostly) backend development world (SQL Server, basic NHibernate, basic ASP.NET).
If I can spend all my ...
Coming from a C# Background I never used any pointers.
I'm creating a vector of contacts objects. What is the best way to create a separate vector which references to elements in the big vector?
...
How to rotate text which is there in HSSFCell class of Apache POI API?
Can you please provide some example code for the same?
...
Consider following schema in postgres database.
CREATE TABLE employee
(
id_employee serial NOT NULL PrimarKey,
tx_email_address text NOT NULL Unique,
tx_passwd character varying(256)
)
I have a java class which does following
conn.setAutoComit(false);
ResultSet rs = stmt.("select * from employee where tx_email_address = 'test1...
Hello,
I'm running JBoss 4.2.3, Java 1.5, and Ubuntu. Before you tell me to post on the JBossWS forum, I already have and there is not a lot of activity over there. I am trying to call a Microsoft Exchange web service end point from a JSF web application. I have written other web service end points and have successfully built clients in...
Java's checked exceptions sometimes force you to catch a checked exception that you believe will never be thrown. Best practice dictates that you wrap that in an unchecked exception and rethrow it, just in case. What exception class do you wrap with in that case?
What exception would you wrap with in the "// Should never happen" case?
...
I’m currently trying to profile an Eclipse Plugin using the TPTP tools. However, I have run into issues when trying to profile an plugin. I can profile a Java application fine, however when I try to profile an plugin, the runtime workbench fails to load and the profiling terminates after a few seconds.
I’m at a lost to what I’m doing ...
Is there an equivalent to C#'s 'new' modifier in Java?
I'd like to use it for unit tests - every init() method should be marked final and annotated with @Before. Then, jUnit executes all of these init() methods.
I don't want to bother coming up with new names for each of these init() methods, and I definitely wants to mark them as fina...
Hey all,
I was trying all of yesterday to try and integrate a SQL Database with SmartGWT for a lazy list but I just couldn't figure out how to implement it. (JavaDoc, and example of a lazy list)
What I want to do is create a list of a bunch of "sites" all over the world. The problem is there will probably be about a million of them, s...
Hello! Is it possible in Eclipse to create a separate Folder in a package? When select "new --> folder", my eclipse version always creates a package. But i want the new folder to be in the old package.
How can this be achieved?
Thanks in advance...
Patrick
...
Hi,
How to add Image in different different HSSFCell object in poi ?
I have written some code which is adding image but problem is, the cell were I added last image, That cell only showing image other than that no other cells are showing images ...
appreciate your help ...
My Code is
while(rs.next()){
HSSFCell cell = getHSSFCell(s...
I have an applet which needs more or less memory depending on how many data the client has.
We usually recommend to use Java 1.6 latest version, but we actually support Java 1.5+ so we have a protection in the applet which shows a dialog box with a warning about "not enough memory" and instructions where to go to increase the memory.
H...
I'm working on a Java application that needs to communicate with a C application. The C application uses shared memory and mmap to communicate, and I need the Java application to have access to the same memory.
My first attempt involved using JNI calls to retrieve data from the shared memory, but the overhead of each JNI call killed per...
I have a JSlider with a min of 0 and a max of 10,000. I have the major tick marks set at 1,000. If I were to paint the labels now they would show up as 0, 1000, 2000, 3000, 4000, etc. What I would like to be shown would be 0, 1, 2, 3, 4, 5, etc. What would be a good way to accomplish this task?
...
Hmmm. I have a table which is an array of structures I need to store in Java. The naive don't-worry-about-memory approach says do this:
public class Record {
final private int field1;
final private int field2;
final private long field3;
/* constructor & accessors here */
}
List<Record> records = new ArrayList<Record>();
If I ...
Is there a way to make Eclipse break on uncaught exceptions while in debug mode for jUnit? Eclipse breaks fine when executing main(). Is there a command-line switch I can use?
Thanks
...
I'm converting a legacy app from ISO-8859-1 to UTF-8, and I've used a number of resources to determine what I need to set to get this to work. However, after several configuration, code, and environment changes, my Servlet (in Tomcat 5) doesn't seem to process submitted HTML form content as UTF-8.
Here's what I've set up for configurati...
I've been looking into IntelliJ's advanced features, specifically its on-the-fly CSS validation (their site says that it can find "Unused CSS class definitions") to help us clean up our massive CSS files in our hundreds of JSP pages. IntelliJ has so many features and seems to be pushing the envelope in many ways but how much can IntelliJ...
My goal is to create some kind of swing component that can do two things:
Function as a combo box (select from a list of values)
Allow a user to type into the component and only display the relevant items from the original list (like some AJAX search boxes online)
I would really like to do this by customizing an existing swing compon...
I have the following simple program that multiplies two different floating point numbers many times. As you can see, one of the numbers is very small. When I calculate the time of executing both multiplications, I was surprised that the little number takes much longer than the other one. It seems that working with small doubles is slower...