Questions tagged as 'java'

1
answer

android: NavigationDrawer, return to the main fragment and not to the previous activity

I'm doing an app which has a Login and then enters the activity with the NavigationDrawer , I've already defined a Fragment so that with the interface starts, however when I find myself in another Fragment of the navigation a...
asked by 28.07.2017 / 22:19
1
answer

Reading packets from a server with Java sockets

I am developing a program for reading packages sent by computers to a server that has the port 7779 enabled to receive this data. For this I use sockets from Java . The problem I have is that I open the port, read the information, but afte...
asked by 28.01.2017 / 22:45
0
answers

Download files from a WebView in a Fragment in Android Studio [closed]

I have a project almost finished, which is an official application for the university. The only drawback is that the WebChromeClient does not allow it in the Fragment . In Main I have this code: Activity activity = this; webview...
asked by 28.01.2017 / 20:04
1
answer

The repaint () method is not recognized within a [closed] timer

This code works for me in the constructor of my jframe, it prints me an image in a label. Now I have a checkbox and when pressed I want to put the image for a second because of the timer but I mark error the repaint () method asks me the Netbean...
asked by 08.03.2017 / 23:03
0
answers

MercadoPago does not find payments in sandbox mode

I am having problems in the market integration payment in sandbox with java, when I make a payment (with the test cards) it is supposedly successful but when I want to access the payment information with the collection_id that returns it tells m...
asked by 10.03.2017 / 17:12
2
answers

Store a data type bool in an integer for DB

I need to store a boolean data in an integer, since I had seen that the SQLite android databases do not allow booleans. But I do not know how, it is to check if a RadioButton is marked, or vulgarly "checkeado". I tried this: int r1 = radio1.is...
asked by 08.03.2017 / 23:13
1
answer

check that one class inherits from another

I have a problem checking that one class inherits another. I have the following code: Class<Serializable> serializable = (Class<Serializable>) Class.forName("java.io.Serializable"); Class<String> stringClass = (Class<St...
asked by 19.12.2016 / 10:27
0
answers

What should be known to use backtracking and divide and expire? [closed]

Really these two concepts are important in the programming, I really took little time in programming. I know that the two topics can be extensive to answer, but what I want to achieve is that in order to implement some of these two concepts...
asked by 19.12.2016 / 17:44
0
answers

JavaFx Finder [closed]

To search a TableView that uses filtered or directly in the sql statement.     
asked by 19.12.2016 / 22:13
1
answer

Resize JPanel

Holaaa. I have a problem wanting to resize a JPanel inside a JPanel that has a Layout of the BoxLayout type. When I add to the JPanel of the main class a JPanel that contains a JTextPane, the JPanel that I add, occupies a large space. My questio...
asked by 18.12.2016 / 01:39