Questions tagged as 'java'

2
answers

Changing index.jsp dynamically without reloading the page

In my index.jsp I have a table that in one of its cells and an iframe that displays one of my jsp, and depending on the type of action taken by the user it changes which and the page displayed inside the iframe, I would like know if you can do t...
asked by 19.11.2014 / 14:45
2
answers

Public IP Capture Program

I need to implement in my program a method to capture the public IP of the user ... remembering that this IP must be stored, even before the user establishes any type of connection. The client running the program should call a method to captu...
asked by 20.11.2014 / 01:21
1
answer

Create graphical interface using MigLayout

I need to create this graphical interface: ThelastcodeItriedwasthis:(butthesettingsarenotcorrect)frame.setLayout(newMigLayout("wrap","[grow]","[grow][]")); panelInfo.setLayout(new MigLayout("")); panelInfo.add(new JLabel("tessssssstteeetsss...
asked by 18.12.2014 / 18:24
1
answer

IllegalArgumentException when adding components to JFrame

I'm doing a Sokoban game project, and got to the point where I created 2 JButtons to select the level. Now when I try to run a program a mistake. I created both the buttons and the action in a class Buttons and called it this class in another cl...
asked by 24.06.2018 / 14:02
1
answer

Error in Netbeans using Java: "error: diamond operator is not supported in -source 1.5"

I'm trying to use a List of List s in Java in NetBeans for the first time: List<List<String>> listao = new ArrayList<>(); But it has a compile error on the line where I have the list:    error: diamond ope...
asked by 23.07.2018 / 02:58
1
answer

Call Java class inside Oracle

I would like to know if it is possible to call a Java class within the Oracle database. I have already installed the JVM inside the Oracle server, but I can not compile the Java class. Does anyone know of any way I can do this?     
asked by 13.08.2014 / 16:44
1
answer

Get Id from an object in the combobox

In a Frame for car registration, I have a combobox1 with car brands and another combobox2 with the models, when I choose a brand in CB1 only appear in CB2 the models related to that brand. Tags and templates are bank tables, which are used by a...
asked by 15.08.2018 / 20:53
1
answer

Sorting an Array

I have my class ItemList public class ItemListPropaganda { private int iconeRid; private String texto; private int valor; public ItemListPropaganda(String texto, int iconeRid, int valor) {...
asked by 15.10.2014 / 18:28
1
answer

Error displaying web images in java android

I'm trying to display web images in a ListView , but they appear out of order, in the wrong lines, and change positions with every Activity update. Activity : public class ListarProdutosActivity extends Activity { DataBaseHandl...
asked by 20.10.2014 / 16:41
1
answer

Invert characters of a String

I have a code that I made to invert a String, but it does not match what I need. I need it to convert the order of the characters of each sentence. For example: It converts "Hi everyone!" in "real life". And what I need is for him to turn int...
asked by 14.06.2018 / 19:39