Questions tagged as 'java'

2
answers

Continue if it is a letter

Good morning, I was wondering if it is possible to force the user to put a letter or not advance. With an int it would be something like this: int x = 0; while (x < 1){ if(lector.hasNextInt){ int numero = lector.nextInt();...
asked by 03.01.2018 / 20:43
0
answers

Create online command program that receives arguments type -xt in java

Good evening, I am creating a Java 1.8 program that runs on command line. The idea is to be able to distinguish between a function and the parameter of the function, for example: cdbprincipal -u juan -p 1234 co -d client -x -t In this e...
asked by 31.12.2017 / 06:17
0
answers

Upload files from java to Onedrive

Good morning, I am making an application to manage emails and I would like to know if from java there is a way to upload the attachments to an Onedrive account. Surely you can imagine, if so, that library should have to do so or where you could...
asked by 31.12.2017 / 12:19
2
answers

Transparency of a JButton

good evening. I'm trying to create a transparent button with the setOpaque () method and I can not. Anyway I'm wrong method, who knows how to do it?     
asked by 30.12.2017 / 21:11
1
answer

Compare substrings within a arraylist in java

My question is how can I find a string that is repeated within an arralist? I am making a system that is able to search any file name repeated within a specified route, to do this I lift everything on the route and charge it in ArrayList&...
asked by 03.01.2018 / 19:16
0
answers

Error: "The type java.io.ObjectInputStream can not be resolved. Is it indirectly referenced from required .class files?

When I run my Servlet in Eclipse , this error occurs:    "The type java.io.ObjectInputStream can not be resolved. It is indirectly referenced from required .class files" For the web application to be executed, I downloaded Apac...
asked by 21.12.2017 / 18:07
0
answers

Rotate content of a JLabel in java

I have an application which consists of a JPanel , in that Panel I can add components of type JLabel which contains a text. I need that those jlabel can be rotated when the following button is pressed: I have tried t...
asked by 21.12.2017 / 19:43
0
answers

How to obtain the value of the spinners that have been "inflated" from a layout, in a certain number of times?

Good, these days I had a problem, I will use inflate to inflate a layout into another layout, the layout that contains a Spinner insert but the problem I have is that when I want to get the id of the spinner that insert so be 4 or 10 the...
asked by 04.01.2018 / 22:17
1
answer

Print Hello World using KPL in java

I try to send a Hello World to a Zebra thermal printer model KR203 , these printers use the language KPL (Kiosk Printer Language), when printing a test page it goes out correctly but with my code it stays in: "Printing ...". This is my cod...
asked by 04.01.2018 / 17:50
0
answers

conversion to a data type?

Good I am doing the manual mapping of the classes (tax), the problem is when I want to save an entity. ' public static <T> Object setEntity(T entity, Map<String, String> params) throws Exception { Class c = entity.getClass()...
asked by 04.01.2018 / 21:04