Questions tagged as 'java'

2
answers

Problem in the algorithm

   Statement: Read 3 integer values and sort them in ascending order. At the end, show the values in ascending order, a blank line and then the values in the sequence as read. public class ex10 { public static void main(String[] args){ Sc...
asked by 09.06.2017 / 00:10
1
answer

Change commandButton color?

I would like to change the color of a commandButton, actually several, I wanted to leave set "edit", "delete" ... etc My code looks like this. <p:commandButton icon="ui-icon-trash" actionListener="#{MBFabricante.prepararExcluir}" onc...
asked by 08.06.2017 / 03:14
4
answers

How do I insert a button after a listview?

Hello, I need to insert a button right after my listview. That is, when I finish sliding my listview will have a button at the end. I'm trying to do as follows: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"...
asked by 08.06.2017 / 20:20
1
answer

How do I get the maximum value from a Java circular list?

How can I get the maximum value of a circular list that uses a sentinel node?     
asked by 09.06.2017 / 00:34
2
answers

Image jsf java

I want to put an image on a JSF page, netbeans, but the page does not display the image. I'm calling the image in my code like this: <h:graphicImage library="resources/imagens" name="LojaRoupas.jpg"/> My project structure looks lik...
asked by 27.04.2017 / 03:34
1
answer

Global control for ExecutorService

Rodo software locally in Java SE, basically it is the synoptic of a field equipment, and can be controlled by this software. The user has several functions within it, being able to call, change status, settings, etc. Each function is performe...
asked by 15.05.2017 / 13:40
1
answer

how to order JPanel in different positions?

Which Layout manager should I use to be able to position the panels as in the illustrative image below. Edit: I have the PanelX Class, which I set in JFrame as position SOUTH , inside this class I have 2 panels (Panel 02 and 03),...
asked by 27.06.2017 / 18:10
1
answer

FriendlyChat - date in messages [closed]

Implemented in my Android Studio project FriendlyChat available in codelab. But in the messages there is no date and time. How to implement the date and time in this project? Here are the Friendly Chat codes Could anyone help me?     
asked by 28.03.2017 / 03:12
3
answers

Doubt in CRUD, I am having difficulty reading the keyboard data

I'm a beginner in Java. I am creating a CRUD from a library, but I have a question: when I create and instantiate a new library in main , how do I read the data of the author typed by the keyboard? Since% author%, and author class are i...
asked by 23.06.2017 / 20:55
2
answers

GridView scroll slow, heavy,

I'm trying to create an app that is sort of a gallery. Search for photos on your phone and show it to the user. The app is already working, but it happens that the gridview scroll is slow. I do not know what to do to try to improve perform...
asked by 30.03.2017 / 13:11