Questions tagged as 'java'

1
answer

Error getting epoch in Date object

It's something basic but I'm stuck in this conversion of dates: I receive a date in String with format    10/19/2017 and I have to convert them into epoch for this I do: Date dataObjUntil = null; SimpleDateFormat s...
asked by 02.11.2017 / 18:36
2
answers

SELENIUM problem when trying to connect to the firefox driver

/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package test; import com.gargoylesoftware.htmlunit.javascrip...
asked by 10.07.2017 / 20:58
2
answers

url is not registered http //schemas.android.com/apk/res/android

I started working with recyclerview and cardview and then I had to put a dependency and when it was synchronized the build sent me this error, I already deleted the activitys and classes that I used, I also deleted the dependencies that I did no...
asked by 10.09.2017 / 23:08
1
answer

How to zoom a JPanel and its components?

I am creating a tag editor in java and I want to make the user zoom in the work area ( JPanel ) as well as the components that are inside. Here my code: Graphics2D g2 = (Graphics2D) PPanel1.getGraphics(); int w = PPanel1.getWidth(); i...
asked by 05.09.2017 / 16:21
2
answers

Line break of a second android textview

I have two textview on the same line, the two textview do not have static content, the problem comes when the second textview is loaded with the data, it takes the second line but not from the left completely. I hope you can help me. The...
asked by 01.08.2017 / 21:15
1
answer

Save in BBDD the selected row of a JTABLE

I have a small problem ... I'm trying to make my JButton "Save" save to BD only those selected rows of my JTable. the code that I have is the following: button = new JButton("Guardar"); button.addActionListener(new ActionListener() {...
asked by 17.09.2018 / 22:39
1
answer

How to create headers in word with Apche POI?

I have this code: XWPFParagraph title = document.createParagraph(); XWPFRun run = title.createRun(); title.setAlignment(ParagraphAlignment.CENTER); String imgFile = "C:\Users\Leath\Documents\NetBeansProjects\usuario_1\src\imagenes\encabeza...
asked by 10.08.2017 / 18:41
1
answer

display data from a table in mysql using a jtable

My query is as follows, I have 3 related tables (students, tutors, kinship) and a jtable which shows me the data from a database MYSQL , but I want to right click and give to the option "Data Tutor" which I have done with a jmenu...
asked by 03.07.2017 / 17:57
1
answer

Android Mediaplayer Service

I have a service that runs with mediaplayer the thing is that when you close it stops playing the song and the service restarts, I want to keep the song playing normally even if the application is closed as it is a service public class For...
asked by 12.09.2017 / 08:03
1
answer

Exception InputMismatchException

Because this piece of code throws me an error: package com.gmail.brunodiazmartin5; import java.util.Scanner; public class MiClase { public static void main(String[] args) { Scanner sc = new Scanner(System.in); double d = sc.nextDou...
asked by 10.10.2017 / 16:39