Questions tagged as 'java'

1
answer

Upload applet via javascript

I have a java web start project (a applet more precisely) and want run (display applet ) with javascript . In Chrome there is a way to run the applet, but you need to click the link. I want a function (it can be jquery...
asked by 30.05.2016 / 21:33
1
answer

CSS and JS are not being applied to the project in Spring MVC (config via java)

I'm a beginner with SpringMVC and I'm learning through Spring MVC (Master the main Java web framework, by Alberto Souza, home code). Before starting with Spring, I created a Maven project and implemented the frontend and the persistence part...
asked by 01.06.2016 / 06:15
1
answer

How to validate jcomboBox before saving

I have the following problem, I am trying to validate these jcombobox, I want that if the user does not select a jcombobox item from the movie, a message appears: "Select Movie", if already the client, a message appears: Select the Client "and i...
asked by 26.11.2016 / 13:03
1
answer

Why should I create a static method and not one that could instantiate the class and use this method? [duplicate]

I really do not see a difference in these two uses of methods. Could someone be more specific with me and let me know about this?     
asked by 30.11.2016 / 14:00
3
answers

Upload a list of Enums

I have selectOneMenu like this: <p:selectOneMenu id="diminui" value="#{naturemb.nature.diminui}" effect="clip"> <f:selectItems itemLabel="#{naturemb.carregarAtributos()}" itemValue="#{naturemb.carregarAtributos()}" /> </...
asked by 18.11.2016 / 16:31
1
answer

Go through array and find a character other than a number

The idea is to receive a 4-digit number and then perform a variety of accounts but there is an entry condition: If in the middle of the 4 digits is a character other than a number then I need to print it. No use of methods. I can not make...
asked by 20.11.2016 / 22:31
1
answer

How do I add a background image to a Jframe?

I'm trying to change the background image of my JFrame, but I'm having difficulties. Here is the code: public class teste_tamagotchi extends JFrame { private JPanel contentPane; /** * Launch the application. */ public static void main(Strin...
asked by 14.10.2016 / 17:14
2
answers

How to search the database with three types of users?

Hi, I'm doing a college project, it's an internship site project, it has to be developed in Java WEB with database. It has three types of users, the student, the company, and the administrator. I would like to know if there is any way I can log...
asked by 19.10.2016 / 14:46
1
answer

Use of external class with error (non-static method)

I created an external Class tag to leave some methods that I always use, but it is giving error when using them, / em>: package com.hs.gui.testelayout.util; import android.support.v7.app.AppCompatActivity; /** * Created by Gui_j on 25/04/...
asked by 25.04.2016 / 21:27
1
answer

p: editor primefaces tabindex does not work

In a .xhtml view I use p: firstfaces editor <p:editor id="idDescription" tabidex="2" > ... When the tab key is pressed, after being in field 1, tabindex="1", it will not go to the next one of the sequence, in that case it is idDescr...
asked by 26.10.2016 / 17:34