I was trying to add JSlider to JPanel but it does not appear.
Could you tell me where I'm wrong?
import java.awt.Dimension;
import javax.swing.BorderFactory;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.s...
I have the following code for testing (Java language):
public class Teste {
static int n = 10;
static int[] vB = new int[10];
public static void exibir(){
for (int i = 0; i < n; i++) {
System.out.print(" " + vB[i]);
}...
I would like the TabPanel area that does not have a tab to have a border as the image below.
Currently my TabPanel is like this, no border to the right of "Enter"
Iwouldlikeittolooklikethis,butIdonotknowwheretoputinstructionfromtheborder,...
I'm trying to add 4 panels so that they stay one below the other. So I decided to use BorderLayout , along with "positioning" ( NORTH , SOUTH and etc), passing index , however, it ends up jumping the second panel.
Does...
I have a class BancoDeDados and it contains two methods: conexao and addDespesa . The conexao method connects to my local database. The addDespesa method adds values to one of my tables, but it can not "c...
I'm studying Java EE and I came across a bug, if anyone knows the answer I appreciate it.
I have my form:
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:f="http://xmlns.jcp.org/jsf/core"&g...
I'm trying to create an algorithm that converts base 10 to base 2.
It's apparently converting, but it's not returning the right binary value.
package basicojava;
import java.util.Scanner;
public class Ex13 {
public static void main(String[...
I'm using JDK 8 and I need to use the javax.annotation.Nullable library, but eclipse returns an error saying it does not exist ..
Does anyone know how to get it or what version of the JDK does this library contain?
I have some issues related to encoding. Both in eclipse and Visual Studio Code are pointed to UTF-8.
When I repair and save using eclipse, it works fine. But when I save in VSCode, encoding misconfigures.
Here's an example:
I use eclips...