Questions tagged as 'java'

1
answer

JOptionPane layout customization

I have the following structure of my JOptionPane, with horizontal typing : Howtoleavetypingfieldsvertically?Hereistheclasscodebelow:importjavax.swing.*;publicclassJOptionPaneMultiInput{publicstaticvoidmain(String[]args){JTextFieldfieldNome=n...
asked by 09.10.2014 / 02:03
1
answer

Using Napkin LookAndFeel

I'm using the Eclipse IDE and I have this code: package br.com.caelum.argentum.ui; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.KeyEvent; import javax.swing.JButton; import javax.swing.JFrame...
asked by 08.10.2014 / 01:22
1
answer

GOTO and ACTION table generator

Regarding LR Syntactic Analyzer, I fear the following Wiki: link There is a canonical algorithm for generating the GOTO and ACTION tables. I searched, and I did not find any software that has implemented this algorithm, so that it can...
asked by 29.09.2014 / 23:53
1
answer

Comparable with Arrays.Sort

I'm having difficulty using the Comparable interface. In the TrabalhoGA class I should call the ordenaPorPontos method of the temporada2013 class that performs the comparison of the% points of this class, I need to us...
asked by 02.10.2014 / 01:31
1
answer

How to call information in an html from a .jsp page

I'm developing a good hybrid5 HTML5 mobile app and my backend will be done with Java and MySQL. I am using PhoneGap and the same one to generate the APP needs that my files are of extension .html .css .js , to generate the i...
asked by 02.10.2014 / 16:18
1
answer

Change the margin of a CheckBox dynamically

Can this attribute be dynamically changed in the java code? android:layout_marginTop I have a dynamically generated CheckBox , and I need to have a margin. Java code: CheckBox cb = new CheckBox(this); //cb.setId(); //cb.setText...
asked by 10.09.2014 / 15:38
2
answers

How to decrease the response time of an unsuccessful connection when using Ksoap2?

When the server or service (IIS) is off , the web-service response time that there is some connection failure is too long. At that time the application (Android) requests the closure due to inactivity. Can you reduce this time or otherwise trea...
asked by 02.10.2014 / 14:25
1
answer

How to open a bundled executable in the project?

I'm running a program as follows: Runtime.getRuntime().exec("C:\meuprograma.exe"); In which it works normally. But I would like to package the files (the executable and some more) inside my project so the user does not have to be manipulati...
asked by 23.01.2015 / 17:15
1
answer

AlarmManager does not cancel the scheduled alarm

I have the following code in MyReceiver : @Override public void onReceive(Context context, Intent intent){ context.startService(new Intent(context, BackgroundService.class)); } public void setAlarm(Context context,...
asked by 25.01.2015 / 12:26
1
answer

JSF accessing serial port

I'm working on a JSF system and need to send data to the client (printer) serial port. The only way is even using Applets?     
asked by 23.01.2015 / 19:32