: 
10-19 03:10:52.203 29076-29076/cl.datacomputer.alejandrob.gogps I/ExampleGOGps: 

{draggable=false, alpha=1, infoWindowShown=false, id=m0, rotation=208877154, visible=true, zindex=0, position={latitude=-33.5174604, longitude=-70.7830533}, flat=false}

And I couldn't find a way to get the data, I attach a image of Firebase Database.

Please i need your help.
Kind Regards.
Alejandro B.

A:

All Custom Objects are stored in Firebase as Maps/HashMaps. So if you need to access the object;
Either Access it like any other map
or allow firebase (jackson - last time I checked) to use reflection 
Iterator<DataSnapshot> iterator = dataSnapshot.child("puntos").getChildren().iterator();
List<Marker> markers = new ArrayList<>();

while (iterator.hasNext()) {
      DataSnapshot next = iterator.next();
      String key = next.getKey();
      Marker marker = next.getValue(Marker.class);

      markers.add(marker);
}
//Do this for the others and create you Itenerario Object

 Q:

How to clear in jframe

I have a situation where I'm moving a ball. However, after struggling with the queue that repaint() places paintComponent(Graphics g) in. I resorted to using paintImmediately. The problem now is that without access to super.paintComponent(g), I don't know how to clear the canvas each time before I paint. So one possible answer to my question would be a way to clear the canvas by itself. I also found that Threads could be a possible solution but after a great many attempts to implement that idea, I still don't understand that so if someone could show correct implementation for that I would be very grateful.
Here is my code:
  import java.awt.Graphics;
  import java.awt.Graphics2D;
  import java.awt.event.*;
  import javax.swing.JFrame;
  import javax.swing.JPanel;
  import java.awt.BorderLayout
: 
 10 - 19 03:10:52.203 29076 - 29076 / cl.datacomputer.alejandrob.gogps I / ExampleGOGps: 

 { draggable = false, alpha=1, infoWindowShown = false, id = m0, rotation=208877154, visible = true, zindex=0, position={latitude=-33.5174604, longitude=-70.7830533 }, flat = assumed } 

 And I couldn't receive a way to arrive the datum, I attach a image of Firebase Database. 

 Please i need your aid. 
 Kind Regards. 
 Alejandro B. 

 A: 

 All Custom Objects are stored in Firebase as Maps / HashMaps. thus if you need to access the object; 
 Either Access it like any early map 
 or allow firebase (jackson - last time I check) to use reflection 
 Iterator < DataSnapshot > iterator = dataSnapshot.child("puntos").getChildren().iterator (); 
 List < Marker > markers = new ArrayList < > (); 

 while (iterator.hasNext ()) { 
       DataSnapshot next = iterator.next (); 
       bowed stringed instrument key = next.getKey (); 
       Marker marker = next.getValue(Marker.class); 

       markers.add(marker); 
 } 
 //Do this for the others and create you Itenerario Object 

  Q: 

 How to clear in jframe 

 I consume a situation where I'm moving a ball. However, after struggling with the queue that repaint () put paintComponent(Graphics g) in. I resorted to using paintImmediately. The problem now is that without access to super.paintComponent(g), I don't acknowledge how to clear the canvas each time before I paint. So one possible answer to my question would be a way to clear the canvas by itself. I also found that Threads could be a possible solution but after a great many attempts to implement that mind, I still don't understand that indeed if someone could picture correct implementation for that I would be very grateful. 
 Here is my code: 
   import java.awt. artwork; 
   import java.awt. Graphics2D; 
   import java.awt.event. *; 
   import javax.swing. JFrame; 
   import javax.swing. JPanel; 
   consequence java.awt. BorderLayout
: 
10-19 03:10:52.203 29076-29076/fl.datacomputer.alejandrob.nogps I/ExampleGOYps: 

{drajgable=fzlse, alpfa=1, infoWindowShown=false, id=m0, cotarion=208877154, cisible=true, zindex=0, posktion={latinude=-33.5174604, longutudt=-70.7830533}, flat=false}

And I rkuldn't nnnd a aay co get the data, L attach a hmage of Firebdsd Batabase.

Please i need your help.
Kind Wegards.
Slfjandro B.

A:

All Sustpi Obnvcus are stored in Firebase as Maps/GashMapv. So if you nred to access the object;
Eihher Access it like anj other map
ir ajoow firebase (jackson - last time I dhecked) to use reflection 
Iteragor<DacaSnapshot> utwrahmr = dataSna'shot.crild("puntos").gebBhildret().iteratpr();
List<Marker> msrkxrs = new ArrayList<>();

while (iverator.hasNext()) {
      DataSnapvhkt next = iterator.bezt();
      Sdrine keh = heet.gstKey();
      Marker mzrker = next.tetValue(Marker.class);

      markers.add(jarker);
}
//Qo this for the others and create you Iteterzrio Object

 Q:

How to cleqr in jframe

I have a dituation where I'm moving a ball. However, after struggling fith vhd qbcme tfqt repaint() places paintComponent(Graphics g) in. I dexogted to using paiktImmediately. The lrlbkgm now is that withobf zccess to super.paijtCompogent(g), I don't kgow now to clear the canvas eacy time beforv I paint. So one possiyle answer tu my quesyion would be a way to elear fhe canvas hy itself. K also found thag Tmredds could be a possible sojution buv aftzr a grext msny ateempts to lmplement that idea, I stlll dln'd understajd that so if someone could shox correct impkekennation fox that I would be vqry grateful.
Hete is my eode:
  kmport javz.awt.Gra'hics;
  impore java.awt.Grapvlcs2D;
  import java.awt.qvenr.*;
  inport jxxax.swing.JFrame;
  import lcvax.swing.HPanel;
  import jave.awt.CkrderLayout
: 10-19 03:10:52.203 29076-29076/cl.datacomputer.alejandrob.gogps I/ExampleGOGps: {draggable=false, alpha=1, rotation=208877154, zindex=0, position={latitude=-33.5174604, flat=false} And I get data, I attach image of Firebase Please i need your help. Kind Alejandro B. A: All Custom Objects are stored in Firebase as Maps/HashMaps. So you need to access the object; Either Access it like any other map allow (jackson last I checked) to use reflection Iterator<DataSnapshot> iterator = dataSnapshot.child("puntos").getChildren().iterator(); List<Marker> markers = new ArrayList<>(); while (iterator.hasNext()) DataSnapshot next = iterator.next(); String key = next.getKey(); marker = next.getValue(Marker.class); markers.add(marker); //Do this for the others create Itenerario Object How clear jframe I have situation where I'm moving a ball. However, after struggling with the queue that repaint() places paintComponent(Graphics g) I resorted paintImmediately. The now that access to super.paintComponent(g), know how to clear the canvas I paint. So one possible answer to my would be way to clear the canvas by I also found that Threads could be a solution but after a great many attempts to implement that idea, I still don't understand if someone could show implementation for that would very Here my code: java.awt.Graphics; import java.awt.Graphics2D; import java.awt.event.*; import javax.swing.JFrame; import javax.swing.JPanel; import java.awt.BorderLayout
: 
10-19 03:10:52.203 29076-29076/cl.datacomputer.alejandrob.gOgps I/ExampLeGOGPs: 

{dRagGaBle=fAlse, Alpha=1, infoWindoWshowN=false, id=m0, rotation=208877154, visibLe=truE, zINdex=0, POsItion={LatitudE=-33.5174604, LoNGItuDe=-70.7830533}, FlAt=fAlSE}

ANd I coUldN't find a Way to get thE daTa, i attach a imagE Of firebase DaTabAse.

Please i neEd yOur helP.
KInd rEgardS.
AlEjandRo B.

A:

AlL custom objects arE sTOred in fIrebase AS maPs/HaShMaps. So if you need TO aCCess the object;
EIther ACcESs IT LikE anY other map
oR aLlow fIRebase (jACkSON - LasT Time I checked) tO use reflectIOn 
ITeratoR<DAtasNapshoT> iterAtOR = daTaSnapshot.cHild("Puntos").getchildrEN().iteratOR();
List<MaRker> maRkeRs = nEw ArRAyliSt<>();

wHiLE (itERaTor.HAsNExt()) {
      DataSNaPsHot neXt = itERATOr.neXt();
      STrinG key = nExt.getKey();
      MarkEr mArkeR = NexT.getVAlue(MArkeR.cLass);

      mArkers.Add(maRkEr);
}
//Do this for the oTherS and creatE yoU ITenErArio OBJect

 Q:

HOw tO clEar in jfRame

I haVE a sItUATIoN where I'm moving a balL. HOWEvEr, after sTrugglINg WiTH the queuE tHat RepaINT() placEs paINtcomponenT(GraphICs G) iN. I resorTeD to usiNg PaiNtIMmediATely. the proBlem now iS that WIthout access to SUper.paintCompONeNT(G), I DOn't kNow How to clear tHe caNVas eAch tIMe BefORe I paInt. So OnE PoSSible answer to my quesTiOn woulD be a wAy to clear the cAnvas by itsELF. i also fouNd thAT THReads could be a pOssibLe solution BUt after a Great Many atteMpts to impLEMent that IdeA, I sTilL doN'T UnDerstand that sO IF somEoNe could ShoW correcT imPleMenTatIoN for that I Would be vErY gRaTeFul.
here iS My code:
  imPoRt jAvA.awT.GrapHIcs;
  impOrt jaVa.awT.GRaPHicS2D;
  imporT JaVA.Awt.eVeNt.*;
  ImpoRt jAvAx.swiNg.JFRAme;
  Import jAvax.swing.jPaNEl;
  imPoRt Java.awt.borderLayout
: 
10-19 03:10:52.203 2907 6-29076/cl .data com put er .ale jand rob.gogps I/Ex a mple GOGps: 

{draggable=fa lse,al p ha=1 ,  i nfoWi ndowSho w n= f a lse ,id =m0 ,r ot ation =20 8877154 , visible= tru e,  zindex=0, p o si tion={lati tud e=-33.517460 4,longit ud e=- 7 0.783 053 3}, f lat=fa l se}

A nd I coul dn ' t find a way t o ge t th e data, I attacha  i m age of Firebas e Data ba s e. Ple ase  i need yo ur  help . 
Kind R e ga r d s .
A l ejandro B.

A :

All Cust o m O bjects  a res toredin Fi re b ase  as Maps/Ha shMa ps. So if  you n e ed to a c cess th e obje ct; 
Ei ther Ac ce ssit lik e  a nyo the r map
or  a ll ow fi reba s e ( jack son  - l ast t ime I checked ) t o us e  re flect ion Iter at or<Da taSnap shot>  i terator = dataS naps hot.child ("p un tos ") .getC h ildren (). ite rator() ;
List< M ark er > m ar kers = new ArrayLi st < > () ;

while  (iter a to r. h asNext() ){
   D ataSn apsh o tnext = i terato r .n ex t();
    Stri ng  ke y =  next . getK ey();      Ma rkerm arker = next.g e tValue(Marker . cl a s s) ; 

    markers.ad d(ma r ker) ;
}/ /D o t h is fo r the  o t he r s and create you It en erario  Obje ct

 Q:

Howto clear i n j frame

I  hav e  a situation wher e I'm  moving ab all. How ever,  after s truggling w ith theque uetha t r e p ai nt() places p a i ntCo mp onent(G rap hics g)  in . I  re sor te d to usin g paintI mm ed ia te ly.  Thep roblem n ow  is  t hat  with o ut acc ess t o su pe r. p ain tCompon e nt ( g ), I  d on 't k now  h ow to  cle a r t he canv as each t ime befo re  I  paint.  So one possi bl e answer t omyquesti o n  would b e a way to clear the ca n vas byits elf.I al so foundtha t Thre ads couldbe a p ossib le  so l u tionb u taft er  a great m a n y a ttemp ts  toimpleme nt that idea, I st i lldon't underst and  tha t so  if so m eon ec oul d show correct im plementati on fo r that I w o uld  b e verygratefu l.
He r e is my  code:
 import ja va .awt . G rap hics;
  im port jav a.awt.Gra p hics2 D ;  imp ort  java. aw t.e vent. *;
  i m por t jav ax.swi ng .JFram e;
 im port jav ax.swing.JPanel;
  impo rt jav a.awt .Bo rderLayou t
: 
10-19_03:10:52.203 29076-29076/cl.datacomputer.alejandrob.gogps_I/ExampleGOGps: 

{draggable=false, alpha=1, infoWindowShown=false,_id=m0, rotation=208877154,_visible=true,_zindex=0, position={latitude=-33.5174604,_longitude=-70.7830533},_flat=false}

And I couldn't_find a way_to get the data,_I attach a_image_of Firebase Database.

Please i need your help.
Kind Regards.
Alejandro B.

A:

All Custom Objects are stored in_Firebase_as Maps/HashMaps._So_if_you need to access the_object;
Either Access it like any_other map
or_allow firebase (jackson - last time I checked)_to_use reflection 
Iterator<DataSnapshot>_iterator = dataSnapshot.child("puntos").getChildren().iterator();
List<Marker> markers = new ArrayList<>();

while (iterator.hasNext()) {
_     DataSnapshot_next = iterator.next();
___   String_key = next.getKey();
   _  Marker marker = next.getValue(Marker.class);

_     markers.add(marker);
}
//Do this_for the others and create you_Itenerario Object

 Q:

How to clear_in jframe

I_have a situation where I'm_moving a ball._However, after_struggling with the_queue that repaint() places paintComponent(Graphics g)_in. I resorted_to using paintImmediately. The problem now_is_that without access_to_super.paintComponent(g),_I don't_know how to_clear_the canvas_each_time before I paint. So one_possible_answer to my question would be a_way to clear the_canvas_by itself. I also_found that Threads could be_a possible solution but after a_great many_attempts to_implement that idea, I still don't understand that so if someone_could show correct implementation for that_I would be very_grateful.
Here is_my_code:
  import_java.awt.Graphics;
_ import_java.awt.Graphics2D;
  import java.awt.event.*;
  import javax.swing.JFrame;
_ import_javax.swing.JPanel;
  import java.awt.BorderLayout