| |
| |
| |
|
Page: 1 2 3
Comments:
<0> the jar file <1> default is private, so if you don't use public, then by default it's private. <2> Creative1: : because you wrote more code in the awt version ? <0> kmh, yep, most likely, the plugin already has most of the code by default <0> but the complain here was 'dialup' <2> ic <0> not memory <0> so if it's download speed, swing beats old version easily <2> yes <0> that was my point :) <2> but the mory on the machine won't be much better i think <0> now i only wish default browsers came with java 1.3 at least <2> yeah got it now
<2> Creative1: default browser may come with no java at all <1> go web based! <1> browsers don <2> Creative1: so if you use java, then it is better to require the plugin <1> browsers doesn't come with JVM by default. <3> soloBinan, no is that true? <3> int x = 1000; <3> inside a cl*** Foo {} <3> then I instantiate that cl*** <3> Foo p = new Foo() <3> p.x is accessible <2> corstan: inside the same package yes <1> hmmm... that's interesting. default of all attributes is private. <2> outside the package no <0> well it used to be hard to use jdk 1.2 or over on the web, because people would see the gray square and have no idea what to do, even if you wrote a text on it explaining <0> but i think now the situation is better, IE asks you to install the plugin, firefox does it automatically too <3> kmh, I have never used package, this means multiple cl*** files ? <0> so i think it's time to move my stuff to swing <2> defaullt all attributes are package visibility <0> and save tons of headaches reading my old code <3> kmh, multiple src files I mean <1> plugins is different from JVM <2> corstan: you can write java code without packages <3> I took an introductory OOP course in java, and there were no compulsory hand-ins where we had to used package <2> corstan: either it is implicitly the so called default package or pachages you've define yourself <3> kmh, if I do not use packages, then I shouldn't worry about putting <3> 'public' <0> question... can i use application webstart on any server? <2> corstan: : and the coding recommendation is always use your own packages (rather than default implicitly) and most IDE create code following that convention <3> in front of cl*** declarations ? <0> i mean, the deployment and stuff. can i do it in IIS ? <1> iis is not java based <2> corstan: you cannot not use packages, writing no package statement autimatically means your cl***es are in the default package <1> use packages. you may have difficulty running your code <3> can you answer my last question? <2> corstan: well technically yes <4> hmm, even if you don't use packages you're still using them through the "default" package. <3> kmh, thanks <2> corstan: all the cl***es you write (as long as their in the default package, i.e. no package statement) can see each other attributes without the use of public <4> ah, I'm lagged. <1> if your running your program in command line, you need to add an argument that you are using the default package <2> corstan: however it is really a good idea und use your own package explicitly <2> corstan: as long as you put all your cl***es in the same package, you won't need public either <3> by package you mean practically the same src file right? <3> if I put 'public' in front of cl***es I can split them up into different src files in the same directory <2> on a general note : in _most_ cases accessing attributes directly is not a good idea/design <1> i agree with khm <3> get/set methods ? <1> use accessors and mutators <2> but if that doesn't concern you right now, just keep everything in the same package and you need no public <3> ok, that would do it for me atm I'd think
<2> corstan: yes if you split your code over different packages (not source files) you will need public <3> ok <1> kmh, if you split into packages, doesn't that imply you are splitting the codes as well <2> note : only the package location matters, not whether code is distributed over several physical files <2> soloBinan: yes and no <1> i see the yes part. can you expound on the no part <2> soloBinan: usually you split by public cl***es (i.. each public cl*** has its own file) <1> yes... and? <1> if you split into packages, you need to physically move it to a new src into that folder/pacakge <2> and i wanted corstan to be aware of the difference (i.e. the code can be split over several physical files (aka public cl***es) but still have only _1_ package <1> i see <2> soloBinan: so several packages => several files but _not_ several files => several packages <2> and the visibility setting concerns the packages and not the files, therefore it important to note that <2> hi Clackwell <1> i tihnk we are on the same page but but not in synch <2> sunshine in hamburg again ? <2> soloBinan: yes <1> kinda like thread without the synchronize keyword <1> hahahaha <2> soloBinan: i.e. you were absolutely correct in splitting into packages implies splitting into files, i just wanted to point out that the reverse implication does not hold <2> since that might not be obvious (to him) <1> what's your specialization kmh? <2> none :) <1> java is a BIG platform. <2> yes but i'm not really specialized in any particular area right now <2> meaning i'm not really an expert on any area <1> i see. <1> i'm into web application. front end development and back end stuff, integration. <2> ic <2> but it is interesting how java has grown, in the early 1.0/1.1 days you kinda could have known it all <2> while now it is hardly possible anymore <1> i agree. <1> good thing though. <1> withj2ee, it's kinda limitless <5> hey I bought some Genuis Beer <5> kindof high, as it is an import <5> it was $7.50 per six pack <5> someone in here was telling me about Genuis beer the other day <5> oh wait that was on freenode <6> guinness, or genius? <6> irish, or spanish. <7> http://youtube.com/watch?v=WofFb_eOxxA <8> Hello. What exactly, in human terms, does this mean? <8> txtlogin.getText().trim().toUpperCase().intern() == inuser[2 * (i - 1) + 2].trim().toUpperCase().intern() && txtp***.getText().trim().toUpperCase().intern() == inuser[2 * (i - 1) + 3].trim().toUpperCase().intern() <8> that bad, ey? <7> Znuff: you should put that online at thedailywtf.com <8> o.O <8> there's a daily wtf? <7> yes :) <8> what does intern() do? <7> good question. no idea. <7> but string interning is a topic well covered via google. <9> hey all you ***y boys <8> ok, I don't know java <6> why is it that every time I make minor changes to my code, I end up touching darn near every single file on the project ;) <7> sounds like the structure is off a good bit. that again sounds like you have a few months ahead to get it anywhere near generally usable. ;) <7> at least that's how it always felt on my current project <6> I guess I should stop making major fundamental changes to fix imaginary problems ;)= <7> oh, that might help. ;)
Return to
#java or Go to some related
logs:
#linuxhelp #linux #AllNiteCafe #chatzone #linuxhelp mesaggi funny
how many people works ipop3d-ssl slackware earth_gal deleting 1.2 million rows mysql
|
|