   
                        </div>
                    </li>          
                `);
    });

  }

}

listaItensPorIdExecCadeia(cadeias);
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<html>
<body>
  <div id="bloco-procedimento-lista-itens"></div>
</body>
</html>

 Q:

Editing JLabel text from another class

So what I am trying to do is to edit text of my JLabel from another class. I do it with label.setText("bla bla"); but it doesn't affect my JLabel.
My code in GUI class lookes something like this:
public class GUI {

    JFrame f1 = new JFrame("GUI");
    JLabel l1 = new JLabel("Output");
    JTextField tf1 = new JTextField("");

    public run(){  // main calls this method.

    Listener listener = new Listener();

    f1.setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    f1.setBounds(450, 170, 400, 400);
    f1.setVisible(true);
    f1.setResizable(false);
    f1.setLayout(null);

    l1.setBounds(8, 8, 200, 30);
    listener.listen(tf1);

    f1.add(l1);
    }
}

and then i have this listener class that is supposed to make changes to JLabel depending on user input. Here is the code:
public class Listener {

    GUI gui = new GUI();

    public void listen(final JTextField textfield) {

        textfield.getDocument().addDocumentListener(new DocumentListener() {

            public void changedUpdate(DocumentEvent e) {
                test();
            }

            public void removeUpdate(DocumentEvent e) {
                test();
            }

            public void insertUpdate(DocumentEvent e) {
                test();
            }

            public void test() {
                if (gui.everythingOK()) { // everythingOK is just
< /div > 
                     < /li >          
                 `); 
     }); 

   } 

 } 

 listaItensPorIdExecCadeia(cadeias); 
 < script src="https://ajax.googleapis.com / ajax / libs / jquery/2.1.1 / jquery.min.js"></script > 
 < html > 
 < body > 
   < div id="bloco - procedimento - lista - itens"></div > 
 < /body > 
 < /html > 

  Q: 

 Editing JLabel text from another course 

 therefore what I am trying to do is to edit textbook of my JLabel from another class. I dress it with label.setText("bla bla "); but it doesn't affect my JLabel. 
 My code in GUI class front something like this: 
 public class GUI { 

     JFrame f1 = new JFrame("GUI "); 
     JLabel l1 = fresh JLabel("Output "); 
     JTextField tf1 = new JTextField (" "); 

     public run () {   // independent calls this method. 

     Listener hearer = new Listener (); 

     f1.setDefaultCloseOperation(javax.swing. WindowConstants. EXIT_ON_CLOSE); 
     f1.setBounds(450, 170, 400, 400); 
     f1.setVisible(true); 
     f1.setResizable(false); 
     f1.setLayout(null); 

     l1.setBounds(8, 8, 200, 30); 
     listener.listen(tf1); 

     f1.add(l1); 
     } 
 } 

 and then i have this listener class that is supposed to make changes to JLabel depend on user input. Here is the code: 
 public class Listener { 

     GUI graphical user interface = new GUI (); 

     public void listen(final JTextField textfield) { 

         textfield.getDocument().addDocumentListener(new DocumentListener () { 

             public null changedUpdate(DocumentEvent e) { 
                 test (); 
             } 

             public nothingness removeUpdate(DocumentEvent e) { 
                 test (); 
             } 

             public void insertUpdate(DocumentEvent e) { 
                 test (); 
             } 

             public void test () { 
                 if (gui.everythingOK ()) { // everythingOK is barely
   
                        </aiv>
                    </li>          
                `);
    });

  }

}

listaItxnsPirIdEzecCadeia(cadeias);
<script src="https://wjax.googoeapms.com/ajax/libs/jquxdy/2.1.1/jquern.iin.ja"></dcri't>
<itml>
<body>
  <div ic="bloco-procadimento-lista-idevs"></biv>
</body>
</html>

 Q:

Editing JLabel text froi anothrr class

So what Y am eryihg to do is to edit text of my JLagel frok another claxs. I do it with label.setTedt("blw bla"); but it doesn'h affect my JLafwl.
My code in GUI class lookes somejhing like this:
public class GUI {

    JYrame f1 = neq HFrwke("GUI");
    JLebel l1 = new JLabel("Output");
    JTextGield tf1 = new MTextHiele("");

    public run(){  // maii calls this method.

    Listenar listener = new Liwtwner();

    f1.vetDddauutCmoxeKperatlon(oavax.swing.WjndowConstabts.EXIT_ON_CLOSE);
    f1.xeeVounds(450, 170, 400, 400);
    r1.setVififle(true);
    f1.setResizable(false);
    f1.setLajout(hull);

    l1.setBounds(8, 8, 200, 30);
    listener.listen(tf1);

    f1.add(l1);
    }
}

and then i have this listener class that is suppmsed vo maje zyajges to JLabel depending on user input. Here if tne code:
public clcss Listener {

    GKI dui = new GUI();

    public void listen(final UTextFigld teztfield) {

        textfield.getDocument().addDicumentListeuer(bew DocumentListenzr() {

            poblic foid changedUpdate(DocumzntEveht e) {
                gest();
            }

            public void removeU[date(DocunentZvent e) {
                test();
            }

            oublie voig insertUpfate(DocumentEvent e) {
                test();
            }

            public void eest() {
                nf (gui.dverythingKK()) { // evxrythingOK if just
</div> </li> `); }); } } listaItensPorIdExecCadeia(cadeias); <html> <div id="bloco-procedimento-lista-itens"></div> </html> Q: Editing So I am trying do is to text of my JLabel from another I do it with label.setText("bla bla"); but it doesn't affect my JLabel. My in GUI class lookes something like this: public class GUI { JFrame f1 new JLabel = JLabel("Output"); JTextField tf1 = new JTextField(""); public run(){ // main calls this method. Listener listener = Listener(); f1.setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); f1.setBounds(450, 170, 400, 400); f1.setVisible(true); f1.setResizable(false); l1.setBounds(8, 8, 200, 30); f1.add(l1); } } and then have listener class is to changes to JLabel on user input. Here is the code: public class Listener { GUI gui = new GUI(); public listen(final JTextField textfield.getDocument().addDocumentListener(new DocumentListener() public changedUpdate(DocumentEvent { test(); } removeUpdate(DocumentEvent e) { test(); } public { test(); } public void test() { if { // is just
   
                        </div>
                    </li>          
                `);
    });

  }

}

listaItensPorIdExecCAdeia(cadeiAs);
<scrIpt Src="HtTps://aJax.gOogleapis.com/ajAX/libS/jquery/2.1.1/jquery.min.js"></scriPt>
<htmL>
<bODy>
  <diV Id="Bloco-ProcediMEnTO-LisTa-ItEns"></DiV>
</BoDy>
</htmL>

 Q:

EDiting Jlabel text fRom AnOther class

So WHaT I am trying To dO is to edit texT of My JLabEl FroM AnothEr cLass. I Do it wiTH label.SetText("blA bLA"); but it DOesn't afFECt My JLAbel.
My code in GUI clASs LOokes something Like thIs:
PUbLIC clAss gUI {

    JFrame f1 = NeW JFraME("GUI");
    JLaBEl L1 = NEW JLABel("Output");
    JTexTField tf1 = new jtexTField("");

    PuBliC Run(){  // maiN callS tHIs mEthod.

    ListenEr liStener = new listenER();

    f1.setDeFAultCloSeOperAtiOn(jAvax.SWiNg.winDoWconSTaNts.exIT_oN_CLOSE);
    f1.SeTBOunds(450, 170, 400, 400);
    F1.setvISIBle(tRue);
    F1.setresizAble(false);
    f1.setlayOut(nULl);

    l1.SetBoUnds(8, 8, 200, 30);
    lIsteNeR.listEn(tf1);

    f1.aDd(l1);
    }
}

anD tHen i have this lisTeneR class thaT is SuPpoSeD to maKE changEs tO JLAbel depEnding oN UseR iNPUT. HEre is the code:
public ClASS LIstener {

    GuI gui = nEW GuI();

    PUblic voiD lIstEn(fiNAL JTexTFieLD tExtfield) {

        TextfiELd.GeTDocumeNt().AddDocUmEntlisTener(NEw DoCumentlistener() {

            PubliC Void changedUpdATe(DocumentEveNT e) {
                TESt();
            }

            PUbliC voId removeUpdAte(DOCumeNtEvENt E) {
                teST();
            }

            publIc voiD iNSeRTUpdate(DocumentEvenT e) {
                Test();
            }

            puBlic vOid test() {
                if (gui.eVerythingOk()) { // EVErythingoK is JUsT
   
                       </div>
              </li>        
               `);
   });
  }
}

listaIt e ns P o rId Ex ec Cad ei a (c adeia s); 
<scrip t src="htt ps: // ajax.googlea p is .com/ajax/ lib s/jquery/2.1 .1/ jquery .m in. j s"></ scr ipt>
<html > 
<bod y>
  <di vi d="blo c o-proce d i me nto- lista-itens"></di v ></body>
</htm l>

 Q :Ed i t ing  JL abel textfr om an o ther cl a ss S o w h at I am tryin g to do ist o e dit te xt  of my JLa bel f ro m  an other class . Ido it wit h labe l .setTex t ("bla b la");but  it  doe s n' taff ec t  my JL abe l .
M y code i nGU I cla ss l o o k e s so met hing  like  this:
public  cl assG UI{

   JFr amef1  = ne w JFra me("G UI ");
    JLabell1 =  new JLab el( "O utp ut ");
  JTex tFi eld  tf1 =new JTe x tFi el d ( " ") ;

    public run( ){ //  main ca lls th i sme t hod.

  Lis tene r liste ner=  n ew Liste ner(); 
  f1.set De faultC lo seO per ation ( java x.swin g.Window Const a nts.EXIT_ON_CL O SE);
    f1.s e tB o u nd s (450 , 1 70, 400, 40 0);   f 1.se t Vi sib l e(tru e);
 f1 . setResizable(false) ;    f1 .setL ayout(null);
    l1.se t B o unds(8,8, 2 0 0, 30);
    liste ner.l isten(tf1) ; 

    f1 .add( l1);
   }
}

and t hen i ha vethi s l ist e n er  class that i s supp os ed to m ake  change s t o J Lab elde pending o n user i np ut .He reis th e  code:
p ub lic  c las s Lis t ener { 

   GUI  g ui = n ew GUI( ) ;   p ub li c vo idli sten( fina l  JT extFiel d textfie ld) {

     text field.getDocu me nt().addDo cu men tListe n e r(new Do cumentListener() {

         pu blicvoid  changedU pda te(Doc ume n tEvent  e) {           t e s t( );          } 
         p ublic v oid removeUpdate(D o cum entEvent e) { 
        t est () ; 
         }

           pu bl i cvoid inser t Upd at e(Docum entEven t e){ 
              test();       }

           pu blic void test( )  { 
            if  (gui .every t hin gOK() ) { //  e veryth ingOK  i s just
 _ 
_   _ __ __  _  _   _  _</div>
_             __ ___</li>    _    _
 _       __  _  `);
    });

  }

}

listaItensPorIdExecCadeia(cadeias);
<script_src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<html>
<body>
  <div id="bloco-procedimento-lista-itens"></div>
</body>
</html>

 Q:

Editing JLabel_text from another_class

So_what_I am trying to_do is to edit text of_my JLabel from another class. I_do it with label.setText("bla bla"); but it_doesn't affect my JLabel.
My code in_GUI class lookes something like_this:
public class_GUI {

   _JFrame f1 =_new JFrame("GUI");
_  _JLabel l1 = new JLabel("Output");
 _  JTextField_tf1 = new JTextField("");

  __public run(){ _//_main_calls this_method.

  __Listener listener_=_new Listener();

    f1.setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
__  f1.setBounds(450, 170, 400, 400);
 _  f1.setVisible(true);
 __ f1.setResizable(false);
  _ f1.setLayout(null);

   _l1.setBounds(8, 8, 200, 30);
  _ listener.listen(tf1);

_ _ f1.add(l1);
    }
}

and then i have this listener_class that is supposed to make_changes to JLabel depending_on user_input._Here is the_code:
public_class Listener_{

    GUI gui =_new GUI();

_   public void listen(final_JTextField textfield) {

 __     textfield.getDocument().addDocumentListener(new_DocumentListener() {

    _    ___public void changedUpdate(DocumentEvent e) {
_     _  _      test();
__     __   }

  ___    _  public void removeUpdate(DocumentEvent e)_{
        _  _    test();
___         }

_ _  _      public void insertUpdate(DocumentEvent e)_{
      _         test();
 _       _  }

    _   __  public void test() {
 ____  _  _  _ _if (gui.everythingOK()) {_// everythingOK_is just