• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Paul Clapham
  • Devaka Cooray
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Liutauras Vilda
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Piet Souris
Bartenders:
  • salvin francis
  • Carey Brown
  • Frits Walraven

well did as below but BUTTONS NOT Appear only the image plays continuesly, well

 
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I HAVE 3 JAVA FILES [J SE], one main and two panels , and I want to refer the two panels in main AND the one panel ALSO in the other panel, rather is very complecated do static methods, well did as below but BUTTONS NOT Appear only the image plays continuesly, well???
there is one /images/ folder in the files.java folder...
this line like no called: window.add( animation2 , BorderLayout.SOUTH );//??
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I couldn't even read the code for all the comments :(
 
Leonidas Savvides
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I modified code , do not look in comments,

this line like no called: window.add( animation2 , BorderLayout.SOUTH );//?? line27 //LogoAnimatorMain.java
>>>
LogoAnimator animation2 = new LogoAnimator(); contains a call to //LogoAnimatorMain.java
LogoAnimatorJPanel animation = new LogoAnimatorJPanel(); // LogoAnimator.java
so first called directly(no appear), and latter called indirecrtly(appear)...

window.add( animation2.animation, BorderLayout.CENTER ); // add panel to frame LogoAnimatorMain.java
window.add( animation2 , BorderLayout.SOUTH ); //LogoAnimatorMain.java

I do NOT find better way, static comes with many errors and is difficult...
 
There are no more "hours", it's centi-days. They say it's better, but this tiny ad says it's stupid:
Two software engineers solve most of the world's problems in one K&R sized book
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic