Tagged Questions
Java is an object-oriented language and runtime environment (JRE). Java programs are compiled to bytecode and run in a virtual machine (JVM).
0
votes
1answer
8 views
JDBC: check stored procedure return value
I have a stored procedure on my postgresql database that return integer value. When i call my procedure form jdbc client using CallableStatement, when i call execute() method on CallableStatement ...
0
votes
0answers
7 views
Indentation for Antlr4?
I'm currently attending the course Compilers Construction and am developing a simplified Java grammar in Antlr 4. The part of grammar java everything is okay, except that it is slightly different from ...
0
votes
0answers
5 views
16-Bit RAW RGB_565 Image on Android
I am trying to get a 16-bit color image that is 80 x 60 resolution from an embedded camera (datasheet here). I am successfully able to get 9600 (80 * 60 * 16 / 8) bytes from the camera, but I have a ...
-1
votes
0answers
5 views
multiple files are failing while sending to mqseries using java
I am trying to send multiple xml files into mq (mqseries) in java(jms). It works fine untill i get a failure of one xml file during sending . after that sending of all files are failing
And if i stop ...
0
votes
0answers
2 views
Getting CXF error: javax.xml.ws.WebServiceException: WSDL Metadata not available to create the proxy
I have used CXF's wsdl2java to generate code from a WSDL file. I then build the code using the ant build xml file (also generated by CXF's wsdl2java).
When I run my code on my local Java 7 machine, ...
0
votes
0answers
4 views
Creating global file input
In my program, I already created several global variables, but it doesn't work with loaded files.
I load a .ttf file (a custom font, obviously) and create a Font-type variable (Or is it a constant?) ...
2
votes
0answers
13 views
What are safe points and safe point polling in context of profiling?
I am facing a situation where I do not see some method calls not being recorded by the VisualVM application. Wanted to find out the reason and came across this answer on SO. The third point mentions ...
0
votes
0answers
15 views
Problems trying to retrieve information from txt file
I'm stuck on one Issue in my application. I have one text file that contains one piece of code that I need to retrieve to apply into one string variable. The problem is Which is the best way to do ...
0
votes
1answer
13 views
how to pass the jTextfield to another class
i am very new to java i am trying to pass a Jtextfield to another class..
here is my code
sending the JtextField method from SellWindow class
public JTextField sendTextField(){
return ...
0
votes
5answers
22 views
Difference between protected and having no access modifier
When declaring a variable in Java,what's the difference between "protected" and having "no access modifier"? Is it the same?
1
vote
0answers
8 views
Identifying the origin of a focus request in Java Swing UI
I have a problem with a Swing application whereby focus will sometimes be gained by a text entry field for reasons that I am currently unable to identify. I suspect a race condition of some sort but I ...
1
vote
0answers
7 views
Custom JOptionPane Get “Cancel” action when overriding YES_NO_CANCEL buttons
I have a small problem trying to figure out how to check if a user presses a button in a custom JOptionPane.
My dialog is based on an inputDialog with custom texts for the YES, NO and CANCEL buttons ...
1
vote
0answers
14 views
maintain Java serialization compatibility when changing type of a single final field
I have this old convenience class for manipulating dates (yyyy-MM-dd). It abstracts away some ugliness of using java.util.Date and Calendar but I want to rewrite it in terms of JodaTime LocalDate. (I ...
0
votes
2answers
25 views
Programmatically invoke click on JLabel
I have a event to listen for mouseclicks on my JLabel like:
private void jLabel4MouseClicked(java.awt.event.MouseEvent evt) {
...
}
Is it possible to somehow invoke this programmatically?
And ...
0
votes
0answers
7 views
Easiest route to convert Java Applet to pure web application
I have a client/server based application with a rich (read large) Java applet client interface. I recently converted the client from a desktop application to an applet. This improved issues with ...