Questions tagged as 'java'

2
answers

Set a Width to the JTable columns in Java

I would like to further extend the JTable's columns because the information presented is very close and does not appear complete, you have to adjust it manually to be able to visualize all the content. If I were using model.addColumn("Nomb...
asked by 27.11.2016 / 17:13
1
answer

Android App with Retrofit consuming of api does not show the list

Well, the fact is that I just want to show the name of the countries in a list, but I do not know how to get the name only: This is the main class: listView = (ListView) findViewById(R.id.list_view); textView = (TextView) findViewB...
asked by 27.11.2016 / 12:22
1
answer

uses and function of ListString in JSP

friends I have a view that currently through a query with two parameters shows me a result, the problem is that it shows me only one result in the table, I currently receive the parameters and I send the response using object map, in the followi...
asked by 23.11.2016 / 13:21
1
answer

does the java Set data structure exist for nodejs?

I was investigating if there is any structure similar to Java SET, which does not allow duplicates in the collection. I need a structure like this to eliminate duplicates of a file I made this code but it inserts duplicates. > function...
asked by 10.10.2016 / 04:54
1
answer

How do I organize a vector of objects by their attributes in java? (without arraylist)

I need to order a Person class vector, and sort it according to age, but without using the Array public class Person { byte[] years = new byte [5]; private String name; Prueba pruebaObj = new Prueba(); private...
asked by 08.10.2016 / 01:45
2
answers

Create a program that runs on the desktop and can also run as an applet

Good, I have to make a program that can be executed both in desktop and in applet, using mvc. The question is that I do not know how to attack the program ... I have to create the main, in the instance of the constructor, and at the same time cr...
asked by 11.10.2016 / 12:00
1
answer

Modify vector inside java method

The purpose of the program is to create a Marine Life Simulator (in broad strokes). My problem is this: I have an abstract class called AnimalMarino that defines a few methods, including this one: public abstract int getVelocidad(); T...
asked by 07.11.2016 / 20:00
2
answers

Error in Java: "Variable might not have been initialized"

Here what I do is call the class "Application" to create a table, in the error of the "c" it tells me that it has not been initialized, what can I do?     
asked by 07.11.2016 / 22:49
1
answer

Pass a list of elements, separated by commas and single quotes, to the syntax of an SQL IN using JAVA code

A crude example of what I need to have an idea is the following: SELECT name,last_name FROM employees WHERE employee.name IN('sstan','Ivan Botero','Stefan Nolde','Jose Javier Segura','jose','Miguel Osorio','etc'); That is to say...
asked by 24.08.2016 / 20:30
1
answer

LinkedHashSet JSONArray Android

This is the first time that I have considered using LinkedHashSet in my Android code and I am not sure if it can be used and how to use it. I have a class (Class_1) where it is extracted from a JSONObject, using the loopj library for the conn...
asked by 02.09.2016 / 12:13