| Thread | Last Post | Replies |
|
| Limit size of JOptionPane with JScrollPane as msg field | 10 Apr 2007 21:37 GMT | 3 |
I'm using a JTextArea inside a JScrollPane inside a JPanel as the "msg" field in a JOptionPane. Trouble is, my JTextArea has many lines, and the JOptionPane expands to accommodate it. I need to limit the height of my JOptionPane, but for the life of me I can't find the
|
| Default JTree Icons | 10 Apr 2007 20:00 GMT | 2 |
I have a JTree whose icons I have changed through my own tree cell renderer (which extends DefaultTreeCellRenderer). I overrode the method: Component getTreeCellRendererComponent. For the most part, the renderer works. The icons are changed based on
|
| icon image on JToolBar | 10 Apr 2007 19:49 GMT | 2 |
Hi, I'm working on an application that uses a toolbar. I have written the code below. My problem is that the icons that I'm using are of different sizes that's why the the toolbar doesn't look so good. Is there a way to make the buttons of the same sizes? Thanks..
|
| question about keeping the GUI and logic separate | 10 Apr 2007 19:08 GMT | 5 |
I have a question about keeping logic/processing code off of the GUI. In a couple of other languages I'm familiar with, there is usually a method called FindComponent which will iterate through a form and get the component matching the name in the argument.
|
| problem with Connection from GUI | 10 Apr 2007 10:52 GMT | 1 |
I have problem with JDBC. I am using netBeans 5.5 along with MySQL 5.0 And connector/J Driver for the same. I have installed it properly.The program doesn't work.
|
| JWindow : Shape != rectangle ?? | 09 Apr 2007 19:13 GMT | 4 |
I'm trying to create a window that has not the ususal rectangle form but a roundrectangle form. How can I do this ? All I can do is create a JWindow and than draw a roundrectangle but I still
|
| Title bar on jinternalframe on java for Mac | 09 Apr 2007 17:48 GMT | 1 |
I have a swing app where I catch mouse clicks on the frame icon of jinternalframes. I do so using this code: ((BasicInternalFrameUI) jinternalFrame.getUI()).getNorthPane() .addMouseListener(new MouseAdapter() {
|
| Strange GUI problem... | 09 Apr 2007 16:38 GMT | 6 |
Its hard to distill into an SSCCE, so I'll describe the problem as well as I can... I have a (rather complex) view, layed out with GridBagLayout. It contains a JPanel in the very middle, which has a slightly transparent
|
| Displaying text from a gridview row bound to SQL server | 09 Apr 2007 16:29 GMT | 1 |
I was hoping to know how I could get the text value of a gridview row. My code is this way: <asp:GridView ID="GridView1" runat="server" AllowSorting="True" AutoGenerateColumns="False"
|
| Adding and removing items in a JPanel, why not showing up? | 08 Apr 2007 03:26 GMT | 1 |
I'm trying to remove a button, and replace it with another component, when a specific event happens. The following code doesn't seem to work correctly, what am I missing? import javax.swing.*;
|
| Can someone tell me why my JList isn't updating? | 07 Apr 2007 05:40 GMT | 2 |
I've got two lists and one button, ( you can run the code below to see it ), top list is a listing of the current directory, press the button and the selected files above should get moved into the list below. When I step through it, it looks like it is doing the right
|
| How to connect to other JFrame ? | 07 Apr 2007 02:16 GMT | 2 |
I created 2 JFrame forms. After I clicked first JFrame, it open the second JFrame. I would like to close the first JFrame when second JFrame is open. How can I do ? private void jRadioButton1ActionPerformed(java.awt.event.ActionEvent
|
| Layer JPanels ? | 05 Apr 2007 19:15 GMT | 3 |
I'm new to Java and trying to create a simple GUI for the first time. Is it possible to layer JPanels and setVisible one at a time ? I'm creating 3 JPanels, and I want to show 1 of the 3 on the main JFrame Content Pane under menu control.
|
| How to prevent a long JLabel from affecting its container size? | 05 Apr 2007 19:04 GMT | 4 |
I want to have a long JLabel, but I dont want my entire dialog to be sized based on this long JLabel -- I want the JLabel to wrap, & I want the dialog size to be set by other controls. So I want something like this if the control (for ex. a JTextField) is
|
| Error logging | 04 Apr 2007 14:37 GMT | 2 |
i am looking for a solution to log the errors in my application, how schould i proceed to do that? i will be enough if i could save any print trace of any exception that happens .
|