Questions tagged as 'java'

1
answer

How do I send a string with getText from a spinner?

Hello everyone, I have a problem sending getText from a spinner, I need the selected spinner option to go to another java activity. this is the line 1 of the spinner that should send the information, and it is in java activity_main edit...
asked by 29.12.2017 / 00:32
2
answers

How to send data from one activity to another in android studio [duplicated]

What happens is that the RESULT of the SUM of the activity IngresarDatos I want to reflect it in another activity but I do not know how to do it EnterData.java package com.example.asus.crudaplicacion; import android.content.Intent; impor...
asked by 24.10.2018 / 17:41
1
answer

Write txt file with line break

I try to write a txt file, however the document writes it without line breaks. This is the method which receives a data matrix: private void guardarArchivo(ArrayList<String[]> matriz) { String[] fila = null; String lin...
asked by 10.08.2018 / 14:39
2
answers

help Servlet sending parameters

I'm trying to get the value that it picks me up from the session started, I listed the students in this table but I do not know how to capture that value captures it in value but how do I capture it in the servlet? already try the name="nIdeEmpr...
asked by 24.05.2018 / 01:38
2
answers

Close instance already created, Java - Eclipse

Good to you I am making an aplicaicon with several JFrames and in one of them there is a confirmation window, then suppose the following thing; I have: JF1. JF2. JD1. Instance JF2 from a button belonging to JF1 and from there instancio J...
asked by 22.09.2018 / 05:42
1
answer

Is there a way to create a spinner just like the html selectbox, which has a text and a value?

As I said in the question, I need the data from my spinner to have a value and text, just as it happens to be the selectbox in html. It is important to have a key value so that the user sees a readable text and I can send a number (which is the...
asked by 12.11.2018 / 08:54
1
answer

Differences and uses of javax.swing.JList and javax.swing.DefaultListModel [closed]

I have been doing a small application where I am using lists and I hit with defaultlistmodel and observing I have seen that they only change in the way of declaring the properties. The issue is that in addition to this there are other difference...
asked by 21.11.2017 / 22:10
0
answers

Use the properties of a nested list in a hashmap to save results

I'm trying to save the data of a dynamic form in a map whose value is a list of objects, the problem is that when I get to the corresponding POST method, in the map, the entryKey are all right with their corresponding objects but w...
asked by 08.02.2016 / 11:43
1
answer

Kotlin javascript dataset

I have an HTML button with a data attribute: <button data-shop-listing='{"name": "Towel", "description": "Sunny days and warm weather - you clearly need it after a refreshing jump into the cool sea.", "price": 10.00}'>Add to cart</but...
asked by 27.02.2017 / 11:31
1
answer

Calendar on Android [closed]

Good, I need to include in my application a system of attendance control, for that I need to show a kind of calendar where the assistances are shown, how could I do it to show this in an activity? I need some clue or idea to know where to start...
asked by 28.02.2017 / 00:47