Questions tagged as 'java'

1
answer

Hibernate and object list

I'm developing my first application in java, desktop application with Netbeans and hibernate. I have tables membros and estadocivil . The member has a marital status. I mapped the classes using Hibernate and in the Members class...
asked by 21.06.2017 / 03:19
1
answer

How do I place an advert within AlertDialog? [closed]

I wanted to put an ad banner inside AlertDialog , can you do that?     
asked by 20.06.2017 / 22:57
0
answers

Netbeans with error in copyfiles

StaffIamworkingonmytccthatthisisasiteformycampusmorespecificallythefleetcontrolofit.SowhathappensisthefollowingIworkonmycampusandathomeIjustcopytheprojfromnetbeansprojetsfolderandlaponmyhomepc,howevertodayIwenttodothissameprocessandnetbeansbrok...
asked by 21.06.2017 / 02:02
1
answer

FieldSet in JavaFX

Good morning guys, can anyone tell me how to implement FieldSet in JavaFX. There is no such object in the Scene Builder.     
asked by 22.06.2017 / 14:29
1
answer

Problems with timer instantiation

Good afternoon guys, in my application I'm creating a "simple" timer but I'm having trouble executing the application. I created a class that contains two methods one of start and the other one of pause until that is right, in my java activi...
asked by 22.06.2017 / 19:05
1
answer

Unable to build entity manager factory

<persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd" versio...
asked by 22.06.2017 / 17:36
1
answer

Player Problem on mobile - webview app

I created an app in webView and its player only works when we press the play button 3 times (one to play the video, then pause and then press it again to play the video) the app link to demonstrate the error: link But the error is only i...
asked by 27.06.2017 / 18:15
1
answer

Java - Error: Can not find symbol after try ... catch (fileContent [0])

public class ShowDoMilhao { //constructor of the class public ShowDoMilhao() { } public static void main(String[] args) throws IOException { //string to hold name of txt file String file1 = "Facil.txt"; ///////////////////////////...
asked by 18.06.2017 / 19:46
0
answers

Dinner of the Philosophers using ArrayBlockingQueue

I have to solve the problem below the Philosophers' Dinner, using synchronized ; monitor (Condition, Lock); and creating a Semaphore class with ArrayBlockingQueue . The first two I was able to do, now the Semaphore class with Arra...
asked by 18.06.2017 / 06:29
1
answer

Open JInternalFrame from another

I was learning how to deal with JDesktopPane in order to use in future projects because I find this function very interesting. I tried calling a JInternalFrame of a button from within another JInternalFrame , but I did not su...
asked by 22.06.2017 / 01:03