Questions tagged as 'java'

1
answer

Android studio - keep service connected to mysql

I would like to know how I can maintain a service connected to mysql from an android service and extract information. So far I make an HttpURLConnection towards a php file that makes the process, but only the service is executed only once, after...
asked by 08.05.2018 / 16:45
0
answers

Can you work using JSF without the need for a Framework? [closed]

Maybe the question is trivial or even not very well detailed in a technical way, so I rephrase the case: I'm a newbie in web development, all the time I've been used to pulling / dragging items from the elements palette to a desktop form. Now...
asked by 08.05.2018 / 05:05
0
answers

display an Object [] in a JList

I have a JFrame in which I placed a JList to visualize an arrangement, but the arrangement I get is an Object [] since I compile the code in matlab, but the result is processed in java, this is my code: private void jButtonOpenActionPerformed(...
asked by 07.05.2018 / 21:26
1
answer

Problem JButton JavaSwing

I had a question about the JButton component. To implement what I need, I use a variable number of buttons (All are equal in terms of features (button name, function etc)) and as all that is the same, I thought of implementing it as an array of...
asked by 08.05.2018 / 16:38
2
answers

Variable String does not support an image in base64

Good morning I have a library, which generates an image base64 from my JSP , that image sent servlet through a post , when I receive it I do not receive the full character information, maybe the string does not support the str...
asked by 03.05.2018 / 21:26
0
answers

Structure FTP connection using MVC model in Java

My intention is to use the MVC model that I use for the connection in my database and apply it to the connection to my FTP server, first I explain how I connect to my BD. This is the connection class belonging to the Model layer public clas...
asked by 21.08.2018 / 16:36
1
answer

How can I validate that only between numbers

This is my code. It only works for me once to validate; if I enter a data type String , when I return to enter a string it gives an error. public class BienvenidaSegundo { static String nombre; static int caso; public stati...
asked by 04.05.2018 / 00:09
3
answers

How can I align the buttons horizontally in Java?

Hi, I would like to know how I can arrange the buttons horizontally for the next window. This is my code: import javax.swing.table.AbstractTableModel; import javax.swing.event.ListSelectionEvent; import javax.swing.event.ListSelectionLis...
asked by 29.04.2018 / 16:04
0
answers

Problems with nested combobox

I have a problem with a nested combobox, at the moment of choosing the first list I should automatically load the second list with the corresponding code, but it does not, what it does is load it but I have to choose it manually, here is the ima...
asked by 30.04.2018 / 18:06
0
answers

How to avoid screen capture in my activity?

I have content in an activity (image) which has the option to download, when downloading the image will show an ad (1 every 2 min) ... I want to prevent users from taking screenshots in that activity or application and so they must download i...
asked by 05.05.2018 / 17:32