I'm trying to write a remote control application which should allow a user to control a pc with a wireless device. It should be possible to use the device for example as game controller. I've got the advice to create a virtual device but I couldn't find any information on how to do that.
What possibilities do I have to do that in Java or...
I would like to append the output JAR filename of a Netbeans project with some version number: something like 1.0, 2.0b or even a Subversion revision number. I can't seem to find anything on this, though. I am also not sure if this would the responsibility of the build system (Ant) or if the IDE (Netbeans) can delegate the process. Is...
hi my dropdown has some 3 values
1)Apple
2)mango
3)grape
when my page loads my dropdown is defaulted to Apple(first value)
how can i make dropdown defaulted to empty and when i clicked on dropdown it should show the values
in java jsf (i am getting dropdown values as List)
...
For example is it better to have:
public class Case : EntityIdentifiable
{
public Jobs Jobs { get; set; }
public Vehicles Vehicles { get; set; }
public Locations Locations {get;set;}
public IDistances Distances { get; set; }
}
or
public class Case : EntityIdentifiable
{
public Dictionary<string,Job> { get; set; ...
Can anyone point me towards an example of how to configure an Axis 2 web service so it is WS-Interoperability Basic Profile 1.1 compliant?
...
I have a problem while pasting my contents (or text) generated by Java code into excel.
The problem is that my Java code generates a String with multiple lines, i.e. with line breaks (\n) included. When I try to copy this content and paste it into an Excel file, I am getting a multiline text with a square box symbol. I came to know tha...
The thing I am doing is displaying Jasper Report in an JApplet in web browser. Eeverything is working fine except two.
The detail section of my report is not showing up in the applet. I'm sure that there is no issue with the report filling as the values of query fields put in other sections like page header are showing up. Only the det...
2re-1_4_2_06-windows-i586-p.exe is not being silently install on Vista ultimate. I am using following command:
j2re-1_4_2_06-windows-i586-p.exe /S /v"/qn ADDLOCAL=ALL IEXPLORER=0 MOZILLA=0"
That command work fine on XP and NT. Kindly tell me, how to make silent j2re on Vista Ultimate.
...
I have created a JList and I want to add it to the table and then add the table to the scroll pane so that both of them will be contained in the scroll pane.
import model.*;
import java.awt. *;
import java.text.*;
import javax.swing.*;
import javax.swing.table.TableColumn;
public class ScrollPanel extends JPanel implements View
{
priva...
I've been spending hours trying to figure out why I've been getting the java.lang.NoClassDefFoundError, and I've narrowed down the cause to Tomcat's classpath.
I used the code below to see what the path variables hold:
out.println("Classpath: '" + System.getProperty( "java.class.path" ) + "'" );
out.println("Ext dirs: '" + System.getPr...
For JSP and some JSF tags there is a tool called TLDdoc that generates JavaDoc-style documentation for the JSP and JSF tags.
Does anybody know an equivalent for Facelets? There is a tool called facelets-doc that aims to support Facelets but either it's not finished, or the lack of documentation doesn't mention how to make it work.
I ha...
I want a program that takes an int x as parameter and returns 2^x. The implementation is not allowed to use power of.
public int double2 (int x) {
int r = 2;
int y = 1;
for (int i=0; i < x; i++){
y = r* y;
}
return y;
}
Do you think this is a right solution?
...
Over the past year I've made huge improvements in my application's Java heap usage--a solid 66% reduction. In pursuit of that, I've been monitoring various metrics, such as Java heap size, cpu, Java non-heap, etc. via SNMP.
Recently, I've been monitoring how much real memory (RSS, resident set) by the JVM and am somewhat surprised. ...
I know how to create the basic controls in Swing, but coming to industry standard application development, I lack the skills to do them.
I am designing a small Java Swing application. Instead of creating a JFrame for each purpose, I would like to create controls, display them, hide them (whenever necessary), everything in just one windo...
i need to show a value in excel cell like in 12.3% in the cell.but it should be able
convert into a number.by default it is considering as a text.But i want it as a number.
if any body overcome this problem.please let me know.
...
We deploy web services implemented by using the CXF framework on the Glassfish application server. Glassfish has the possibility to monitor Web Services deployed on the server through it's management console.
We would like to be able to use these monitor features of Glassfish towards the web services implemented by using CXF, but when w...
Does anybody know if there is a Maven 2 plugin for including Ohloh statistics/widgets as a report?
...
Hi,
I wonder if it is possible to get a decorViews child. For example if I have a decorView object and I know that the child of the decorView is a FrameLayout, is there someway for me to get the FrameLayout object just by using its parent?
Obviously I could use getViewById() in the traditional way, but if I only want to use the parent...
I want to stop threads by using a boolean field. I have implemented some code to do this which is as follows:
My thread class is like this:
public class ParserThread implements Runnable {
private volatile boolean stopped = false;
public void stopTheThread() {
stopped = true;
}
:
:
}
And below is the main ...
I'm writing a DLL which a java program uses to call the WinAPI in various ways. I want to throw proper exceptions back to java but I need a nicely formated WinAPI error not just the int that get's returned from GetLastError(). I'm sure there's a nice way to do it.
...