Fuqiang Zhao

Greenhorn
+ Follow
since Jan 07, 2004
Merit badge: grant badges
For More
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
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Fuqiang Zhao

JComponentPack is a Java Swing GUI library, a visual JavaBeans collection, it's based on the Swing MVC architecture and 100% pure Java, it includes more than 20 components that Swing haven't, such as excel style Java spreadsheet component, database enabled Java table component, calendar, list view, wizard framework and many more, these beans can drag to your GUI form directly, all the components are ready to use, they can improve your productivity, accelerate your project development process, save time, reduce costs for your team.


Release Notes: http://www.zfqjava.com/docs/componentpack/relnotes.html

Evaluation Version Download: http://www.zfqjava.com/download.html

JComponentPack Plug-in for NetBeans IDE: http://www.zfqjava.com/plugins.html

Product Website: http://www.zfqjava.com/
13 years ago
New Features:

Adds new JDataGrid Spreadsheet Server Components, the JDataGrid Spreadsheet Server Components is a new innovation in JComponentPack 3.0, it's different with the traditional Applet-Servlet communication components, all configuration can be completed on the server, the JDataGrid spreadsheet clients includes JDataGrid spreadsheet Applet only need specify the servlet URI, then the license will setup automatically, open and save the spreadsheet file will work magically.

JDataGridApplet and JDataGridBeanApplet start to support the new server components.

Adds new JavaFX component "DataGrid" and "DataGridBean", you can use these components in your JavaFX script directly, these JavaFX component also support the new server components.

Product Overview:
JComponentPack is a Java Swing GUI library, a visual JavaBeans collection, it's based on the Swing MVC architecture and 100% pure Java, it includes more than 20 components that Swing haven't, such as excel style Java spreadsheet component, database enabled Java table component, calendar, list view, wizard framework and many more, these beans can drag to your GUI form directly, all the components are ready to use, they can improve your productivity, accelerate your project development process, save time, reduce costs for your team.


Release Notes of the latest version
Product Page
Company Homepage
13 years ago
It seems that the JScrollPane is not dynamic in your program.
What's the layout manager that your JScrollPane parent container use?
Can you post some code?
18 years ago
I like these books:
1.Java Tutorial (Begin Swing)
2.Java look and feel guideline (Specification)
3.Java Performance Guide (Read n time)
4.Java Effective Programming (Read n++ time)
18 years ago
The problem is not in this method:
getPreferredScrollableViewportSize()

you should look the JScrollablePanel class or use the following method:
public boolean getScrollableTracksViewportWidth() {
return true;
}
public boolean getScrollableTracksViewportHeight() {
return true;
}
18 years ago
The DefaultTableModel in javax.swing.table package provides this feature.
18 years ago
Hi,Gregg
The layout manager included in the JDK have not provide such feature, you can take a look the JOptionPane UI class button layout and JFileChooser UI class button layout, but they are not good enough.
And I have notice the StringLayout have add some feature in Jdk1.5, maybe
add this feature.
You also take a look the jgoodies form layout, It have host in java.net, and free to use.
Our company have release a layout suite, and it's commercial.
18 years ago
You can overide the method:
JSlider.setValue(int)
18 years ago
The Frame can be maximum and minimum and dialog cannot, in office software, it cannot use multiple document interface, just open new frame for every file, in this case, you cannot use dialog.
In other case, use dialog is preferred.
18 years ago
table.setFocusTraversalKeys(KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS, null);
table.setFocusTraversalKeys(KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS,
null);
table.setFocusCycleRoot(false);
18 years ago
overide the methd:
paintComponent(Graphics g)
and set the border to null
setBorder(null)
18 years ago
The code have two problems:
1.You should not add the "upperPanel" to contentPane, and then add
it to JSplitPane, the Java GUI container only permit add component
to one container.
2.You should use setPreferredSize intead of setMinimumSize for the
"upperPanel".
change you code to:
upperPanel.setPreferredSize(new Dimension(300, 150));
and remove the code:
contentPane.add(upperPanel, BorderLayout.NORTH);
18 years ago
If you use jdk1.5, you can use the MouseInfo object, for details, please visit:
http://java.sun.com/j2se/1.5.0/docs/api/java/awt/MouseInfo.html
Hope that helps!
18 years ago
Why not use the following code:
ImageIcon icon = new ImageIcon(file.toURL());
instead of your mass code:
String ImgName = file.getPath();
ImgName = file.toString();
ImgName = ImgName.replace('\\','/');
18 years ago