Questions tagged as 'java'

2
answers

Android Studio: The opening quotes should be used for the 'X' attribute associated with an element type 'x'

The following error occurs to me and I do not know why:    Error: Execution failed for task ': app: processDebugManifest'.   com.android.manifmerger.ManifestMerger2 $ MergeFailureException: org.xml.sax.SAXParseException; lineNumber: 17; colum...
asked by 31.08.2017 / 13:43
1
answer

I have a doubt that in the airplane class create an arrangement that has maximum capacity passengers being different classes [closed]

Avion public class Avion{ private int matricula; private String modelo; private String marca; public Avion(){ } public Avion(int matricula, String modelo, String marca ){ this.matricula=matricula; this.modelo=modelo; this.marc...
asked by 09.10.2017 / 03:15
1
answer

Create Button to return to the Android studio application

I have 2 Activities: Mainactivity.xml and Messages_predet.xml I have a button that directs me to the second activity without problem and it will send other activities, but in each one I have to place a button (imagebutton) that will bring me...
asked by 17.08.2017 / 20:49
1
answer

JavaFX: Css or Class

I would like to have some guidance about the JavaFX CSS, the question / problem is this: I'm trying to create the Hover effect in an ImageView which starts with a opacity of 0.5 ; the question is to create a Style Sheet which calls...
asked by 22.08.2017 / 05:13
1
answer

JMenu Transparent Bar JAVA

I have a panel and inside a JMenuBar and I want to make this transparent, but it comes out with a gray background and I can not change it. I put it opaque but it does not work nor does it change the background. I tried this code but it doe...
asked by 03.08.2017 / 19:08
1
answer

Error connecting Java to SQL Server with JDBC

Good morning, I have the following code public class main { private static Connection cn; public static Connection getConexion() { try { Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");...
asked by 11.08.2017 / 22:29
1
answer

Error in Java with Exception in thread "main" java.lang.RuntimeException [duplicated]

I have the code import java.awt.*; import java.awt.event.*; import javax.swing.*; //Esta clase muestra un cuadro de diálogo para introducir Servidor. public class ConnectDialog extends JDialog { // Estos son los tipos de servidor de c...
asked by 09.08.2017 / 21:02
2
answers

Obtain higher value element of a HashMap

I have a Hashmap which keeps the brand of the car and the times it repeats in a chain, Map<String,Integer> sh = new HashMap<String, Integer>(); If I make a route to Hashmap I get the following result: code: fo...
asked by 22.06.2017 / 10:56
1
answer

Problem with columns in Primefaces

I have a CRUD made with Primefaces, it works great except for one incident that I hardly noticed: It works fine, but I noticed an incident, when selecting a column with ColumnToggler: Disappears normally: But if I chan...
asked by 26.06.2017 / 19:07
4
answers

Collect objects from an ArrayList and load them into another

I am trying to solve a problem. I have a ArrayList<Personas> and I want to collect all the records that I have in the field numeroPersonas and generate another ArrayList . First I created a ArrayList<String>...
asked by 19.07.2017 / 18:53