Questions tagged as 'java'

0
answers

Doubts with the JSObject class

"To pass an applet value to HTML, I needed to create an object of class netscape.javascript.JSObject." My question is this JSObject class is working in the current browsers? I made a code here now the applet does not appear in the browser. Is...
asked by 01.04.2016 / 19:41
0
answers

Capturing site content and storing in a database

Here the site that has the vacancies    If you can get inside it and see how it works. I need to get the titles of the vacancies and the descriptions that contain them as: Company, Area and Requirements . My question is how do I get...
asked by 04.04.2016 / 18:17
1
answer

Error in the data update method next to the bank

I am using MySQL and Java in netbeans, however the SQL string code does not update. I do not know what might be giving error, because I already checked the sql and apparently it is ok. I have in my class DAO , method update...
asked by 04.04.2016 / 22:57
1
answer

Error: make a query in dao that is an alias

This query normally works in postgreSQL: select nome as "pessoas?" from pessoa But in java I made a dao that has a method called findAlias: sql = "select nome as 'teste?' from pessoa where id=?"; Give the message:    ERROR: syntax e...
asked by 12.04.2016 / 17:16
1
answer

Do I have to see the implementation of the Java API codes?

I'm starting in Java, and I find the Java library vast, with many classes and methods that make our work easier. Even in Deitel's book he recommends using it for several reasons. I use some methods, but as I'm starting, I'd like to understand...
asked by 12.04.2016 / 20:28
0
answers

Add JComponents to a JDialog / JFrame

So I have three JLabel and JTextField to add in one panel, and two JButton and one JTable to add in another panel, so that one is underneath the other. I create a more generic panel ( pnlPrincipal ) to set its p...
asked by 13.04.2016 / 01:54
1
answer

Make a table condition type in MySql

Hello, I'm setting up a hotel bank in MySql and would like to know how to add a condition for checkin and specific checkout date so there is no duplication of reservations in the period booked by the hotel. guest. Thank you! Lizypanta     
asked by 30.03.2016 / 20:25
1
answer

Open report in another tab

I need the report, at the time the user clicks a button, run on another tab. I'm using: <p:commandButton oncomplete="history.go(0)" onclick="target = '_blank'" style="width: 200px;margin-top: 18px;float: right" type="submit" value="...
asked by 31.03.2016 / 13:55
1
answer

Time manipulation with Joda Time [duplicate]

String tempo1 = "01:30:30"; String tempo2 = "24:25:10"; SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss"); try { Date date1 = (Date)sdf.parse(tempo1); Date date2 = (Date)sdf.parse(tempo2); DateTime date...
asked by 30.03.2016 / 02:16
0
answers

Software design with rich classes and CDI

Good evening. I've been reading a lot about software architecture using rich classes, dependency injection and such. According to what I have read the ideal is the class to receive in the constructor the information it needs and receive dependen...
asked by 30.03.2016 / 00:38