Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
runnable
- Page 1
Re: runnable vs thread
Programming
Software Development
13 Years Ago
by shedai
…referrer. On the other hand, "implements
Runnable
" decision requires an additional object referrer … [CODE] class XYZ extends Thread{ } class ABC implements
Runnable
{ public void run(){ } } //www.bilgisayarkavramlari.com public … most useful effect of deciding "implements
Runnable
" way is using the extends keyword for…
runnable vs thread
Programming
Software Development
13 Years Ago
by thato21math
whats the advantage of implementing
runnable
over extending thread
Re: runnable vs thread
Programming
Software Development
13 Years Ago
by jwenting
Extending Thread indicates (in OO design) that you're changing the behaviour of Thread itself. You rarely if ever want to do that. For most if not all purposes you'll ever encounter, implementing
Runnable
is the correct thing to do.
Runnable jar file
Programming
Software Development
10 Years Ago
by Slavi
I am trying to create a
runnable
jar file .. did a few days ago with a single …
Re: Runnable jar file
Programming
Software Development
10 Years Ago
by Slavi
I made an eclipse project, made a
runnable
jar from eclipse and I get the same error again >.>
Re: applet , Runnable interface and problems
Programming
Software Development
20 Years Ago
by jwenting
Runnable
is used in multithreading. The run() method is used by a Thread instance when the thread is running. You never call it directly!
make .jar runnable
Programming
Software Development
14 Years Ago
by ceyezumma
///////////////////////////////////////////// make .jar
runnable
////////////////////////////////////////// Hello; I can …but I would like to make it
runnable
. So I have shown the Command …to make the -cmf (non
runnable
) .jar that works fine. I will… show the myManifest for the -cvmf (
runnable
) command but it will not load the…
How to loop with runnable in Android
Hardware and Software
Hardware
Mobile and Wearables
11 Years Ago
by DamianFox
…create(); alert.show(); } class TaskScreenshot implements
Runnable
{ int j; public TaskScreenshot(int _i){ …MATCH_PARENT; } } class TaskEditText implements
Runnable
{ @Override public void run() {…
Re: Difference between Runnable interface & Thread class?
Programming
Software Development
15 Years Ago
by ramjeev
[QUOTE=masijade;1062582]Implement
Runnable
unless you have some specific [i]reason[/i] for extending ….In such a case,why should i go specifically for
runnable
implementation instead Thread inherit.Pls,let me explain,the advantage…
Re: Difference between Runnable interface & Thread class?
Programming
Software Development
15 Years Ago
by Ezzaral
…In such a case,why should i go specifically for
runnable
implementation instead Thread inherit.Pls,let me explain,the …advantage of using
runnable
.[/QUOTE] If there isn't any behavior of Thread … likely have no reason to. Keep in mind though,
Runnable
cannot return a value nor throw exceptions. If you need…
Re: make .jar runnable
Programming
Software Development
14 Years Ago
by Darryl.Burke
Cross posted all over JavaRanch [url]http://www.coderanch.com/t/506842/java/java/create-jar-gm-jar-make[/url] [url]http://www.coderanch.com/t/506840/java/java/moving-jar-sys-dir[/url] [url]http://www.coderanch.com/t/506837/java/java/make-jar-
runnable
[/url] db
applet , Runnable interface and problems
Programming
Software Development
20 Years Ago
by pasaris
i want to make a simple applet in which a ball bounces using
Runnable
interface ..i know how to draw a ball , i know the translate() to change its location method but what i dont understand is how to use the
Runnable
interface's run() method fit into my applet ..?? can somebody help me out :confused:
implementing runnable instead of extends Thread
Programming
Software Development
16 Years Ago
by grumpty
… i); } } } } [/CODE] Now I wish to use
Runnable
instead of extends Thread [CODE] import java.lang.Math; import….start(); thread2.start(); thread3.start(); } } class Finder implements
Runnable
{ Thread t = Thread.currentThread(); int searchFor; int beginRange; …
Difference between Runnable interface & Thread class?
Programming
Software Development
15 Years Ago
by ramjeev
Difference between
Runnable
interface & Thread class?Which one to use, though both seems to be same? As per my knowledge,
runnable
can be implemented in such a case that already it has some hierarchy -Thanks in advance
How to serialize a runnable? Help me with an error: "NotSerializableException"
Programming
Software Development
14 Years Ago
by Alex_
…trying to serialize a class that implements Serializable and a
Runnable
. My class has a transient Thread object as a …void main(String[] args) { new Main(); } class SerializedThread implements Serializable,
Runnable
{ transient private SerializedThread[] children = null; transient public Thread self = null…
Packaging other Jar Files into Runnable Jar
Programming
Software Development
14 Years Ago
by TheWhite
…, with the manifest file, I am able to create my
runnable
jar to work with: folder structure: [CODE]libs/thirdpartylib1.jar… any way I can package these jar files into my
runnable
jar so that I do not need the libs/ directory…
Implementing Runnable interface inherits Thread class?
Programming
Software Development
13 Years Ago
by slasherpunk
[CODE]class MyThread1 implements
Runnable
{ Thread t; MyThread1() { t = new Thread(this);//create a Thread ….start();//activate the thread } public void run() //override run() of
Runnable
{ int i; for(i =0; i< 1000; i++) System…
Re: implementing runnable instead of extends Thread
Programming
Software Development
16 Years Ago
by grumpty
….start(); thread1.start(); thread2.start(); thread3.start(); } } class Finder implements
Runnable
{ int searchFor; int beginRange; int endRange; public Finder(int searchFor…
Re: Difference between Runnable interface & Thread class?
Programming
Software Development
15 Years Ago
by masijade
Implement
Runnable
unless you have some specific [i]reason[/i] for extending Thread.
Re: Difference between Runnable interface & Thread class?
Programming
Software Development
15 Years Ago
by sush27
this is the problem which i have encountered many times in case of making GUIs using swings or either making applets for which you have to extend JFrame or Applet. since java dont support multiple inheritence, you cant extend Threads simultaneously with JFrame or Applet. in that case we have to implement
Runnable
for using multithreading.
Re: How to serialize a runnable? Help me with an error: "NotSerializableException"
Programming
Software Development
14 Years Ago
by Alex_
… void main(String[] args) { new Main(); } class SerializedThread implements Serializable,
Runnable
{ transient private SerializedThread[] children = null; transient public Thread self = null…
Servlet implementing runnable
Programming
Web Development
16 Years Ago
by kevin12
… the editor. */ /** * * @author kevo */ public class Transaction extends HttpServlet implements
Runnable
{ DealerDetails processTransaction = new DealerDetails(); bean query = new bean(); DealerDetails dealer…
Re: Servlet implementing runnable
Programming
Web Development
16 Years Ago
by ~s.o.s~
You don't need to make your servlet implement the
Runnable
interface; each request is anyways handled and served in a …
Runtime.getRuntime().exec(a resource in a runnable jar+" "+other stuff);
Programming
Software Development
15 Years Ago
by TheWhite
… a little tough for me to explain. I have a
runnable
jar file that contains a .exe that I'm trying…
Can not make a runnable jar of my project
Programming
Software Development
14 Years Ago
by liran
…. I try to do in eclipse: export -> java ->
Runnable
Jar... but it tells me: could not find main method…
Re: Can not make a runnable jar of my project
Programming
Software Development
14 Years Ago
by liran
… a java error when i click it. I made a
runnable
jar to this project about 1-2 month ago, and…
Running a Runnable JAR File !!
Programming
Software Development
14 Years Ago
by Ritesht93
… 1 jpg is also used So i have made a
Runnable
JAR File , using File->Export option , i selected the…
create animation using runnable interface
Programming
Software Development
13 Years Ago
by Pravinrasal
… above program.... [CODE] public class MainDrawCycle extends JPanel implements ActionListener ,
Runnable
{ JButton button; JLabel lblclkValue,lbldispValue,lblTitle; JTextField textField; JScrollPane pane…
JavaFX runnable JAR problem
Programming
Software Development
9 Years Ago
by Szabi Zsoldos
… JavaFX and I do want to export it into a
runnable
jar. When I run it from Eclipse or Netbeans, it…
Re: runnable vs thread
Programming
Software Development
13 Years Ago
by JamesCherrill
It allows you to extend some other class, if that's important to you
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC