Questions tagged as 'java'

2
answers

Create JSONArray with objects?

I have 2 classes: Venda and ItemVenda . I want to create a JSONArray with all my sales and its items. I'm trying to use the JSONObject with JSONArray to create this but I can not do it. For example: Venda:{id:1, data:2015-09-2...
asked by 28.09.2015 / 21:57
1
answer

Error 404 - Not Found Spring MVC application

I'm getting the error    Error 404 - Not Found: The server has not found anything matching the Request-URI When trying to access any url of my application, the strange thing is that the index.jsp page works normally, includi...
asked by 28.09.2015 / 22:04
1
answer

Use method of another class

I need to execute a method that is in another class. I think the two are non-activity classes. The following class has a method called connect() . When this method is executed, at the end of it I want to call another method that is in a...
asked by 26.09.2015 / 14:09
1
answer

Add item to ArrayList every time an object is instantiated

I have 3 classes: Client, Account and Bank. public class Cliente { private String nome; private String telefone; public Cliente(String n, String t){ this.nome = n; this.telefone = t; } (...) + getters e setters } public class...
asked by 28.09.2015 / 19:51
0
answers

How to leave a specific character underlined in a JTextField

How to change, say, the Font of one or more characters of a JTextField allowing them to be underlined, bold, or italic? But the rest of the text would be normal. But in this case I specifically need to underline some characters of a JT...
asked by 19.11.2016 / 17:35
0
answers

want to pass my java script function to the bean when loading the page [closed]

I want to pass my java script function to the bean when loading the page, without needing the button click? I'm using the primeface remotCommand, onPoint([{name:'latitude',value:latitude},{name:'longitude',value:longitude}]);     
asked by 19.11.2016 / 19:45
0
answers

Is there any equivalent of RecyclerView in Swing?

In Android Studio, I use a class called RecyclerView , which repeats a layout as long as there is data for it, just like a list. Is there any alternative to this in Java using Swing?     
asked by 19.11.2016 / 20:48
0
answers

Send Byte command via socket to a controller in python?

Hello everyone, I'm trying to send commands to a Controller "Commbox", this controller has the purpose of opening and closing gates, traffic lights and other things. I am getting a command in Java but I need to do the same command in Python. Sin...
asked by 17.02.2017 / 13:17
0
answers

Read sqlite3 database in the Assets folder

Most examples and tutorials on Android applications around assume that you want to create and populate your database at runtime and will not use a standalone database with your application. I created a database in sqlite3 which is called FOPAGRH...
asked by 18.12.2016 / 00:10
0
answers

How do I show an already selected item in a jsf datatab that was previously edited

I'm trying to see these items that I selected on the include screen also selected on the editing screen and I'm not getting: this is my inclusion jsf: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0...
asked by 15.11.2016 / 14:22