Andrew Cho

Ranch Hand
+ Follow
since Jun 29, 2011
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
13
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Andrew Cho

Thanks everyone,
I just went ahead and wrote my own.
Took a while since it was my first, but well worth it as it does exactly what I want.

Thanks again,
Andrew
7 years ago
Hey Darryl,
Thanks for your input, however, I'm not sure that I understand what this code does. It seems as if it just resizes the JLabels normally...
7 years ago
Hey all,

Does anyone know of a class, package, or a way that I can convert a Microsoft Word doc to a StyledDocument or anything that keeps the format of the Word doc? I know how to use WordExtractor.getText() of the POIBox by Apache, but keeping the format is important for the project I am working on.

Thanks,
Andrew
Hey all,

Does anyone know of a good way to keep a certain aspect ratio of a Component, when the Container is resized?

Much appreciated,
Andrew
7 years ago
Very helpful, guys.
Rob, your WrapLayout is exactly what I was looking for.

Thanks
Andrew
7 years ago
Wow that second part was exactly what I was looking for. It works perfectly .

Thank you so much,
Andrew
7 years ago
Hey all,

Does anyone know how to make a JTable fill a container vertically? I don't want to hard code the row size since my GUI needs to be resizable at runtime.

Thanks,
Andrew
7 years ago
Thanks, I just overrode the method in the JTable class anyways.
7 years ago
That is exactly what I mean. Thank you so much.
Do you by any chance know how I could add individual JToolTips to table cells? I'm assuming it has do do with the CellRenderer
7 years ago
Hey all,

I was wondering if there is some sort of label that can show up next to the mouse cursor when there's an event, such as mouseEntered or something. I've looked around for a while and can't find anything. If anyone has any ideas, that would be great.

Thanks,
Andrew
7 years ago
Hey thanks for your reply Darryl.
Unfortunately, the BorderLayout has the same problem, where the buttons in the headerPanel disappear into the second row of the FlowLayout.
7 years ago
Hey all,

I have a GUI that has a JScrollPane (scrollPane) and a JPanel (headerPanel) inside another JPanel (mainPanel). I used GridBagConstraints with the GridBagLayout for mainPanel and a FlowLayout for headerPanel. I also weighted the components so scrollPane takes up the unused space of headerPanel. The only problem is that when the Flowlayout moves components in headerPanel to another row (as it should), the GridBagLayout of mainPanel cuts off the additional rows.

So my question, is there a way to have the GridBagLayout accommodate for extra rows of a FlowLayout, when the component with the FlowLayout is weighted less than the other components?

here is my SSCCE:


As you can see, not all of the buttons show up, but if you expand the JFrame window, the buttons move to the first row of the FlowLayout.

Thanks for any help,
Andrew
7 years ago
Ok, Thank you guys
7 years ago
Oh so you can use the archive attribute to access more than one .jar file?
I did not know that.
Would it just look like
?

Thanks,
Andrew
7 years ago
Thanks Paul,
I actually am already using archive to access the .jar file that contains my applet class and its supporting files. I'm just wondering if I can use archive in the applet tag to access my applet, and have that access a different jar file outside of the jar that contains my applet.
So let's say I have MyApplet.jar and MySupportFiles.jar. If they are in the same directory, and my HTML page accesses the MyApplet.jar with the archive attribute, could it then use classes that are in MySupportFiles.jar?

Thanks again,
Andrew
7 years ago