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
0answers
2 views
Need to get a property from stub to the LogHandler without interchanging the values in multi-threaded environment in axis2 java
I'm using AXIS 2 to call WS methods using a stub called ChannelConnectServiceStub.
Generating stub and the ConfigurationContext :
public class TestWSClient {
private void init() throws ...
0
votes
0answers
12 views
how to insrt another element in xml using java
I have following xml document
<?xml version="1.0" encoding="UTF-8"?><cinemas>
<cinema dirid="d1" proid="p1" talk="hit">
<name>'telugu'</name>
...
0
votes
0answers
8 views
Java method not found in ColdFusion
I am implementing GoCardless into my ColdFusion application by using their Java library and have encountered the following error:
java.lang.NoSuchMethodError: ...
0
votes
0answers
9 views
accessing the welcome page of a jsf app with url parameters
I need to access the welcome page of my Jsf application like this:
http://www.myjsfapp.com/index.html?param=value
When I call the url above, I get a 404. How can I fix that?
0
votes
1answer
13 views
entering chinese value but show garbage in mysql workbench
private EntryContentTable entryContentTable ;
private String ent_content_type;
private String entry_con_val;
private String entry_con_tag;
private int ent_con_hide;
public String execute(){
...
3
votes
4answers
39 views
Select a particular type of file in java
i am selecting files in java using the following code
File folder = new File("path to folder");
File[] listOfFiles = folder.listFiles();
now what to do if i want to select only image files.
0
votes
0answers
4 views
Arabic Typesetting font slowers my JTextArea, JTextPane and JTextEditor
I am using JTextArea to show heavy text in Urdu, Arabic and English language in Java. The problem is that my GUI freezes for 12-15sec when I use Arabic Typesetting font for JTextArea. I am getting ...
1
vote
5answers
23 views
how to remove unicode spaces from String returned by reader.readLine()
I when i use reader.readLine(), the string length is always 80 chars and after the main string unicode spaces are padded up.
Is there a way to remove those unwanted characters.
...
0
votes
1answer
15 views
Java J2SE Code Compatibility in any OS
I am in a confusion now. I am developing a java project in windows platform. but now, the problem is how can I get to know if my all codings (Java J2SE) will work in any OS? In my codings there are ...
1
vote
3answers
20 views
Sharing data and forcing locks between threads in Java
A friend and I are making a game engine, in which two AI's are fighting each other. We are trying to set up the game engine thread in such a way that the AI threads cannot do things like slow down the ...
0
votes
1answer
30 views
I get [Ljava.lang.Object;@ instead of data on my JTable
am trying to fill a JTable form from an existing Object[][][] Array the problem that i all the data or containing the [Ljava.lang.Object;@ instead of my (integer) data even though i mad a ...
0
votes
2answers
38 views
Fill matrix with binary numbers, regular and gray coded
I have a matrix that holds 1:s or 0:s, creating binary numbers. Its width is n. For n = 2 and n = 3 it would look like:
00 000
01 001
10 010
11 011
100
101
110
111
and so on. ...
1
vote
3answers
18 views
Implementing Search Button on my Keyboard
I'm trying to implement a search button in place of the regular enter button on my inbuilt android keyboard. I tried doing:
resultView.setImeOptions(EditorInfo.IME_ACTION_SEARCH);
@Override
public ...
0
votes
1answer
30 views
Eclipse : Cannot generate a serial version ID
I have an issue with Eclipse 3.6 (Helios) :
Anytime I want to generate a serial version ID (serialVersionUID) for a class that extends a serializable class, I get the following message :
The ...
0
votes
4answers
22 views
Do variables/flags can be affected by another thread on a non-synchronized method?
For example I have a non-synchronized method like this:
public void nonSynchronized(){
boolean flag = false;
if(/*some condition*/){
flag = true;
}
//more line of ...