Tagged Questions
Java is an object-oriented language and runtime environment (JRE). Java programs are platform independent because the program execution is handled by a Virtual Machine called the Java VM or JVM.
0
votes
0answers
2 views
Accesing SimpleCursorAdapter from all methods
Hoping this is a simple one,
I am trying to set a 'SimpleCursorAdapter' object variable within my class so that all of the methods can access it, all very standard stuff. At the moment I'm getting ...
0
votes
0answers
6 views
Multi-Threading & Google App Engine Servlets
On Google App Engine (GAE) it is possible for frontend instances to create up to 10 threads to maximize throughput. According to this page, such multi-threading can be accomplished as follows:
...
1
vote
0answers
15 views
How to override a loop fetching messages in a method
I have a Bluetooth server receiving data from a client, a mobile phone. The code I'm using looks the following
@Override
public void run() {
try {
this.localDevice = ...
0
votes
0answers
8 views
IntelliJ IDEA 12 - Android GUI designer doesn't successfully change app theme
The Android GUI designer in IntelliJ has a dropdown for selecting "Framework themes". The problem is, changing it has no effect on what shows up in the emulator when I test my app. No matter what is ...
0
votes
3answers
24 views
Using user-inputted characters in If/Switch statements
I am taking my first Java class, and am having a hard time finishing this assignment.
The assignment itself is quite simple. All I have to do is prompt the user to input an integer, a character, then ...
0
votes
1answer
10 views
Displaying a series of pictures (JPanels with images) in a horizontal sequence
I have been looking for a way to display images on a JPanel in a grid-like fashion, and came across this solution. The code works very well but when I attempted to modify it by using jpg images ...
0
votes
0answers
16 views
WifiManager gets paused
I run my service with AlarmManager repeatedly and I'm facing a strange situation. Sometimes my service is paused when it's trying to do a WifiLock. After this situation, the rest of the code isn't ...
1
vote
0answers
5 views
Is it possible to track file poiter (document position) with XML API?
I want to index XML file by IDs of its main level entries. I plan to parse entire document, extract ID from entry and index it (remember file position of opening tag < and position of closing tag ...
0
votes
1answer
17 views
XmlHttpRequest status=0
I have this ajax call from a javascript file and I want to pass as a parameter the id of the user that I want to delete:
function eliminaUtente(id,nome){
if (confirm("Sei sicuro di voler eliminare ...
0
votes
1answer
17 views
JTabbedPane Component takes up entire window
I'm new to Java and the entire swing development. I'm working on a Window with three tabs and adding each component to those tabs. I started by adding a textfield to the 3rd tab, but it's taking up ...
0
votes
1answer
23 views
How to pass unicode VM arguments with eclipse?
I'm not able to read unicode strings passed as VM arguments, if I launch the process from Eclipse IDE.
For example:
ArrayList<String> commands = new ArrayList<>();
commands.add("java");
...
0
votes
2answers
40 views
Getting attributes values from XML in Java
I am trying to parse some data from the following site, to an Android App which I am creating
TFL Tube Data
The data in this feed is constantly updated and can hold anything from nothing to 15/16 ...
0
votes
0answers
14 views
Spring MVC - Dynamic Error Handling Page
Is there a way to handle all possible error codes while still passing the code to my .jsp? Here I have a single error-page passing 404 where it is added to the model. Rather than adding an error-page ...
-1
votes
1answer
48 views
Array doesn't work read cant explain too much too explain
Wrote a program to validate the amount of seats adjacent in a row. The seats are either booked or available, represented by 0 or 1. The program works for the most part. If the desired amount of seats ...
0
votes
1answer
21 views
frame.repaint() not working properly
I am trying to make a Java application which on Clicking a button, displays random colors in the Panel for a particular time duration.
But my problem is that after clicking the button the color of ...