Questions tagged as 'java'

1
answer

Creating dynamic JTextPane component

I had a problem with editing labels , which was fixed using JTextPane . So I thought of creating my own component of this type, so I can pass values "dynamically", and writing a few lines, making it more object - oriented. However,...
asked by 06.08.2017 / 19:37
1
answer

iReport is missing special character when exporting PDF

I'm using iReport 3.7.4 to generate the reports. In one of the reports, I need to use an arrow, to indicate a step by step. So I found the arrow code in HTMl Entities ➜ & # 10140; , and in the field in iReport, I left Markup as HTML. When...
asked by 07.08.2017 / 14:10
1
answer

Target Unreachable, identifier [userMBean] resolved to null

I have a problem when trying to login service in my java web application. As you can see below, there is the HTTP Status 500 error stacktrace - Internal Server Error. I've tried a few things, such as clearing tomcat and rebooting the server. But...
asked by 06.09.2017 / 02:43
1
answer

java.lang.UnsupportedOperationException: Can not convert to dimension: type = 0x12

<?xml version="1.0" encoding="utf-8"?> <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.androi...
asked by 04.08.2017 / 17:10
1
answer

How to know the size of JFrame in the constructor of the same?

I need to adjust the size of the image to the space provided by jframe . Error: Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Width (0) and height (0) must be non-zero at java.awt.image.ReplicateScale...
asked by 28.08.2017 / 13:05
1
answer

Working with Date in Mysql, JPA

I'm using JPA and creating an entity to save a date within the database. So far so good, the problem is that I need to display the bank information according to the month of my date . Does it have a way of when to ask JPQL to return only...
asked by 14.08.2017 / 20:11
1
answer

How to let my WebView restart automatically every 30 m

I wanted to know how to leave my page automatically restarting every 30 minutes in the background. Anyone who can help, thank you. Public class tela2 extends AppCompatActivity implementa tela2 { private Timer t; private int TimeCounter = 0; W...
asked by 14.08.2017 / 05:53
1
answer

Case Tool Use Case [closed]

How do I create use case diagrams, diagram all the use cases, or make diagrams for each specific scenario. Eg: I have several lines of work within the system, part of stock, financial part, sales part for customers. I create diagrams with all...
asked by 12.08.2017 / 05:13
1
answer

Code redundancy in my .xhtml JSF - Primefaces

I have this table in 2 pages of mine and I ended up copying and pasting this code, the only thing I had to change was the "bean", in one I used "bean1", the other I used "bean2" p> Is there any solution to avoid this code redundancy? Or better...
asked by 04.08.2017 / 20:44
1
answer

Error: non-static method set (int, int) in MainActivity

I was copiling the codes when I got to the end and came across errors in MainActivity , I'm using API 16, does anyone help me? ** code ** import android.app.AlarmManager; import android.app.NotificationManager; import android...
asked by 09.09.2017 / 06:57