Abhishek Kumar

Results 43 comments of Abhishek Kumar
trafficstars

JFileChooser in Windows and Ubuntu is setting the filesize from two different files. In ubuntu, the method "public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int...

> > In Windows, it uses ShellFolder to set FileSize column values and it is returned in terms of bytes in stead of KB (as shown by native tools). >...

File size shown in native is upto 1 decimal value. Now JFileChooser also shows filesize upto 1 decimal value similar to native. There is a change in conversion factor from...

Created a directory with bug-id (8288882) name under "open/test/jdk/javax/swing/JFileChooser". Added manual test case file "FileSizeCheck.java" along with some dummy files to perform filesize checks.

ZeroFileSizeCheck file has been deleted as it is moved to different directory and is of no longer use.

![GTK_LAF](https://user-images.githubusercontent.com/107542245/180388673-72e06cc4-840c-474b-8821-2a735f27e0d8.png) ![Nimbus_LAF](https://user-images.githubusercontent.com/107542245/180388679-4a6bf8ce-ff09-48e7-8065-b5be046770c1.png) Attached the screenshot for GTK LAF and Nimbus LAF for JFileChooser. In GTK LAF, JFileChooser doesn't show the file size. In Nimbus, JFileChooser shows file sizes correctly.

Declared a variable "baseFileSize to replace 1000.0 value. Method formatToDoubleValue has been moved inside class DetailsTableCellRenderer.

@prrace @andy-goryachev-oracle There are few changes as per review comments, so request to please review them.

> 1. Do not check in files - you can generate these at run time and then delete them > > 2. This also means you don't need the extra...

@andy-goryachev-oracle Checked in Oracle Linux and it shows file size similar to native.