Questions tagged as 'java'

1
answer

Enter Password to continue

Note: I do not speak Portuguese. This text was translated before it was posted and the translation was reviewed by other users. I'm using Netbeans 8.0.1. For days I've been looking for a solution to this. I've already tried JDialog...
asked by 30.11.2014 / 03:02
1
answer

How to increase the text size of a WebView?

My app reads from RSS. but what bothers me is the letter that is small, I want to leave it a little bigger than to be visually "right" by default. It is like this: ButIwanttomakeitbiggertogetbetterreadingoftheuser.Forexample: Code: Detai...
asked by 01.12.2014 / 00:54
4
answers

How can I replace String.isEmpty () in Java?

I have the following: data = new Json().execute(URL).get(); System.out.println(data); if (!data.isEmpty()) { //erro neste data.isEmpty I have an error:    has an error: Call requires API level 9 (current min is 8): java.lan...
asked by 13.07.2016 / 05:30
2
answers

How to number the alphabet and add your letters to get a result for each written word?

I wanted to get the result of words with their added letters ... Example: a=1 b=2 c=3 if I type the word "bac" the result would be "6". Because you have added the 3 letters a+b+c=6 . I tried this code but it d...
asked by 13.09.2016 / 01:55
4
answers

String manipulation - split ()

Is there any way to give split() to string and on the same line get the position I want? For example: String nome = "Dan Lucio Prada"; String sobrenome = nome.split(" "); //aqui quero pegar só o sobrenome [Prada]     
asked by 18.09.2015 / 22:01
1
answer

Thread Synchronization in Java (synchronize collections)

I have set a Thread in Java in which I want to simulate airplanes arriving and departing from the airport, class Aviao contains only number and 10 passengers public class Aviao { //numero de Aviao private int numeroAviao...
asked by 28.11.2015 / 23:52
0
answers

Save multiline text in Blob field in SQLite [closed]

I would like to help with this issue of saving% multiline in a blob field in SQLite database, because when I add in EditText in the database it saves the texts in Blob Editor with dot end Text Editor of the blob, only saves the fi...
asked by 17.12.2015 / 11:52
1
answer

Printing text and image on Zebra printer

I used the "Zebra Designer" to generate a "code" for the Zebra printer to interpret, however I do not know how to add an image in the middle of that print dynamically, like ... I have a tablet that the customer can subscribe to directly on your...
asked by 04.11.2015 / 19:55
2
answers

Compile and execute project via command line

I have an Android application developed in Eclipse. I know I can compile and run a project from the console , however I do not know how to do this. The basic steps for compiling a program JAVA is to save with the same class name follo...
asked by 16.09.2016 / 21:27
1
answer

How to "limit" a JComboBox according to the selected item?

I have a JComboBox , and I limit the size of it, with the following code: jcb.setPreferredSize(new Dimension(100, 21)); But I wonder if there is a way that, after I choose an option, the content is completely displayed. What happens i...
asked by 30.10.2016 / 00:19