Questions tagged as 'java'

1
answer

JTableHeader Netbeans [closed]

Good afternoon, I would like to know how to add a custom Header in a table with more than one combined column, etc.     
asked by 15.03.2017 / 11:39
1
answer

Java 7 connection to Sql Server 2014

I am trying to connect with java 7 to sql server 2014 and I get the following error:    The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "SQL Server returned an incomplete...
asked by 01.11.2016 / 15:52
2
answers

Assign to Array result of ArrayList () Java

The method toArray of class ArrayList returns an array of objects. How can it be done to return an array of strings (StringList [])? Should it be done like this? ArrayList<String> nombreArrayList = new ArrayList<String&g...
asked by 01.11.2016 / 19:29
1
answer

Problems with maven in eclipse

I'm having problems working with maven, both eclipse and netbeans. I get an error when generating a project:    could not resolve archetype org.apache.maven.archetypes: maven-archetype-quickstart: 1.1 from any of the configured repositorie...
asked by 26.08.2016 / 09:10
1
answer

Create a window with a JTextPane and a JMenuBar to modify aspects of text

I am trying to make a simple exercise work for me in which I want to create a window with a JTextPane and a JMenuBar to modify aspects of all the text within the JTextPane (not just the selected one) as size, bold or font. I want the changes you...
asked by 06.10.2016 / 15:05
3
answers

Screenshot on android

Does anyone know how you can take a screenshot just by pressing the screen? In the layout I only have a VideoView and I want to capture what it captures at that moment     
asked by 12.10.2016 / 22:22
2
answers

Replace input string spaces

I have a method that receives a String, but I want to replace each space in the input string with a string consisting of three spaces. How could that start? With a replace?     
asked by 12.10.2016 / 22:06
2
answers

How to invest Bytes of an integer in java?

I have to go through a range of IPs, the problem is that the format that the function returns is inverted. The format that the function returns is: First IP 108736 00000000 00000001 10101000 11000000 0 1 168 192 L...
asked by 22.03.2017 / 13:32
1
answer

Efficiently closing a JFrame in Java

Good friends, I have a question for you. Does anyone know how to close a JFrame and in doing so release the memory that was used in that window? Pass the following, I have an application in which I log in and open a JFrame that acts as the main...
asked by 27.03.2017 / 21:23
2
answers

How to draw up different repeated attributes?

Good day, I have a ArrayList with a series of data: => 158 => 158=> 158=> 158=> 158=> 172=> 217=> 217=> 222 => 222=> 22 => 222 How could you group the numbers 158 in a list, in another list...
asked by 06.04.2017 / 16:33