| |
| |
| |
|
Page: 1 2 3 4 5
Comments:
<0> hi.. <0> i have a print cl*** <0> i want to call it from from another application with a button <1> lookingforjavaexpert2: get a reference to it <2> http://rafb.net/p/Ymu4fy26.html <2> actullay i have an application in which i have to save the record and print it at the same time <2> whats the best approach? <2> any hope? <1> in the cl*** you want to print from, how about creating a HelloWorldPrinter and invoking it when the button is pressed <2> make it a method? <2> by making it a method <1> no <2> theen bu calling its object <2> then by <1> yes <2> onr more thing
<2> how can i make that application print without calling the button? <1> do whatever the button does in another method <3> nada <2> no i mean when that helloworld printer runs..a button is called..have to press it print...i want to print when the applcation is run..without pressing the button <1> you mean the printer dialogue? <2> no i just to want that when the application is run...printer is called autometically <4> when the form is loaded I think he means <2> yessssssss:) <4> or in the applicaion Main <2> DragonWolf=CleverWolf <1> lookingforjavaexpert2: this button you mention, is that a button you added yourself? <2> no <2> the button in the helloworldprinter applciation <1> "Print Hello World"? <2> yessssssss <1> call the actionPerformed method in HelloWorldPrinter. don't call main. <2> how? <2> cud u plz edit the code... <1> try new HelloWorldPrinter().actionPerformed(null); <2> ok let me do that <2> but where should i add that line.. <3> there were u wan't the printing dialog to appear <2> well i put that line just after the cl*** constructor and there are two errors <1> what are they? <3> after constructor? <3> so it isn't in any method? <2> yes no main method...so after the construcotr and just before the cl***'s final bracket <2> errors are <2> C:\Program Files\Java\jdk1.6.0\bin\HelloWorldPrinter.java:121: illegal start of type <2> new HelloWorldPrinter().actionPerformed(null); <2> ^ <2> C:\Program Files\Java\jdk1.6.0\bin\HelloWorldPrinter.java:121: ';' expected <2> new HelloWorldPrinter().actionPerformed(null); <2> ^ <1> it has to be inside the constructor <2> i did that <2> compiled successfully <2> but did not call the printer <2> http://rafb.net/p/3CSRLc69.html <1> you put it in the HelloWorldPrinter constructor. it should be in the constructor of another cl*** <1> make a cl*** Test { public Test() { new HelloWorldPrinter().actionPerformed(null); } public static void main(String[] args) { new Test(); } } <1> then try to run it <2> ok thanks...:) <2> can i put that line in the actioned performed method of another cl*** <1> sure <1> but you can do it easier than that too <1> if you want to press some button to print, use yourbutton.addActionListener(new HelloWorldPrinter()); <3> I would do it that the HelloWorldPrinter would not be listener at all <2> yes but that button is already doing lots of work...saving the record...printing and refreshing the screen <1> ok then <3> but it works fine also that way <5> selllam <2> how can i do all that in one button? <3> selain? <2> only print is creaitng a lot of problems for me <1> just use the new HelloWorldPrint.actionPerformed(null); line then <1> () <2> thanks once more.. <5> e,smradevi hajd mi date @ <5> What is the difference between erotic and kinky? <5> erotic is using a feather....kinky is using the whole chicken.
<3> pleace stay on topic <6> this is java room <6> its about the language or the coffee.... hehhehehhe <3> yup <6> hello NickaNicka... <3> lo diggerwasp <6> why was j2se renamed as jse starting for java 6 <5> jebem vam seku <5> hjeehehe <3> dunno <0> i m back <0> i have a print pro <0> i want tocall print obj from another cl*** <0> i mean when the application loads i should start printing <1> what happens when you try? <0> oh gr8 u r here <0> well i did what u told me but that is calling printer prog like nonstop... <0> made my comp stuck:( <1> did you remember to remove the new HelloWorldPrinter() line from the HelloWorldPrinter constructor? <3> heh <0> no:) <0> hmm... <0> oh gr8 <0> thanks buddy <3> shouldn't compiler warn u about that kind of things? <0> can i have ur email.. <0> coz u r on my wave length <0> i am doing a proj in java <0> i promise i will bug in dire situations <1> well, I guess there are cases when you'd want to build a tree in the constructor <0> :) <1> you can bug me here instead <0> well u rnot here much <0> tell me the time of ur arrival and departure <0> r u afraid of poor me:| <3> oh <3> heh <1> when I'm not here I usually have away set <7> Gud evenning guys .. <7> hi nicka.. <7> last night i went down being fainted .. <7> :-D <3> lo saintc0d3r <7> hi <3> sup <7> Uh..i'm thinking bout using simple way first .. <7> i change the plan a bit, using the UUID as the file's name.. <7> that's all .. <3> k <7> What do u do with java, tonight ? >> nicka <3> probably something small <3> ...or nothing <3> I should do my homework <7> What's your homework today ? <7> btw, how old are u ? ah..your asl ? >> nicka <3> I have work about networking <3> ro not really homework but I need to do Cisco academy stuff <3> I'm 27 m <3> how about u? <7> hehehe..same as u <7> :-D <7> You take Cisco's college ?? Cooll... <8> too many servers :( <7> which ones ? >> evulish <3> whitch witch one? <3> servers? <3> yes I'm studying Cisco <8> saintc0d3r: what? <7> The servers that you mentioned b4 .. <3> evulish: u should clean up ur connections li I do <3> I'm only on five servers at the moment <8> ? <8> i'm talking about physical servers <3> oh
Return to
#java or Go to some related
logs:
Kyahuwa kbmirc.net #allnitecafe SpectralVapor
frends chat #vb linux ls date-create #india #php #allnitecafe
|
|