Questions tagged as 'java'

0
answers

Is the populateViewHolder method used to receive data from the firebase database with the new Libraries?

I am building a project where I pass data to a cardview through firebase database, but the truth when building the adapter with the view holder I have the following problem protected void onStart () {         super.onStart ();         Firebas...
asked by 08.04.2018 / 13:15
1
answer

Why does Assertion Error give me?

I have an error when compiling an application that allows you to play the Baccarat game, with a class TestManoDeBacara . I have the class Carta , with its value and its type stick Enum : public enum PaloBarajaFrancesa {...
asked by 08.04.2018 / 09:04
0
answers

JavaFx - ComboBox Scrolling to the selected item

Is it possible to scroll to a selected position in a ComboBox using JavaFX? If I execute: comboBox.getSelectionModel().select(i) The record is selected and takes the focus but the scroll bar does not move to that place, if it is too...
asked by 09.04.2018 / 16:11
0
answers

java.lang.IllegalAccessError: Method 'void android.support.v4.content.ContextCompat.' is inaccessible to class 'com.google.android.gms.iid.zzd'

Trying to add firebase analytics I find this problem: (I already read and try this solution stackoverflow in English and it does not solve me)    Error log:       Task exception on worker thread: java.lang.IllegalAccessError: Method 'voi...
asked by 09.04.2018 / 18:46
1
answer

infix notation to postfix in java

I hope they are very good. I would like you to help me please with the following code: import java.util.Scanner; import java.util.Stack; public class InfijaPrePost { public static void main(String[] args) { //se lee la notacion Syste...
asked by 09.04.2018 / 18:12
0
answers

Can not I access the populateViewHolder method from my FirebaseRecyclerAdapter?

FirebaseRecyclerAdapter firebaseRecyclerAdapter = new FirebaseRecyclerAdapter (... (1) ...) {... (2) .. the onBindViewHolder and OnCreateViewHolder methods were created here. (1) I need to fill in this field to stop giving an error. (2) He...
asked by 08.04.2018 / 15:16
0
answers

How to fill the parameter of this FirebaseRecycleAdapter (... this field ...) {}?

I'm making an App where from the FireBase console I add content to the cardview of the App. I have a problem, I do not know how to fill a certain field in the firebaseRecyclerAdapter. The code is as follows: FirebaseRecyclerAdapter<Blog,...
asked by 08.04.2018 / 19:15
1
answer

Problem using Graphics with multiple Threads [Java]

I'm trying to make an application that draws me several circles in a JFrame with multiple Threads but at the time of running the program only draws 2 circles and I can not find the problem if someone could support me I leave the code below. pa...
asked by 08.04.2018 / 20:33
0
answers

How can I call a JPanel with a menuitem

I have a Jframe (MainWindows) where there is a menuItem (Inventory) with which I want to call a JPanel and that it is displayed on the screen. I'm using this code but it does not show anything or give an error: if(prd != null) { PanelLis...
asked by 12.04.2018 / 17:32
3
answers

Counter character type Twitter

I want to create a Twitter counter that counts the characters of a JTextField and subtracts them as it is written, and when it reaches X quantity, 250 for example, it turns red alerting the user (it is for a form) and do not allow sending the co...
asked by 16.04.2018 / 09:43