953 Posted Topics
Re: I can't see reason for creating ArrayList<Match> look for (Vector<Vector<Object>> rowData, <Vector<String>columnNames) some loop.... Vector<Object> row = newVector<Object>(); row.add(hostid); row.add(guestid); row.add(matchid); row.add(result); rowData.add(row) end of some loop.... or better DefaultTableModel#addRow, then just JTable#setModel(DefaultTableModel) | |
Re: not stop -> loop -> play I hope that help you | |
Re: s/he is my winner your small mistake is directly in line: 2 | |
Re: UIManager.put (key, font); rellated for UIManager.put("Button.font", font); UIManager.put("ToggleButton.font", font); UIManager.put("RadioButton.font", font); UIManager.put("CheckBox.font", font); UIManager.put("ColorChooser.font", font); UIManager.put("ComboBox.font", font); UIManager.put("Label.font", font); UIManager.put("List.font", font); UIManager.put("MenuBar.font", font); UIManager.put("MenuItem.font", font); UIManager.put("RadioButtonMenuItem.font", font); UIManager.put("CheckBoxMenuItem.font", font); UIManager.put("Menu.font", font); UIManager.put("PopupMenu.font", font); UIManager.put("OptionPane.font", font); UIManager.put("Panel.font", font); UIManager.put("ProgressBar.font", font); UIManager.put("ScrollPane.font", font); UIManager.put("Viewport.font", font); UIManager.put("TabbedPane.font", font); UIManager.put("Table.font", font); UIManager.put("TableHeader.font", font); UIManager.put("TextField.font", … | |
Re: static final String newline = System.getProperty("line.separator"); if returns null then is possible to define that System.setProperty("Whatever"), sure valid until current instance exists | |
Re: @javaNooblet consider using [URL="http://download.oracle.com/javase/tutorial/uiswing/components/formattedtextfield.html"]JFormattedTextField[/URL] instead of JTextField, example about how to use Number instance included getValue() from JFormattedTextField is in form [CODE]((Number)amountField.getValue()).doubleValue();[/CODE] | |
Re: I can't see there any problem :-) | |
Re: tutorial about [URL="http://download.oracle.com/javase/tutorial/2d/printing/index.html"]Printing[/URL], but carrefully with Services and atributess | |
Re: search for [URL="http://stackoverflow.com/tags/java-web-start/info"]Java Web Start[/URL] | |
Re: there are lots of mistakes in this thread, there are problems with Concurency in the Swing, redirecting hardiest and longiest code to the Background Thread (open Connection, basic I/O, unknow paint() instead of paintCompoentn(), close connection ....) for diplaying images in the Java GUI is better look for [URL="http://download.oracle.com/javase/tutorial/uiswing/components/label.html"]JLabel[/URL], because … | |
Re: Swing tutorial is probably best place for that, there are everything about [URL="http://download.oracle.com/javase/tutorial/uiswing/components/table.html"]JTable[/URL] inc examples, another [URL="http://www.java2s.com/Code/Java/Swing-JFC/CatalogSwing-JFC.htm"]here[/URL], if you'll have reall question, with specific problem, then don't forget to ask ... | |
Re: [URL="http://download.oracle.com/javase/tutorial/uiswing/index.html"]Swing turotial[/URL] shows [URL="http://download.oracle.com/javase/tutorial/uiswing/layout/card.html"]CardLayout[/URL] as best option for lots of different views | |
Re: that's job for [URL="http://download.oracle.com/javase/tutorial/uiswing/components/slider.html"]JSlider[/URL] or [URL="http://download.oracle.com/javase/tutorial/uiswing/components/spinner.html"]JSpinner[/URL] | |
![]() | Re: that reason why [URL="http://download.oracle.com/javase/tutorial/uiswing/misc/action.html"]javax.swing.Action[/URL] exists, then you can forgot for override KeyBindings, PropertyChangeListener and MouseListener, |
Re: all of Swing JComponents can returns PreferredSize by default, or you can help them by usingfor example [CODE]JTextField myTextField = new JTextField(15) JTextArea myTextArea = new JTextArea (20, 5) JComboBox myComboBox = new JComboBox () myComboBox.setPrototypeDisplayValue("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")[/CODE]; | |
Re: [URL="http://download.oracle.com/javase/6/docs/api/java/util/Collections.html"]Collections.sort()[/URL] | |
Re: why if you use IDE then you have to advantage, only to swith the Language n the Project properties, I can't to heard that someone had problem with that, isn't it | |
Re: just stupid question, are you tried runing that as JFrame instead of JApplet, because from Java1.6_025 there are some changes about Security | |
Re: don't use Thread#sleep(int) for GUI, because could be generated unexpected output to the GUI, that's for Thread, Executor for GUI is there [URL="http://download.oracle.com/javase/tutorial/uiswing/misc/timer.html"]javax.swing.Timer[/URL] | |
Re: redirect capture screen to the BackGroung Task for example Runnble#Thread, SwingWorker, or for periodical Executor & java.util.Timer, succes with plain java.util.Timer is possible, but is ugly (my view), then GUI lives separate life, doeasn't freeze or waits for something ends | |
Re: [URL="http://download.oracle.com/javase/tutorial/uiswing/components/table.html#sorting"]here[/URL] | |
Re: sorry for my input, because I'm not professional, and with my knowledge about Java would be a great impudence coding anything in this PL :-) JXTreeTable or Outline by Netbeans are basen on JTreeTable (again somebody sometimes to forgot for something, for JTreeTable especially, long time without any progress) | |
![]() | Re: I'm not sure if I understood the language of your trunk ... [CODE]import java.awt.*; import javax.swing.*; import javax.swing.border.EmptyBorder; import javax.swing.text.*; public class TestDigitsOnlySpinner { public static void main(String... args) { SwingUtilities.invokeLater((Runnable) new Runnable() { @Override public void run() { JSpinner jspinner = makeDigitsOnlySpinnerUsingDocumentFilter(); jspinner.setFont(new Font("Dialog", Font.BOLD | Font.PLAIN, 18)); JPanel … |
Re: can you print out your Java version, because from Java 1.6_025 is there some restiction | |
Re: you closing "stmt" in one of another subquery statements 1/ you have to declare stmt twice because concur thread that used statemet can closed that as you can see in your error from JDBC Driver 2/ declare only variables valid for concrete try-catch-finally block or void | |
Re: IDE is almost better for profesionals, everything is there automatically, but there are everything most complex, most automatically, there is everything and IDE is for fastest programing as exists, IDE don't learning you Java programing language, just writing code is easiest that's your decision | |
Re: @Majestics I really love your opened questions, but this one could be the best of ..., 1) I miss question 2) I miss question here 3) I miss question here for given topic 4) why did you ask this question 5) I miss there real question, Android isn't complicated so … | |
Re: [CODE]My application should reflect a tree structre with about 8000 members but directly under the root there are maximum 15 members.[/CODE] correct why not, there I can't see any issues with performence or freeze, but see my next comment [CODE]Its clear that each time a user open the application he … | |
Re: [CODE]AbstractButton abstractButton = (AbstractButton) event.getSource(); boolean selected = abstractButton.getModel().isSelected();[/CODE] | |
Re: wrap [I]jTextArea1.append(data);[/I] into invokeLater(); | |
![]() | Re: [url]http://download.oracle.com/javase/tutorial/uiswing/components/index.html[/url] and [url]http://www.jfree.org/jfreechart/[/url] |
Re: and what did you tried, nothing complicated 1) (for fun, but safiest way) get popup from JComboBox.getComponent[0] 2) or directly add JList with pre-definned popup for its Items | |
Re: [url]http://www.java2s.com/Code/SQL/Date-Time/Date-Compare-Order.htm[/url] | |
Re: you have to edit genetrated code and swith to the expected L&F or as you mentioned to the [URL="http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/nimbus.html"]Nimbus Look and Feel[/URL] | |
Re: JComboBox has two states EDITABLE and Non-EDITABLE yes that works as JTextFields, because JComboBox is compound JComponents, you can extract (be sure that is L&F sensitive don9t exxpect that definitions for Metal L&F can works on OS MAC.getSystemLook...) JButton of JTextField all JComponetns has own Model, and for non-editable Components … | |
Re: @Ezzaral very good point +1 @sealxlion don't mixing Java AWT Frame with Swing JFrame, that really road to the hell, for todays GUI is required --> all Components must starts with Char [B]J[/B] then Frame fram = new Frame(); should be JFrame fram = new JFrame(); and as @Ezzaral suggested … | |
Re: @lena1990 [URL="http://download.oracle.com/javase/tutorial/uiswing/components/table.html"]nothing complicated[/URL] | |
Re: for me google works as expected, take only code from java2.com, there is workaround in two classes, one for JComboBox, 2nd. for JtextField (and this one I love so much with redirect the suggestion to the JDialog/JWindow) 1/ you can set if is strict or not 2/ no performance issues … | |
Re: you have two options (valid for all LayoutManegers excluding AbsoluteLayout) 1/ jumping with [URL="http://download.oracle.com/javase/tutorial/uiswing/components/toplevel.html"]Top-Level Container[/URL] on the Screen, then look for [CODE]pack();[/CODE] 2/ jumping with expected [URL="http://download.oracle.com/javase/tutorial/uiswing/components/panel.html"]JPanel[/URL], then look for [CODE] JPanel#setPreferredSize(new Dimension(int, int)) JPanel#revalidate(); JPanel#repaint(); [/CODE] both are valid, but for OP' is required second from options, any ideas … | |
Re: for JComboBox you have to change Listener from ActionListener to the [URL="http://download.oracle.com/javase/tutorial/uiswing/events/itemlistener.html"]ItemListener[/URL], I know that [URL="http://download.oracle.com/javase/tutorial/uiswing/components/combobox.html"]official tuturial[/URL] descibed ActionListener, if you want to make some changes to inside, back to the JComboBox then look for ActionListener, for output from JComboBox to the GUI is almost better ItemListener | |
Re: that really wrong way, but in other hands works too, but for whole JVM instance post by @JamesCherrill goes another direction, then could it be same as you set any methotds for JLabel, JPanel .... that isn't Custom JToolTip, just override vanilla UI | |
Re: [url]http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html[/url], sometime, someone to forgot for something to implemets, nothing else | |
Re: are meaning A&14 == A00014 A&150 == A00150 don't do it that, that really stupid idea, subString() or String.format [CODE]import java.util.ArrayList; import java.util.Arrays; import java.util.List; public class GenerateProgresId { private static String[] aChar = {"A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", … | |
Re: just as @NormR1 suggested debug alighment to the FloorsLines by using System.out.println(someValue); 1/ still you have problem with TOP & BOTTOM, where elevator JUMP-OUT (2-3 pixels) 2/ same for each FLOOR [CODE]import java.awt.*; import java.awt.event.*; import javax.swing.*; // The Main class, The ButtonPanel class receives and handles button pressing events … | |
Re: isn't DataManager methods that comings only from sqljdbc4.jar by Microsoft | |
Re: [url]http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html[/url] | |
Re: @hfx642 Choise is pre-dinosaurus form of JComboBox that comning from Java AWT and silently died in the last centaury | |
Re: [CODE]SwingUtilities.invokeLater(new Runnable() { @Override public void run() { textArea.setText(someString); } });[/CODE] |
The End.