@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3



Comments:

<0> are you a finn?
<1> NickaNicka, can you help me with graphics swing?
<2> Zerone: yes
<1> and me?
<2> VeRiTTo: it depends what's ur problem with it
<2> Zerone: my familyname is german but surename is finnish
<1> can I show my code?
<1> look http://pastebin.ca/323812
<2> k
<2> so what's the problem with it?
<1> when beging the program, the retangle is here.. and it be show when clic on item
<0> NickaNicka you could be a real german by name :)
<2> Zerone: oh
<0> VeRiTTo and where is the problem now? :)
<2> VeRiTTo: so u wan't the triengle to appear when u click the screen?



<1> exactly!
<2> k
<0> cooking. if you still have the problem i will help you later
<1> is difficult for me explain on english :?
<2> k
<2> how does ur paint method check if screen has been clicked?
<1> in actionPerformed
<1> in cl*** Grafico
<2> it seems to create new JDibujo object there
<0> yeah but you do not add it to the frame
<2> yes
<2> and I would prefer to for drawing to that old panel
<0> yeah
<0> set it by a flag
<1> but.. in public JDibujo(){....} there ais getContentPane().add(jpLienzo)
<0> set a flag in the paint method
<0> or do setVisible(false)
<0> thats much easier because java will handle this
<0> and start to learn to program with the Java Code Conventions young padovan :P
<2> VeRiTTo: it happens before the new object is created
<2> so creating a new 1 does not change the old
<0> you have to change only the following:
<1> the paint method is call before the object?
<2> no
<0> in the actionPerformed you have only to write: jpLienzo.setVisible(true);
<0> and before you set it to false
<2> that should do the trick
<2> VeRiTTo: I men't that u put JDibujo object to ur JFrame in beginning of ur program
<2> and it happens before the actionPerformed is called
<1> aha
<0> jpLienzo.setVisible(false);
<0> getContentPane().add(jpLienzo);
<0> do this in the constructor
<0> and in the actionPerformed you write only:
<0> jpLienzo.setVisible(true);
<0> this should work
<2> yup
<1> :P I did...
<1> in the actionPerformed..
<1> ups
<1> that work
<2> good
<2> (:
<1> but in the JDibujo add setBorder(Color...) and setRelleno(Color ...)
<0> ?
<2> ?
<0> ah you want to change the border then?
<1> yeah
<0> then write before setVisible(true):
<0> jpLienzo.setBorder(...);
<0> thats all
<1> but I wanted.. like that... jpLienzo=new JDibujo(Color...,Color);
<1> but it's not worked.. why not?
<1> ups my english.. sorry
<0> then you create a new object
<0> and you have to exchange the old one by the new one
<2> yup
<0> e.g.: myFrame.remove(jpLienzo);
<0> myFrame.add(newJpLienzo);
<0> myFrame.invalidate();
<0> myFrame.repaint();



<0> something like that
<0> you should use the method above and not this code
<0> its awful how to code
<2> O_o
<1> look
<1> I write this..
<1> ups..
<1> with the old object..
<1> thats work--
<1> the repaint().. I put in the constructor JDibujo
<1> :?
<0> you can only write it in the way i described
<0> everything else will not work
<2> heh
<1> ..
<0> if you want to do it in the best way:
<0> remove(jpLienzo);
<1> but.. were I write the repaint.. in the constructor or where?
<0> getContentPane().invalidate();
<0> add.getContentPane().add(new JDibujo(Color...,Color));
<3> hi all. do you know if Java6 use in different way Swing ? (I ask this cause in the Swing tutorial they say "this tutorial it's not updated with last java 6 feature).
<0> getContentPane().validate();
<3> I would like to know if the java6 updated it's important in Swing.
<0> getContentPane().repaint();
<0> there are some typos above but you will handle it :)
<0> maxsoft2?
<0> what updates?
<3> Zerone: I'm studing Swing on java Tutorial site.
<0> ok
<3> This section has not yet been updated to reflect features and conventions of the latest release, JDK 6.0.
<1> maxsoft2, what is the link?
<0> indeed i did 6 years things from java 1.x to java 1.4 (a bit Java 5), and only now a bit Java 6
<3> http://java.sun.com/docs/books/tutorial/uiswing/learn/index.html
<0> yeah thats not important
<0> in java 6 there were made some improvements and some new cl***es
<3> it's not important. right? perfect. thank you.
<0> but theyre not so important to learn swing
<3> perfect
<0> lol :)
<3> THANK YOU! :d
<3> :D
<3> BYE I go to study.
<0> have fun :)
<2> heh
<0> whats up german like finn? :)
<2> not mutch
<0> :)
<2> I'm making subnet calculator but I think I'll quit for today
<0> ah i see
<0> network addresses and so on?
<2> yes
<0> ok
<2> (:
<0> for private or school / university?
<2> not really for any real project
<2> we just have tjis Cisco cource and I tought that it would be useful
<1> HI
<0> :)
<0> hi VeRiTTo
<0> are you back again :P
<1> How can I create a cl*** implements ActionListener ant this cl*** recive a argument Component
<1> :D
<0> long time not spoken and so on :)
<1> I was reading.. abot anonimous cl*** and for events
<0> public cl*** MyGreatestCl*** implements ActionListener {
<0> public MyGreatestCl***(Component comp) {
<0> ..
<0> }
<2> }
<0> public static void actionPerformed(...) ...
<2> oh yes
<2> forgot that
<0> :D
<2> ;)


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #java
or
Go to some related logs:

kiilik testi
anthony batoto
oban dalnet
#allnitecafe
#worldchat
#india
#allnitecafe
aunty ko pela
abe shak
Quotes on EID for LOVER



Home  |  disclaimer  |  contact  |  submit quotes