2.1.1 Window Fails to Draw

Subscribe to 2.1.1 Window Fails to Draw 13 post(s), 6 voice(s)

 
Avatar Kenyx 2 post(s)

I just downloaded the new 2.1.1. When it opens, all button, menus (menu titles), auction listings/lines, and column headers do not show up. At least, not until I Mouse Over them. Also, as far as the auction line, I must click on each individual item (for instance the “Shipping” for each line) to view it. However, the “Number” column will not show any data.

I am running Win 7, 32-bit on an HP. Just let me know if you want any more info.

What can be done, please?

 
Avatar Frank P. fro... 41 post(s)

… just about the same her (MacOS 10.4.11, JBW 2.1.1) items in the completed list just show for a short time, when I scroll the window content.

 
Avatar tidris 49 post(s)

I also see redraw problems on the “complete” and “selling” tabs under Ubuntu 9.10. I have a large number auctions on both of those tabs and I suspect the problem is related to that. On the “current” tab I only have half a dozen auctions and it redraws fine.

 
Avatar tidris 49 post(s)

I can make all my JBW 2.1.1 redrawing problems in Linux to go way by changing AuctionEntry::isJustAdded to this:

public boolean isJustAdded() { Date d = getDate("created_at"); return (d != null) && (d.getTime() > (System.currentTimeMillis() - (Constants.ONE_MINUTE * 5))); }

There were a bunch of exceptions coming from there before because getDate() returns null often and the code wasn’t checking for that.

 
Avatar jebradl 4 post(s)

I’ve also had problems with the display not functioning correctly.
In tidris’s post from yesterday (9/9), he states that changing AuctionEntry""isJustAdded can correct the problems. Which file is this in? I’ve unzipped and cat/grep’d for that string, and can’t seem to find it. I don’t mind editing a file if I have to, if it corrects the problem.
Thanks.

 
Avatar tidris 49 post(s)

Look for “public boolean isJustAdded()” in file AuctionEntry.java. You need to get the source code from the git repository to get this change done.

 
Avatar jebradl 4 post(s)

I have found and edited the string, ‘isJustAdded()’ and have installed the JDK, but I’m at a loss as to compiling the jar file for jbidwatcher. What command do I need to use to perform the compile?
Thank you.

 
Avatar tidris 49 post(s)

The command you are looking for is ant. On Linux the command throws an error message at the very end of the process while trying to build the Windows executable, but that’s OK because the jar has already been built by then.

 
Avatar jebradl 4 post(s)

OK. I’ve now installed ant, but when I run it from the jbidwatcher-2.1.1 directory I get the following message

BUILD FAILED
/home/jebradl/jbidwatcher/jbidwatcher-2.1.1/build.xml:122: /home/jebradl/jbidwatcher/jbidwatcher-2.1.1/src not found.

I don’t even find a src subdirectory names as such. What do I need to edit.

 
Avatar tidris 49 post(s)

I recommend you start from scratch. Get a fresh copy of the source code from the git repository and if you do it right (and nothing interrupts the process) a src subdirectory will be present. This is the command I use to get the source code:

git clone git://github.com/cyberfox/jbidwatcher.git

Note the current AuctionEntry.java file from git already has the change I posted above, so all you will have to do is use the ant command to build the jar file.

 
Avatar jallawalla 2 post(s)

Thanks for the advice in this thread. I’m on mac os x, I’ve got the source via git and run ant. Solved a couple of minor problems, but I can’t get past the error below
jbidsource/build.xml:248: Execute failed: java.io.IOException: Cannot run program “launch4j”: error=2, No such file or directory

I’ve got a copy of launch4j and I expect ant is expecting something on the path or current directory. I’ve put a lot of the files in the main directory where build.xml is, but no luck.

I’ve also looked through build.xml looking for the directory variable for launch4j, but no luck. Bear in mind I’m not a programmer!

Can anyone point me in the right direction? Thanks.

 
Avatar Morgan Schweers Administrator 1,069 post(s)

Greetings,
launch4j will be run without a specific directory, so it has to be someplace in your current PATH, i.e. you should be able to type: which launch4j and it should give a result.

That said, you shouldn’t need launch4j to build the Mac OS X version of JBidwatcher. Just type: ant osx and it should build an OS X JBidwatcher-2.1.1.app.tar.gz file in the current directory.

— Morgan Schweers, CyberFOX!

 
Avatar jallawalla 2 post(s)

wow. it worked.

thanks v much

screen refresh problem gone