I am working on a simple java code to extract all calendar entries for a given date. I know it possible using Domingo but I would like to use only Notes.jar for this purpose. It is possible for me to create a session based on a given credentials and get the calendar object. I am looking to extract the current running notes session and us...
Hi,
I need help in setting up a new DataLine. I have load a sound file and set up a line. After loading the data into the line I separate the data into the left and right channel. Now I wanna set up a line for the left and right channel for controlling the gain for each channel.
How can I do this?
...
Hi,
I am having an issue with a delete I am trying to do in Hibernate. Everytime I try to delete I get an issue due to child records existing so it cannot delete the parent. I want to delete children and the parent. Here is my parent mapping:
<set name="communicationCountries" inverse="true" cascade="all,delete-orphan">
<key ...
I would like to change my qestion to the following:
I have one HashMap object, and one int. I want to serialize the into the same file and get back. I know that I should do deserialization in the same order as I have done serialization.
Please provide me with a code which performes that action.
...
Hi,
Java has:
public void someMethod(int ... intArray) { // question: what is the equivalent to "..."
// do something with intArray
}
how can I achieve the same functionality in Scala? That is, passing an undefined number of parameters to a method?
...
Hi !
I would like to simulate a natural mouse movement in Java (going from here to there pixel by pixel). To do that I need to know the starting coordinates.
I've found the method event.getX() and event.getY() but I need an event...
How can I know the positions without doing anything (or something not visible) ?
Thank you
...
I am trying to make a dynamic form using Spring forms. Basically, the form gets a title of learning activity and then there's the a button below it that says, "Add one more Learning Activity". This makes it possible for the user to add one more learning activity. I want him to be able to add as much as he likes.
I haven't tried this be...
In which Swing layout manager it is possible to change layout areas programmatically? And how to do this with lowest cost?
I have to create component with functionality similar to JSplitPane but with three panels from scratch. One of the moments is to Expand/Collapse one of the panels after clicking oneTouchExpandable button on the divi...
I installed and got acquainted with Mylyn today. I also watched the excellent Mylyn/Tasktop webcast.
It's obvious how you can add individual packages, classes, interfaces, methods, etc. to a task's context in Java... but what about when using JavaScript or Python? How about HTML/CSS/JSP pages? Could Mylyn somehow add only certain JavaS...
Is there a vm option option to enable 32bit compatibility mode?
I've googled but couldn't find how to do it anywhere!
The reason I am doing it is I'm trying to run the GWT on Linux Ubuntu 64 as the link below indicates is possible.
Issue 134: GWT hosted web browser does not work in 64-bit Linux
...
Hi!
i have always wondered how to handle Files in applications. Say we have an Object containing several data about a File like a UUID and the reference to the file on disk.
Even if this Object is immutable, there might be side effects like the file will be deleted by a part of the application but the other do not know about it, render...
Is there any way to determine the IP address of the socket used to create the HTTP connection when the class used to create the connection was HttpUrlConnection?
...
I write code primarily for personal use, but I'm considering releasing an application (scientific simulation/visualization) that I originally developed for personal use.
One of my habits is to use a main method in classes for testing the operation of the class in isolation. I figure that's probably bad in someway (as are no doubt vario...
I use EclipseLink in my application. EclipseLink uses some connection pool. I use EclipseLink internal one. Connection pool creates connection when it is needed and then keeps it for future use.
I need to make one specific SQL call on each connection when it is created, but only once. What I need to do is to grant user specific role on ...
I have simple program like this
class println
{
public static void main(String[] args)
{
System.out.println("Hello World!");
}
}
But i dont want to use System.out.println to print..i want to use my own user defined method to print the data.
...
The problem is that I have an old web service library that has a hashtable of global options which it combines with hashtable of request options. I cann't influence request code, but I can set the global hashtable. And I was just curious if there is a simple way to implement an extention to Hashtable class that will perform a callback fo...
Is there a good opensource service/subscription manager engine that contains things like service dependencies (i.e. if I choose service A, I also need Service B and Service C), subscription types, start and termination etc...
I'm building a site that sells various services and subscriptions and would prefer not to have to write that cod...
When I start up my JBoss server I pipe standard out to a file. When looking at that file I see a timestamp but I can't figure out what day the event happend.
The sample below is from my output file. I can see the action happened at 10:35 but on what day and what does the "24,253" mean?
10:35:24,253 INFO [STDOUT] Here 1
10:35:2...
We're using JBoss 4.22 with portlets. When the listener tag is not in the web.xml the portlet loads, but the listener sessionDestroyed() is never called (obviously). When added the portlet isn't loaded, and there aren't any exceptions or log messages. Are there any gotchas I should be aware of?
<web-app xmlns="http://java.sun.com/xml...
I would like to have a compareTo method that ignores the time portion of a java.util.Date. I guess there are a number of ways to solve this. What's the simplest way?
...