Brian Pipa

Ranch Hand
+ Follow
since Sep 29, 2003
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
(keep public parts private until JForum day)
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt
Moderation Tools

Recent posts by Brian Pipa

I had a similar problem with one of my apps. What I eneded up doing was putting all my classes plus the two 3rd-party jars into a single jar by having an Ant task extract the 3rd-party jars to my target directory then jarring up the contents. Works fine for me with 2 different apps. If anyone wants to see the apps and/or the ant build file that does it, let me know. Email me at pipasoft.com and use my first name in the email address.

brian
13 years ago
Neither one of those are IDEs.
13 years ago

if they loose their cheese



loose should be lose
13 years ago
There are some tools you can use for this.
JFrameBuilder http://www.mars3000.com/
JVider http://www.jvider.com/

They do mockups and output the source for you to use in your projects

brian
13 years ago
Take a look at the Source for JMP3Renamer (http://sourceforge.net/projects/jmp3renamer/)
look at the HelpDialog class.

brian
13 years ago
If you just have one slider, you can also try using the UIManager to set the default colors. There are 5 that deal with sliders:
Slider.background
Slider.focus
Slider.foreground
Slider.highlight
Slider.shadow

You can use them like so:
UIManager.put("Slider.foreground", Color.red);
UIManager.put("Slider.focus", Color.red);
UIManager.put("Slider.highlight", Color.red);
UIManager.put("Slider.shadow", Color.red);
UIManager.put("Slider.background", Color.red);

This changes a JSlider to MOSTLY red - there is still a rectangle of the metal purple color. Must be some other UIManger setting to get that to change colors. I didn't look around for it.

Brian
13 years ago
The way I solved this for FileNabber ( http://filenabber.com/filenabber.html ) was to use frames. The top frame did the actual uploading and the bottom frame requested the progress percentage for the current upload.

Brian
13 years ago
JSP
I tried it and it worked fine for me. What version of java are you using? (type java -version to find out). My guess is that you are not using a version that is 1.4 or greater. Here is how I figured it out:

The error says NoSuchmethodError and gives you line 12 in your code.
line 12 is this:
JFrame.setDefaultLookAndFeelDecorated(true);
A quick check of the javadocs for Jframe.setDefaultLookAndFeelDecorated() says:
"Since: 1.4 "
Which means this method was added starting at 1.4.
This means any JVM before 1.4 won't have that method and would give you a NoSuchMethodError.

So, either take out that line, or upgrade to a 1.4 or better JVM (I recommend upgrading)

brian
13 years ago
If you mean a GUI editor, try JFRameBuilder - http://www.mars3000.com/download.html it's free. I only played wit hit for a few minutes but it looked pretty good.
Brian
13 years ago
Hi all,

I have a JMS queue setup on JBoss and it works fine. I'm trying to figure out how to set the number of messages on the queue that get processed at a time. I heard/read somewhere that the default was 5 or 10, but I need to change this. I have googled and can't find the answer to this anywhere and I know you can set this. I don't wnat to set the number of messages that can be on the queue at once, but rather, the number of messages that get processed at a time.

Thanks in advance,
brian
13 years ago
One way to do it (and it's how I did this in both of my apps) is to use


and pass in a custom panel as the message. In the panel, you layout your components and message like you want them and add a button that says something like "Visit Website" or whatever. Add an ActionListener to the button so that when it is clicked it uses the BrowserLauncher class (http://browserlauncher.sf.net ) to send the user to the web site.

If you don't want a button, you could make a clickable custom component that looks like a weblink and add that instead. I have written this component and keep meaning to release it as open source (free) but there are some brief examples of it floting around on the net.

If you don't understand any of this or want to see a code example, let me know.

brian
13 years ago
I found this in one of my classes. Not sure where I got it:

[ June 08, 2004: Message edited by: Brian Pipa ]
13 years ago
throws say it might throw sometime in the future
throw does the throwing NOW

Brian
13 years ago