No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
16 Posted Topics
[code=java] final String cardListStrings[] = {"First Card", "Next Card", "Previous Card", "Last Card"}; cardList = new JList(cardListStrings); cardList.setVisibleRowCount(4); cardList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); cardList.addListSelectionListener( new ListSelectionListener() { public void valueChanged(ListSelectionEvent e) { System.out.println("Inside List Event Handler"); if (cardList.getSelectedIndex()== 0) { cardManager.first(deck); System.out.println("First Card"); } if (cardList.getSelectedIndex()== 1) { cardManager.next(deck); System.out.println("Next Card"); } if (cardList.getSelectedIndex() … | |
[url]http://www.swell.com/Guys-Shoes[/url] At this site (address) when the onmouseover event is fired it zooms in automatically to a closeup of the shoe. What technology is this? It's also used when you click on the shoe, i.e. [url]http://www.swell.com/Guys-Shoes/ZOOM-CUSH-WAKE-SHOE?cs=BR[/url] and the user clicks on the image of the shoe and it is displayed … | |
Hi, There is too much space between the Organized in / Pioneered by text and the Text Input Areas. How do you shrink this amount of space? [code=html] <html> <head> <title>Prefecture History and Facts</title></head> <body><h1>Prefecture History / Facts</h1><hr> <table> <tr> <td>4th Prefecture of New York State, U.S.A. </td> <tr> <td … | |
Hello, I have this piece of code. [code=java] private Vector getColumn(ResultSet rs) throws SQLException { Vector row = null; ResultSetMetaData rsmd = null; boolean moreResults = rs.next(); if (moreResults) { row = new Vector(); rsmd = rs.getMetaData(); do { switch(rsmd.getColumnType(1)) { case Types.VARCHAR: row.addElement(rs.getString(1)); System.out.println(rs.getString(1)); break; case Types.INTEGER: row.addElement(new Integer(rs.getInt(1))); … | |
Hello, I have this piece of code. Help with Code Tags java Syntax (Toggle Plain Text) [code=java] private Vector getColumn(ResultSet rs) throws SQLException { Vector row = null; ResultSetMetaData rsmd = null; boolean moreResults = rs.next(); if (moreResults) { row = new Vector(); rsmd = rs.getMetaData(); do { switch(rsmd.getColumnType(1)) { … | |
I wrote this simple java program to test the repaint mechanism in Java for my Eclipse IDE (not that it works on XCode either). The repaint() mechanism is not repainting, it does not erase the code previous to it in the graphic. It should according to everything I've read. Help … | |
[code=java] class ListToolsFrame extends JInternalFrame { JLabel titleLabel; JButton exitButton; JTextArea outputArea; RandomAccessFile rafFile; ListToolsFrame(RandomAccessFile raf) { StringBuffer buf2; rafFile = raf; try { rafFile.seek(0); } catch (IOException e1) { System.err.println("rafFile.seek(0)"); } JPanel jp = new JPanel(new BorderLayout()); buf2 = listTools(); titleLabel = new JLabel("List Of Tools"); exitButton = new … | |
Hey, Any suggestions on how to stop a IOException: Negative Seek Offset problem? -- Curtis | |
Hi Guys (and Girls), Problem: Negative seek offset with respect to a RandomAccessFile's seek method. [code=java] private void writeRecord() { String v[] = inputUI.getValues(); raR = new RaRecord(Integer.parseInt(v[GeneralUI.RECORD]), v[GeneralUI.TOOLNAME], Integer.parseInt(v[GeneralUI.QUANTITY]), Double.parseDouble(v[GeneralUI.COST])); try { file.seek(raR.getRecordNumber()-1 * RaRecord.size()); } catch (IOException e1) { e1.printStackTrace(); } try { raR.write(file); } catch (IOException e) … | |
Re: Whatsup, I'm sure at this point you know how to read the input from the keyboard. Here's the reversal code. Later. -- LiveWire [code=java] public class StringReversal { public static void main(String args[]) { String str= "", str2 = "you're the man"; char ch[] = str2.toCharArray(); for(int i = ch.length-1; … | |
Hi people, Yeah, so I have an application that works. The code is not buggy and I have worked hard on it. It is three files long but the section I need help with is small. It is the paintComponent section. It is a multi-threaded application and if you want … | |
Hi, I currently use Eclipse as my IDE. I'm looking for instructions on how to integerate my Java code with HTML in the Eclipse enviornment or what IDE I can use in conjunction that will allow me to do so. Any advise would be appreciated. -- LiveWire | |
Hi, Everything else in this code works properly but the keyTyped method is not working properly. I have been working on this for sometime. Any help would be appreciated. Also, any advice on getting my southPanel to appear when I start the application? It appears but only after I expand … | |
Hi People, I am trying to run this file but I am having trouble getting the program to incorporate the gif file that I need. Here's the program. // Demonstrating JDesktopPane import javax.swing.*; import java.awt.event.*; import java.awt.*; public class DesktopTest extends JFrame { public DesktopTest() { super("Using a JDesktopPane"); JMenuBar … | |
Is it safe to assume that any object that is preceded with the letter 'J' is a member of the Swing package? Just trying to get lightweight versus heavyweight components sorted properly. Thanks. -- Curtis | |
Hi, I'm having trouble with using and updating graphics in a JFrame. I'll include my code below along with some classes. They're necessary for the program to work properly. The issue is that the paint method is painting over my UI. Then it won't display the graphics. I don't have … |
The End.