Whenever any of my JDialogs have focus the toolbar does not display any menus accept for my applications main menu (it doesn't show file edit etc....). Is this an issue inherent to JDialogs/Swing or is this some sort of problem with how I made my dialogs?
...
I know this must be a pretty common problem, but I haven't been able to find a definitive answer on how to do it.
First, assume we have a java server that accepts queries such as (I've just put the relevant lines, and I've taken out the exception handling for clarity):
ServerSocket socket = new ServerSocket(port);
while (true) ...
Hi
I am starter and i want to know how to find a specific column is a FOREIGN KEY column in the database.
what i am doing is.....
I am getting a connection object from a specific data source. Using this connection object i am trying to get all the metadata of that specific datasource using DatabaseMetadata. I worked on getColumns, get...
From sun's documentation
"The printing system might request that a page be rendered multiple times before moving to the next page."
The examples always show something like this:
Printable print(Graphics g, PageFormat pageFormat, int page) {
if (page == 0)
do...
else if(page == blah...)
}
If you follow this pattern you...
Hi,
I was doing some j2mee work on ubuntu linux with Netbeans 6.7.1. I went fine until my notebook broken down. So, I had to move my work on another pc with windows XP on it. All went fine with netbeans settings, etc. However, When I try to build my code, I got error:
E:\silent\kl_stuffs\jagoankomik\nbproject\build-impl.xml:461: Prev...
Hey people, i have a the following map* which is giving me lots of trouble:
Map<MetricSourceInterface, AliasesInterface>
MetricSourceInterface is an entity with simple properties.
AliasesInterface is an entity with only an Id and a list of strings.
Hibernate is creating the database schema so theres no problem with changing it whatso...
How can I go about populating a simple Java object with data from any other arbitrary object?
For example, I can end up with a Document object whose children nodes I can iterate through and I want to set same-named properties in another object with the node's values.
I work primarily in dynamic languages and I think I am hung up on how...
My current project got 2 modules ModuleA and ModuleB, inside ModuleA and ModuleB got a class call 'Student' (same class name same attributes, but for some purpose ModuleA must call ModuleB to do the actual task) . They communicate to each other through Web Services. Now I want ModuleA WS will call ModuleB proxy to do the actual task.
I...
I am looking for a way to make a video out of a java JComponent. I found ways to save components as images, but ideally I would like to be able to have the component paint to the screen and to a video file. I am hoping to find a solution that does not require libraries outside of the core JDK, but lightweight libraries might be conside...
Hello friends,
This question is about the fallouts of using SingleThreadExecutor (JDK 1.6). Related questions have been asked and answered in this forum before, but I believe the situation I am facing, is a bit different.
Various components of the application (let's call the components C1, C2, C3 etc.) generate (outbound) messages, mos...
I'm using the new experimental taskqueue for java appengine and I'm trying to create tasks that aggregate statistics in my datastore. I'm trying to count the number of UNIQUE values within all the entitities (of a certain type) in my datastore. More concretely, say entity of type X has a field A. I want to count the NUMBER of unique valu...
I'm trying send some 32 bit float data to a shader, but the results are erratic. If I test with full white (1,1,1,1) the values are all zero. This is my code for creating the texture:
gl.glTexImage2D(GL.GL_TEXTURE_2D, 0, GL.GL_RGBA32F_ARB, 512, 512, 0, GL.GL_RGBA, GL.GL_FLOAT, data);
and reading from it in GLSL:
uniform sampler2D u_t...
I want to use Flash Remoting in my Flash app that is backed by a Java server. I'm interested in what my options are for using Flash Remoting with Java. I know about BlazeDS but it seems to be fully geared towards Flex, not Flash (AS3). I'd like to make simple AMF calls, as like in the old days.
If I can I use BlazeDS for this and if yes...
How to assign a value from JavaScript to Java variable in the JSP page? Is it possible to do this?
The following is the javascript function:
function loadGroupMembers(beanArrayVal){
document.getElementById("beanVal").value=beanArrayVal;
------------I have mentioned my requirement below --------------
%%%%%%%%%%%%%%%
in...
Defining a method as
myMethod(Object... obj){}
allows arbitrary number and types of parameters to be used.
I'd love to use generics for strict definition of the number and types of parameters.
For example, Let's assume that the above mentioned myMethod(Object...) is a method in a class named MyClass and MyClass can be instantiated b...
Hi All,
I am trying to parse an XML file whcih contains some special characters like "&" using DOM parser. I am getting the saxparse exception "the reference to entity must end with a a delimiter". Is there any way to overcome this exception, since I can not modify the XML file to remove the special characters, since it is coming from d...
How do I know what version of Java is being run in Eclipse?
Is there a way to write code to find out?
Is "JRE System Library [JavaSE-1.6]" in "Package Explorer" the right version?
...
I have wsdl that needs to be interpreted by wsdl.exe (.net sdk 2.0)
This wsdl is generated on runtime by axis engine, and it is reading a wsdd file to generate this.
One of my return types have java.util.Map inside and here is the schema for a map in wsdl (just one part of wsdl)
<schema targetNamespace="http://xml.apache.org/xml-soap"...
My problem: given x and y, I need to calculate the x and y for the required joystick deflection.
This is simple when there is no joystick deadzone -- I just use the x and y with no manipulation.
When there is a deadzone, I want x=0 to be zero and x=non-zero to be the first value in that direction that is outside the deadzone.
A square...
Is there a Java SE 6 documentation that is searchable like Apple's built-in Xcode documentation?
I suppose Google could be used to search the website that the Java 6 documentation is hosted on but I'd prefer a nice app or website where I can just search for the things I want.
Or I could even just CTRL-F to find it on the page...
...