Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #30780 > unrolled thread
| Started by | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| First post | 2015-01-21 23:06 -0500 |
| Last post | 2015-01-25 15:33 -0500 |
| Articles | 18 on this page of 78 — 6 participants |
Back to article view | Back to comp.lang.java.programmer
Returning to Java - have questions Jerry Stuckle <jstucklex@attglobal.net> - 2015-01-21 23:06 -0500
Re: Returning to Java - have questions Jeff Higgins <jeff@invalid.invalid> - 2015-01-22 06:48 -0500
Re: Returning to Java - have questions Jerry Stuckle <jstucklex@attglobal.net> - 2015-01-22 09:07 -0500
Re: Returning to Java - have questions Jeff Higgins <jeff@invalid.invalid> - 2015-01-22 09:41 -0500
Re: Returning to Java - have questions Jerry Stuckle <jstucklex@attglobal.net> - 2015-01-22 11:11 -0500
Re: Returning to Java - have questions Jeff Higgins <jeff@invalid.invalid> - 2015-01-22 20:06 -0500
Re: Returning to Java - have questions Jerry Stuckle <jstucklex@attglobal.net> - 2015-01-22 20:59 -0500
Re: Returning to Java - have questions Jeff Higgins <jeff@invalid.invalid> - 2015-01-22 21:18 -0500
Re: Returning to Java - have questions Jerry Stuckle <jstucklex@attglobal.net> - 2015-01-22 21:47 -0500
Re: Returning to Java - have questions Jeff Higgins <jeff@invalid.invalid> - 2015-01-23 08:08 -0500
Re: Returning to Java - have questions Jeff Higgins <jeff@invalid.invalid> - 2015-01-23 08:27 -0500
Re: Returning to Java - have questions Jeff Higgins <jeff@invalid.invalid> - 2015-01-23 09:41 -0500
Re: Returning to Java - have questions Jerry Stuckle <jstucklex@attglobal.net> - 2015-01-23 09:59 -0500
Re: Returning to Java - have questions Jeff Higgins <jeff@invalid.invalid> - 2015-01-23 10:52 -0500
Re: Returning to Java - have questions Jerry Stuckle <jstucklex@attglobal.net> - 2015-01-23 11:49 -0500
Re: Returning to Java - have questions FredK <fred.l.kleinschmidt@gmail.com> - 2015-01-23 14:26 -0800
Re: Returning to Java - have questions Jerry Stuckle <jstucklex@attglobal.net> - 2015-01-23 19:27 -0500
Re: Returning to Java - have questions Jeff Higgins <jeff@invalid.invalid> - 2015-01-23 19:52 -0500
Re: Returning to Java - have questions Jeff Higgins <jeff@invalid.invalid> - 2015-01-23 20:12 -0500
Re: Returning to Java - have questions Jerry Stuckle <jstucklex@attglobal.net> - 2015-01-23 20:47 -0500
Re: Returning to Java - have questions Jeff Higgins <jeff@invalid.invalid> - 2015-01-25 07:28 -0500
Re: Returning to Java - have questions Jeff Higgins <jeff@invalid.invalid> - 2015-01-25 07:40 -0500
Re: Returning to Java - have questions Jeff Higgins <jeff@invalid.invalid> - 2015-01-25 08:04 -0500
Re: Returning to Java - have questions Jeff Higgins <jeff@invalid.invalid> - 2015-01-25 09:05 -0500
Re: Returning to Java - have questions Jeff Higgins <jeff@invalid.invalid> - 2015-01-25 09:10 -0500
Re: Returning to Java - have questions Jerry Stuckle <jstucklex@attglobal.net> - 2015-01-25 10:34 -0500
Re: Returning to Java - have questions Jeff Higgins <jeff@invalid.invalid> - 2015-01-25 10:34 -0500
Re: Returning to Java - have questions Jeff Higgins <jeff@invalid.invalid> - 2015-01-25 10:11 -0500
Re: Returning to Java - have questions Jerry Stuckle <jstucklex@attglobal.net> - 2015-01-25 10:35 -0500
Re: Returning to Java - have questions Jeff Higgins <jeff@invalid.invalid> - 2015-01-25 10:56 -0500
Re: Returning to Java - have questions Jerry Stuckle <jstucklex@attglobal.net> - 2015-01-25 11:47 -0500
Re: Returning to Java - have questions Jeff Higgins <jeff@invalid.invalid> - 2015-01-25 11:51 -0500
Re: Returning to Java - have questions Jerry Stuckle <jstucklex@attglobal.net> - 2015-01-25 11:57 -0500
Re: Returning to Java - have questions Jeff Higgins <jeff@invalid.invalid> - 2015-01-25 12:00 -0500
Re: Returning to Java - have questions Jerry Stuckle <jstucklex@attglobal.net> - 2015-01-25 15:29 -0500
Re: Returning to Java - have questions Jerry Stuckle <jstucklex@attglobal.net> - 2015-01-25 10:32 -0500
Re: Returning to Java - have questions Jeff Higgins <jeff@invalid.invalid> - 2015-01-25 10:57 -0500
Re: Returning to Java - have questions Jerry Stuckle <jstucklex@attglobal.net> - 2015-01-25 10:31 -0500
Re: Returning to Java - have questions Jeff Higgins <jeff@invalid.invalid> - 2015-01-25 10:58 -0500
Re: Returning to Java - have questions Jerry Stuckle <jstucklex@attglobal.net> - 2015-01-25 10:31 -0500
Re: Returning to Java - have questions Jeff Higgins <jeff@invalid.invalid> - 2015-01-25 10:59 -0500
Re: Returning to Java - have questions Jeff Higgins <jeff@invalid.invalid> - 2015-01-25 09:36 -0500
Re: Returning to Java - have questions Jerry Stuckle <jstucklex@attglobal.net> - 2015-01-25 10:38 -0500
Re: Returning to Java - have questions Jeff Higgins <jeff@invalid.invalid> - 2015-01-25 10:36 -0500
Re: Returning to Java - have questions Jeff Higgins <jeff@invalid.invalid> - 2015-01-25 10:46 -0500
Re: Returning to Java - have questions Jerry Stuckle <jstucklex@attglobal.net> - 2015-01-25 11:49 -0500
Re: Returning to Java - have questions Jeff Higgins <jeff@invalid.invalid> - 2015-01-25 11:52 -0500
Re: Returning to Java - have questions Jerry Stuckle <jstucklex@attglobal.net> - 2015-01-25 11:58 -0500
Re: Returning to Java - have questions Jeff Higgins <jeff@invalid.invalid> - 2015-01-25 11:58 -0500
Re: Returning to Java - have questions Jerry Stuckle <jstucklex@attglobal.net> - 2015-01-25 15:30 -0500
Re: Returning to Java - have questions Jerry Stuckle <jstucklex@attglobal.net> - 2015-01-25 11:49 -0500
Re: Returning to Java - have questions Jeff Higgins <jeff@invalid.invalid> - 2015-01-25 11:49 -0500
Re: Returning to Java - have questions Jerry Stuckle <jstucklex@attglobal.net> - 2015-01-25 11:58 -0500
Re: Returning to Java - have questions Jeff Higgins <jeff@invalid.invalid> - 2015-01-25 12:01 -0500
Re: Returning to Java - have questions Jerry Stuckle <jstucklex@attglobal.net> - 2015-01-25 15:30 -0500
Re: Returning to Java - have questions Gene Wirchenko <genew@telus.net> - 2015-01-26 09:18 -0800
Re: Returning to Java - have questions Jerry Stuckle <jstucklex@attglobal.net> - 2015-01-26 13:09 -0500
Re: Returning to Java - have questions Gene Wirchenko <genew@telus.net> - 2015-01-26 11:22 -0800
Re: Returning to Java - have questions Jerry Stuckle <jstucklex@attglobal.net> - 2015-01-26 14:44 -0500
Re: Returning to Java - have questions FredK <fred.l.kleinschmidt@gmail.com> - 2015-01-26 12:00 -0800
Re: Returning to Java - have questions Jerry Stuckle <jstucklex@attglobal.net> - 2015-01-26 15:18 -0500
Re: Returning to Java - have questions Jeff Higgins <jeff@invalid.invalid> - 2015-01-22 21:26 -0500
Re: Returning to Java - have questions Jerry Stuckle <jstucklex@attglobal.net> - 2015-01-22 21:48 -0500
Re: Returning to Java - have questions Jeff Higgins <jeff@invalid.invalid> - 2015-01-25 11:00 -0500
Re: Returning to Java - have questions Jeff Higgins <jeff@invalid.invalid> - 2015-01-22 09:49 -0500
Re: Returning to Java - have questions Jeff Higgins <jeff@invalid.invalid> - 2015-01-22 10:11 -0500
Re: Returning to Java - have questions Jerry Stuckle <jstucklex@attglobal.net> - 2015-01-22 11:12 -0500
Re: Returning to Java - have questions Jeff Higgins <jeff@invalid.invalid> - 2015-01-25 11:01 -0500
Re: Returning to Java - have questions Brixomatic <brixomatic@yahoo.com> - 2015-01-25 22:49 +0100
Re: Returning to Java - have questions Jerry Stuckle <jstucklex@attglobal.net> - 2015-01-25 16:58 -0500
Re: Returning to Java - have questions Gene Wirchenko <genew@telus.net> - 2015-01-26 09:19 -0800
Re: Returning to Java - have questions Jerry Stuckle <jstucklex@attglobal.net> - 2015-01-26 13:10 -0500
Re: Returning to Java - have questions Gene Wirchenko <genew@telus.net> - 2015-01-26 11:23 -0800
Re: Returning to Java - have questions Jerry Stuckle <jstucklex@attglobal.net> - 2015-01-26 14:45 -0500
Re: Returning to Java - have questions Silvio <silvio@internet.com> - 2015-01-22 13:25 +0100
Re: Returning to Java - have questions Jerry Stuckle <jstucklex@attglobal.net> - 2015-01-22 09:09 -0500
WORKALIKES (was: Returning to Java - have questions) Jeff Higgins <jeff@invalid.invalid> - 2015-01-25 13:03 -0500
Re: WORKALIKES Jerry Stuckle <jstucklex@attglobal.net> - 2015-01-25 15:33 -0500
Page 4 of 4 — ← Prev page 1 2 3 [4]
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Date | 2015-01-26 15:18 -0500 |
| Message-ID | <ma67dp$544$1@dont-email.me> |
| In reply to | #30929 |
On 1/26/2015 3:00 PM, FredK wrote: > On Friday, January 23, 2015 at 4:27:52 PM UTC-8, Jerry Stuckle wrote: >> On 1/23/2015 5:26 PM, FredK wrote: >>> On Friday, January 23, 2015 at 8:49:33 AM UTC-8, Jerry Stuckle wrote: >>>> On 1/23/2015 10:52 AM, Jeff Higgins wrote: >>>>> On 01/23/2015 09:59 AM, Jerry Stuckle wrote: >>>>>> On 1/23/2015 8:08 AM, Jeff Higgins wrote: >>>>>>> On 01/22/2015 09:47 PM, Jerry Stuckle wrote: >>>>>>> >>>>>>>> >>>>>>>> Which has nothing to do with the look of a button when it is pushed. >>>>>>>> >>>>>>> <http://mail.openjdk.java.net/pipermail/openjfx-dev/2013-February/005874.html> >>>>>>> >>>>>>> >>>>>>> Maybe future iterations will give you public behaviors? >>>>>>> >>>>>> >>>>>> You really don't understand. This has NOTHING to do with skins. In >>>>>> swing it was very easy to set both the pressed and released images via >>>>>> the button's properties. With JavaFX you can only set the pressed image >>>>>> via CSS. >>>>> >>>>> OK, I'm glad you've got it sorted out. >>>>> So, you're now convinced there is one way to accomplish what you want. >>>>> That is not the way you want to doit. >>>>> Maybe file a feature request? >>>>> Anyway, happy to help. >>>>> >>>> >>>> No, your updates all along have shown you have no idea what I'm talking >>>> about. I appreciate your attempts to help, but you haven't understood a >>>> word I've said. >>>> >>>> But you can prove me wrong. Show me how I can change the pressed image >>>> if a Button object without using CSS. It has to work wither using the >>>> mouse or keyboard (including accelerator keys - IOW, every way a button >>>> may be pressed). >>>> >>>> In Swing, it's as simple as calling JButton.setPressedIcon(), passing >>>> the pressed image (an ImageIcon object). >>>> >>>>>> >>>>>> I see this as a step backwards. >>> >>> Try this: >>> Call button.setOnMousePressed() to register a callback for the press. >>> In that callback method, call button.setGraphic() to set the new image. >>> >> >> Fred, unfortunately, that only works for mouse clicks. It doesn't help >> with keyboard entry (which could be the space bar or an accelerator key). >> > > Well, you can just call button.setOnKeyPressed() to register a similar callback, which checks calls setGraphics() if the key is the appropriate key.. > Yes, but that adds even more complexity to something which is very easy to do in swing. Not to mention the fact you now need to keep track of the same information in two different places. And if you do enough callbacks it can start affecting performance. -- ================== Remove the "x" from my email address Jerry Stuckle jstucklex@attglobal.net ==================
[toc] | [prev] | [next] | [standalone]
| From | Jeff Higgins <jeff@invalid.invalid> |
|---|---|
| Date | 2015-01-22 21:26 -0500 |
| Message-ID | <m9sbkv$19t$1@dont-email.me> |
| In reply to | #30807 |
On 01/22/2015 08:59 PM, Jerry Stuckle wrote: > This action has been consistent since the first versions of Java (it is > also consistent with every GUI I know of for at least 25 years). Then why f*** with it?
[toc] | [prev] | [next] | [standalone]
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Date | 2015-01-22 21:48 -0500 |
| Message-ID | <m9scp0$4b2$2@dont-email.me> |
| In reply to | #30809 |
On 1/22/2015 9:26 PM, Jeff Higgins wrote: > On 01/22/2015 08:59 PM, Jerry Stuckle wrote: > >> This action has been consistent since the first versions of Java (it is >> also consistent with every GUI I know of for at least 25 years). > Then why f*** with it? > > I'm not changing the action at all. All I want to do is change the look of it when it is pushed. The default look does not work for my needs. -- ================== Remove the "x" from my email address Jerry Stuckle jstucklex@attglobal.net ==================
[toc] | [prev] | [next] | [standalone]
| From | Jeff Higgins <jeff@invalid.invalid> |
|---|---|
| Date | 2015-01-25 11:00 -0500 |
| Message-ID | <ma344e$b36$5@dont-email.me> |
| In reply to | #30811 |
On 01/22/2015 09:48 PM, Jerry Stuckle wrote: > On 1/22/2015 9:26 PM, Jeff Higgins wrote: >> On 01/22/2015 08:59 PM, Jerry Stuckle wrote: >> >>> This action has been consistent since the first versions of Java (it is >>> also consistent with every GUI I know of for at least 25 years). >> Then why f*** with it? >> >> > > I'm not changing the action at all. All I want to do is change the look > of it when it is pushed. The default look does not work for my needs. > Please provide an example that demonstrates the difference.
[toc] | [prev] | [next] | [standalone]
| From | Jeff Higgins <jeff@invalid.invalid> |
|---|---|
| Date | 2015-01-22 09:49 -0500 |
| Message-ID | <m9r2qd$dp6$1@dont-email.me> |
| In reply to | #30791 |
On 01/22/2015 09:07 AM, Jerry Stuckle wrote: > On 1/22/2015 6:48 AM, Jeff Higgins wrote: >> On 01/21/2015 11:06 PM, Jerry Stuckle wrote: >>> Hi, all >>> >>> Well, I'm just getting back into java after about a 15 year hiatus. I >>> did a bunch of it back then, both SE and EE, but then got off on other >>> projects. >>> >>> Now I want to get my fingers back into it and see massive changes. It's >>> going to take a log of getting used to. >>> >>> For instance, I was looking at a game I wrote back then (nothing fancy - >>> just something to play with). With Swing it's very easy to change the >>> look of buttons by loading a new image, i.d. when the player presses the >>> button. It seems with fx the only way you can change the button when >>> it's pressed/not pressed is via css. While I guess there are advantages >>> to doing it this way, I haven't seen them yet. And I'd rather be able >>> to control the button looks myself. >> >> extend SkinBase<C extends Control> >> and use Control.setSkin(Skin<?> value) >> > > Actually, I don't need to extend anything to set a static image - I can > just use setImage() and not have any text. I was responding to your statement above, "It seems with fx the only way you can change the button when it's pressed/not pressed is via css." How is using setImage() using CSS? I'm confused. > > But that doesn't tell me if the button is pressed or not, so I don't > know when to change the image to the pressed one. >
[toc] | [prev] | [next] | [standalone]
| From | Jeff Higgins <jeff@invalid.invalid> |
|---|---|
| Date | 2015-01-22 10:11 -0500 |
| Message-ID | <m9r43e$ipr$1@dont-email.me> |
| In reply to | #30796 |
On 01/22/2015 09:49 AM, Jeff Higgins wrote: > On 01/22/2015 09:07 AM, Jerry Stuckle wrote: >> On 1/22/2015 6:48 AM, Jeff Higgins wrote: >>> On 01/21/2015 11:06 PM, Jerry Stuckle wrote: >>>> Hi, all >>>> >>>> Well, I'm just getting back into java after about a 15 year hiatus. I >>>> did a bunch of it back then, both SE and EE, but then got off on other >>>> projects. >>>> >>>> Now I want to get my fingers back into it and see massive changes. >>>> It's >>>> going to take a log of getting used to. >>>> >>>> For instance, I was looking at a game I wrote back then (nothing >>>> fancy - >>>> just something to play with). With Swing it's very easy to change the >>>> look of buttons by loading a new image, i.d. when the player presses >>>> the >>>> button. It seems with fx the only way you can change the button when >>>> it's pressed/not pressed is via css. While I guess there are >>>> advantages >>>> to doing it this way, I haven't seen them yet. And I'd rather be able >>>> to control the button looks myself. >>> >>> extend SkinBase<C extends Control> >>> and use Control.setSkin(Skin<?> value) >>> >> >> Actually, I don't need to extend anything to set a static image - I can >> just use setImage() and not have any text. > > I was responding to your statement above, "It seems with fx the only > way you can change the button when it's pressed/not pressed is via css." > How is using setImage() using CSS? I'm confused. Adding to my confusion: Do you mean Labeled.setGraphic()? I don't see a setImage() other than within ImageView. > >> >> But that doesn't tell me if the button is pressed or not, so I don't >> know when to change the image to the pressed one. >> >
[toc] | [prev] | [next] | [standalone]
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Date | 2015-01-22 11:12 -0500 |
| Message-ID | <m9r7gj$10b$2@dont-email.me> |
| In reply to | #30796 |
On 1/22/2015 9:49 AM, Jeff Higgins wrote: > On 01/22/2015 09:07 AM, Jerry Stuckle wrote: >> On 1/22/2015 6:48 AM, Jeff Higgins wrote: >>> On 01/21/2015 11:06 PM, Jerry Stuckle wrote: >>>> Hi, all >>>> >>>> Well, I'm just getting back into java after about a 15 year hiatus. I >>>> did a bunch of it back then, both SE and EE, but then got off on other >>>> projects. >>>> >>>> Now I want to get my fingers back into it and see massive changes. >>>> It's >>>> going to take a log of getting used to. >>>> >>>> For instance, I was looking at a game I wrote back then (nothing >>>> fancy - >>>> just something to play with). With Swing it's very easy to change the >>>> look of buttons by loading a new image, i.d. when the player presses >>>> the >>>> button. It seems with fx the only way you can change the button when >>>> it's pressed/not pressed is via css. While I guess there are >>>> advantages >>>> to doing it this way, I haven't seen them yet. And I'd rather be able >>>> to control the button looks myself. >>> >>> extend SkinBase<C extends Control> >>> and use Control.setSkin(Skin<?> value) >>> >> >> Actually, I don't need to extend anything to set a static image - I can >> just use setImage() and not have any text. > > I was responding to your statement above, "It seems with fx the only > way you can change the button when it's pressed/not pressed is via css." > How is using setImage() using CSS? I'm confused. > >> >> But that doesn't tell me if the button is pressed or not, so I don't >> know when to change the image to the pressed one. >> > Sorry, it's setGraphic(). And while that sets the image, there is no way for me to determine whether I should be using the "normal" image or the "pressed" image. That seems to be only available via CSS. -- ================== Remove the "x" from my email address Jerry Stuckle jstucklex@attglobal.net ==================
[toc] | [prev] | [next] | [standalone]
| From | Jeff Higgins <jeff@invalid.invalid> |
|---|---|
| Date | 2015-01-25 11:01 -0500 |
| Message-ID | <ma345s$b36$6@dont-email.me> |
| In reply to | #30802 |
On 01/22/2015 11:12 AM, Jerry Stuckle wrote: > On 1/22/2015 9:49 AM, Jeff Higgins wrote: >> On 01/22/2015 09:07 AM, Jerry Stuckle wrote: >>> On 1/22/2015 6:48 AM, Jeff Higgins wrote: >>>> On 01/21/2015 11:06 PM, Jerry Stuckle wrote: >>>>> Hi, all >>>>> >>>>> Well, I'm just getting back into java after about a 15 year hiatus. I >>>>> did a bunch of it back then, both SE and EE, but then got off on other >>>>> projects. >>>>> >>>>> Now I want to get my fingers back into it and see massive changes. >>>>> It's >>>>> going to take a log of getting used to. >>>>> >>>>> For instance, I was looking at a game I wrote back then (nothing >>>>> fancy - >>>>> just something to play with). With Swing it's very easy to change the >>>>> look of buttons by loading a new image, i.d. when the player presses >>>>> the >>>>> button. It seems with fx the only way you can change the button when >>>>> it's pressed/not pressed is via css. While I guess there are >>>>> advantages >>>>> to doing it this way, I haven't seen them yet. And I'd rather be able >>>>> to control the button looks myself. >>>> >>>> extend SkinBase<C extends Control> >>>> and use Control.setSkin(Skin<?> value) >>>> >>> >>> Actually, I don't need to extend anything to set a static image - I can >>> just use setImage() and not have any text. >> >> I was responding to your statement above, "It seems with fx the only >> way you can change the button when it's pressed/not pressed is via css." >> How is using setImage() using CSS? I'm confused. >> >>> >>> But that doesn't tell me if the button is pressed or not, so I don't >>> know when to change the image to the pressed one. >>> >> > > Sorry, it's setGraphic(). And while that sets the image, there is no > way for me to determine whether I should be using the "normal" image or > the "pressed" image. That seems to be only available via CSS. > Please provide a runnable demonstration.
[toc] | [prev] | [next] | [standalone]
| From | Brixomatic <brixomatic@yahoo.com> |
|---|---|
| Date | 2015-01-25 22:49 +0100 |
| Message-ID | <MPG.2f2f8364a19e853f98969f@news.aioe.org> |
| In reply to | #30876 |
Just in case you didn't notice, Jeff and Jerry, you're flooding this newsgroup with your useless bitchfight. Could you be so kind and keep this group out of your marital war? Thank you. Kind regards, Wanja -- ..Alesi's problem was that the back of the car was jumping up and down dangerously - and I can assure you from having been teammate to Jean Alesi and knowing what kind of cars that he can pull up with, when Jean Alesi says that a car is dangerous - it is. [Jonathan Palmer]
[toc] | [prev] | [next] | [standalone]
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Date | 2015-01-25 16:58 -0500 |
| Message-ID | <ma3otl$9ec$1@dont-email.me> |
| In reply to | #30901 |
On 1/25/2015 4:49 PM, Brixomatic wrote: > > Just in case you didn't notice, Jeff and Jerry, you're flooding this > newsgroup with your useless bitchfight. Could you be so kind and keep > this group out of your marital war? Thank you. > > Kind regards, > Wanja > Wanja, Don't worry. I'm through with the troll. He obviously has no understanding on how buttons work, yet he continues to show how much of a fool he is. -- ================== Remove the "x" from my email address Jerry Stuckle jstucklex@attglobal.net ==================
[toc] | [prev] | [next] | [standalone]
| From | Gene Wirchenko <genew@telus.net> |
|---|---|
| Date | 2015-01-26 09:19 -0800 |
| Message-ID | <nntcca50etjl81d0ho2dq33i2p8ns1pp55@4ax.com> |
| In reply to | #30902 |
On Sun, 25 Jan 2015 16:58:44 -0500, Jerry Stuckle
<jstucklex@attglobal.net> wrote:
[snip]
>Don't worry. I'm through with the troll. He obviously has no
>understanding on how buttons work, yet he continues to show how much of
>a fool he is.
You are doing a fine job of that yourself. I do not know which
of you is right technically, but neither of you are doing a very good
job manners-wise.
Sincerely,
Gene Wirchenko
[toc] | [prev] | [next] | [standalone]
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Date | 2015-01-26 13:10 -0500 |
| Message-ID | <ma5vte$c8$2@dont-email.me> |
| In reply to | #30918 |
On 1/26/2015 12:19 PM, Gene Wirchenko wrote: > On Sun, 25 Jan 2015 16:58:44 -0500, Jerry Stuckle > <jstucklex@attglobal.net> wrote: > > [snip] > >> Don't worry. I'm through with the troll. He obviously has no >> understanding on how buttons work, yet he continues to show how much of >> a fool he is. > > You are doing a fine job of that yourself. I do not know which > of you is right technically, but neither of you are doing a very good > job manners-wise. > > Sincerely, > > Gene Wirchenko > I don't care about manners where trolls are concerned. I have no respect for them. -- ================== Remove the "x" from my email address Jerry Stuckle jstucklex@attglobal.net ==================
[toc] | [prev] | [next] | [standalone]
| From | Gene Wirchenko <genew@telus.net> |
|---|---|
| Date | 2015-01-26 11:23 -0800 |
| Message-ID | <tv4dcalserp3kvqp0f51u2d784vmsqemq2@4ax.com> |
| In reply to | #30922 |
On Mon, 26 Jan 2015 13:10:21 -0500, Jerry Stuckle
<jstucklex@attglobal.net> wrote:
>On 1/26/2015 12:19 PM, Gene Wirchenko wrote:
>> On Sun, 25 Jan 2015 16:58:44 -0500, Jerry Stuckle
>> <jstucklex@attglobal.net> wrote:
>>
>> [snip]
>>
>>> Don't worry. I'm through with the troll. He obviously has no
>>> understanding on how buttons work, yet he continues to show how much of
>>> a fool he is.
>>
>> You are doing a fine job of that yourself. I do not know which
>> of you is right technically, but neither of you are doing a very good
>> job manners-wise.
>I don't care about manners where trolls are concerned. I have no
>respect for them.
What about the rest of the newsgroup readers and their respect
for you? Acting like a twit because a troll is acting badly is still
acting like a twit.
Sincerely,
Gene Wirchenko
[toc] | [prev] | [next] | [standalone]
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Date | 2015-01-26 14:45 -0500 |
| Message-ID | <ma65fd$rvg$2@dont-email.me> |
| In reply to | #30925 |
On 1/26/2015 2:23 PM, Gene Wirchenko wrote: > On Mon, 26 Jan 2015 13:10:21 -0500, Jerry Stuckle > <jstucklex@attglobal.net> wrote: > >> On 1/26/2015 12:19 PM, Gene Wirchenko wrote: >>> On Sun, 25 Jan 2015 16:58:44 -0500, Jerry Stuckle >>> <jstucklex@attglobal.net> wrote: >>> >>> [snip] >>> >>>> Don't worry. I'm through with the troll. He obviously has no >>>> understanding on how buttons work, yet he continues to show how much of >>>> a fool he is. >>> >>> You are doing a fine job of that yourself. I do not know which >>> of you is right technically, but neither of you are doing a very good >>> job manners-wise. > >> I don't care about manners where trolls are concerned. I have no >> respect for them. > > What about the rest of the newsgroup readers and their respect > for you? Acting like a twit because a troll is acting badly is still > acting like a twit. > > Sincerely, > > Gene Wirchenko > Says the twit... And quite frankly, I'm too old to care what twits like you think of me, either. I've learned it just isn't worth it. -- ================== Remove the "x" from my email address Jerry Stuckle jstucklex@attglobal.net ==================
[toc] | [prev] | [next] | [standalone]
| From | Silvio <silvio@internet.com> |
|---|---|
| Date | 2015-01-22 13:25 +0100 |
| Message-ID | <54c0ec55$0$2901$e4fe514c@news.xs4all.nl> |
| In reply to | #30780 |
On 01/22/2015 05:06 AM, Jerry Stuckle wrote: > Hi, all > > Well, I'm just getting back into java after about a 15 year hiatus. I > did a bunch of it back then, both SE and EE, but then got off on other > projects. > > Now I want to get my fingers back into it and see massive changes. It's > going to take a log of getting used to. > > For instance, I was looking at a game I wrote back then (nothing fancy - > just something to play with). With Swing it's very easy to change the > look of buttons by loading a new image, i.d. when the player presses the > button. It seems with fx the only way you can change the button when > it's pressed/not pressed is via css. While I guess there are advantages > to doing it this way, I haven't seen them yet. And I'd rather be able > to control the button looks myself. > > So my first question is - are there events I can intercept to tell when > the button is pressed and when it is released? All I see so far is the > ACTION event. > > And I'll also ask a short question with I suspect long (and very > subjective) answers. Which IDE do you like for developing Java apps, > and why? Most will be standalone gui apps for now. And please - I know > which IDE can be almost a religious discussion - let's not commit any > sins against other IDE's :) > > TIA, > Jerry > For the IDE part you could check out Eclipse, Netbeans or Intellij IDEA. I personally prefer Eclipse but they will all do just fine. Cheers, Silvio
[toc] | [prev] | [next] | [standalone]
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Date | 2015-01-22 09:09 -0500 |
| Message-ID | <m9r09p$3pv$2@dont-email.me> |
| In reply to | #30788 |
On 1/22/2015 7:25 AM, Silvio wrote: > On 01/22/2015 05:06 AM, Jerry Stuckle wrote: >> Hi, all >> >> Well, I'm just getting back into java after about a 15 year hiatus. I >> did a bunch of it back then, both SE and EE, but then got off on other >> projects. >> >> Now I want to get my fingers back into it and see massive changes. It's >> going to take a log of getting used to. >> >> For instance, I was looking at a game I wrote back then (nothing fancy - >> just something to play with). With Swing it's very easy to change the >> look of buttons by loading a new image, i.d. when the player presses the >> button. It seems with fx the only way you can change the button when >> it's pressed/not pressed is via css. While I guess there are advantages >> to doing it this way, I haven't seen them yet. And I'd rather be able >> to control the button looks myself. >> >> So my first question is - are there events I can intercept to tell when >> the button is pressed and when it is released? All I see so far is the >> ACTION event. >> >> And I'll also ask a short question with I suspect long (and very >> subjective) answers. Which IDE do you like for developing Java apps, >> and why? Most will be standalone gui apps for now. And please - I know >> which IDE can be almost a religious discussion - let's not commit any >> sins against other IDE's :) >> >> TIA, >> Jerry >> > > For the IDE part you could check out Eclipse, Netbeans or Intellij IDEA. > I personally prefer Eclipse but they will all do just fine. > > Cheers, > > Silvio > Thanks, Silvio. I have both Eclipse and NetBeans; like any IDE they each have advantages and disadvantages. I'll also check out Intellij IDEA. Just wanting to find out from the experts what they like :) -- ================== Remove the "x" from my email address Jerry Stuckle jstucklex@attglobal.net ==================
[toc] | [prev] | [next] | [standalone]
| From | Jeff Higgins <jeff@invalid.invalid> |
|---|---|
| Date | 2015-01-25 13:03 -0500 |
| Subject | WORKALIKES (was: Returning to Java - have questions) |
| Message-ID | <ma3b9m$eg0$1@dont-email.me> |
| In reply to | #30780 |
On 01/21/2015 11:06 PM, Jerry Stuckle wrote:
> Hi, all
>
> Well, I'm just getting back into java after about a 15 year hiatus. I
> did a bunch of it back then, both SE and EE, but then got off on other
> projects.
>
> Now I want to get my fingers back into it and see massive changes. It's
> going to take a log of getting used to.
>
> For instance, I was looking at a game I wrote back then (nothing fancy -
> just something to play with). With Swing it's very easy to change the
> look of buttons by loading a new image, i.d. when the player presses the
> button. It seems with fx the only way you can change the button when
> it's pressed/not pressed is via css. While I guess there are advantages
> to doing it this way, I haven't seen them yet. And I'd rather be able
> to control the button looks myself.
>
> So my first question is - are there events I can intercept to tell when
> the button is pressed and when it is released? All I see so far is the
> ACTION event.
>
> And I'll also ask a short question with I suspect long (and very
> subjective) answers. Which IDE do you like for developing Java apps,
> and why? Most will be standalone gui apps for now. And please - I know
> which IDE can be almost a religious discussion - let's not commit any
> sins against other IDE's :)
>
Swing, and JavaFX classes that work alike.
import java.awt.EventQueue;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFrame;
public class HellowSwing extends JFrame {
public HellowSwing() {
JButton btn = new JButton("HelloSwing");
btn.setIcon(new ImageIcon("/home/jeff/bomb_fuse_unlit.png"));
btn.setPressedIcon(new ImageIcon("/home/jeff/bomb_fuse_lit.png"));
btn.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
System.out.println("Button Clicked");
}
});
add(btn);
pack();
setTitle("HellowSwing");
setSize(300, 200);
setDefaultCloseOperation(EXIT_ON_CLOSE);
}
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
@Override
public void run() {
new HellowSwing().setVisible(true);
}
});
}
}
**************************************************
import javafx.application.Application;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.image.ImageView;
import javafx.scene.layout.StackPane;
import javafx.stage.Stage;
public class HelloFx extends Application {
@Override
public void start(Stage primaryStage) {
Button btn = new Button();
btn.setText("HellowFX");
btn.setGraphic(new ImageView("file:///home/jeff/bomb_fuse_unlit.png"));
btn.armedProperty().addListener(new ChangeListener<Boolean>() {
@Override
public void changed(ObservableValue<? extends Boolean> observable,
Boolean oldValue, Boolean newValue) {
if(oldValue == false && newValue == true) {
btn.setGraphic(new
ImageView("file:///home/jeff/bomb_fuse_lit.png"));
}
if(oldValue == true && newValue == false){
btn.setGraphic(new
ImageView("file:///home/jeff/bomb_fuse_unlit.png"));
}
}
});
btn.setOnAction(new EventHandler<ActionEvent>() {
@Override public void handle(ActionEvent e) {
System.out.println("Button Clicked");
}
});
StackPane root = new StackPane();
root.getChildren().add(btn);
Scene scene = new Scene(root, 300, 250);
primaryStage.setTitle("HelloFX");
primaryStage.setScene(scene);
primaryStage.show();
}
public static void main(String[] args) {
launch(args);
}
}
[toc] | [prev] | [next] | [standalone]
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Date | 2015-01-25 15:33 -0500 |
| Subject | Re: WORKALIKES |
| Message-ID | <ma3juk$kuv$1@dont-email.me> |
| In reply to | #30890 |
On 1/25/2015 1:03 PM, Jeff Higgins wrote:
> On 01/21/2015 11:06 PM, Jerry Stuckle wrote:
>> Hi, all
>>
>> Well, I'm just getting back into java after about a 15 year hiatus. I
>> did a bunch of it back then, both SE and EE, but then got off on other
>> projects.
>>
>> Now I want to get my fingers back into it and see massive changes. It's
>> going to take a log of getting used to.
>>
>> For instance, I was looking at a game I wrote back then (nothing fancy -
>> just something to play with). With Swing it's very easy to change the
>> look of buttons by loading a new image, i.d. when the player presses the
>> button. It seems with fx the only way you can change the button when
>> it's pressed/not pressed is via css. While I guess there are advantages
>> to doing it this way, I haven't seen them yet. And I'd rather be able
>> to control the button looks myself.
>>
>> So my first question is - are there events I can intercept to tell when
>> the button is pressed and when it is released? All I see so far is the
>> ACTION event.
>>
>> And I'll also ask a short question with I suspect long (and very
>> subjective) answers. Which IDE do you like for developing Java apps,
>> and why? Most will be standalone gui apps for now. And please - I know
>> which IDE can be almost a religious discussion - let's not commit any
>> sins against other IDE's :)
>>
>
> Swing, and JavaFX classes that work alike.
>
> import java.awt.EventQueue;
> import java.awt.event.ActionEvent;
> import java.awt.event.ActionListener;
>
> import javax.swing.ImageIcon;
> import javax.swing.JButton;
> import javax.swing.JFrame;
>
> public class HellowSwing extends JFrame {
>
> public HellowSwing() {
>
> JButton btn = new JButton("HelloSwing");
> btn.setIcon(new ImageIcon("/home/jeff/bomb_fuse_unlit.png"));
> btn.setPressedIcon(new ImageIcon("/home/jeff/bomb_fuse_lit.png"));
> btn.addActionListener(new ActionListener() {
> public void actionPerformed(ActionEvent e) {
> System.out.println("Button Clicked");
> }
> });
> add(btn);
> pack();
> setTitle("HellowSwing");
> setSize(300, 200);
> setDefaultCloseOperation(EXIT_ON_CLOSE);
> }
>
> public static void main(String[] args) {
>
> EventQueue.invokeLater(new Runnable() {
> @Override
> public void run() {
> new HellowSwing().setVisible(true);
> }
> });
> }
> }
>
> **************************************************
>
> import javafx.application.Application;
> import javafx.beans.value.ChangeListener;
> import javafx.beans.value.ObservableValue;
> import javafx.event.ActionEvent;
> import javafx.event.EventHandler;
> import javafx.scene.Scene;
> import javafx.scene.control.Button;
> import javafx.scene.image.ImageView;
> import javafx.scene.layout.StackPane;
> import javafx.stage.Stage;
>
> public class HelloFx extends Application {
>
> @Override
> public void start(Stage primaryStage) {
> Button btn = new Button();
> btn.setText("HellowFX");
> btn.setGraphic(new ImageView("file:///home/jeff/bomb_fuse_unlit.png"));
>
> btn.armedProperty().addListener(new ChangeListener<Boolean>() {
> @Override
> public void changed(ObservableValue<? extends Boolean> observable,
> Boolean oldValue, Boolean newValue) {
> if(oldValue == false && newValue == true) {
> btn.setGraphic(new
> ImageView("file:///home/jeff/bomb_fuse_lit.png"));
> }
> if(oldValue == true && newValue == false){
> btn.setGraphic(new
> ImageView("file:///home/jeff/bomb_fuse_unlit.png"));
> }
> }
> });
>
> btn.setOnAction(new EventHandler<ActionEvent>() {
> @Override public void handle(ActionEvent e) {
> System.out.println("Button Clicked");
> }
> });
>
> StackPane root = new StackPane();
> root.getChildren().add(btn);
>
> Scene scene = new Scene(root, 300, 250);
>
> primaryStage.setTitle("HelloFX");
> primaryStage.setScene(scene);
> primaryStage.show();
> }
>
> public static void main(String[] args) {
> launch(args);
> }
> }
>
>
Which is NOT the same - but you're too stoopid to understand that.
Trolls are like that, however.
So even this code - which is much more complicated than
JButton.setPressedIcon() - doesn't do the same thing.
Jeff, all you're doing is further making a fool of yourself. And after
your previous updates, that's pretty hard to do.
--
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex@attglobal.net
==================
[toc] | [prev] | [standalone]
Page 4 of 4 — ← Prev page 1 2 3 [4]
Back to top | Article view | comp.lang.java.programmer
csiph-web