953 Posted Topics
Re: great topic, great sugestion, stupid reply but you are big star on this small heaven(s) then here comings ... [url]http://download.oracle.com/javase/tutorial/uiswing/events/index.html[/url] don't forget look at KeyBindings too with my intention to avoids to continue this thread :-) | |
Re: 1/ change prehistorical Applet to JApplet, then change paint to paintComponent, better would be put image to JPanel or JLabel [url]http://download.oracle.com/javase/tutorial/2d/images/index.html[/url] , [url]http://download.oracle.com/javase/tutorial/uiswing/components/icon.html[/url] 2/ put your Images to jar 3/ check [url]http://download.oracle.com/javase/tutorial/deployment/applet/security.html[/url] | |
Re: plus this line must be moved on last line in the current method, because you showed container before its painting ends [CODE]panel.setVisible(true);[/CODE] | |
Re: don't do that [CODE]I created a JComponent and every 20 milliseconds it is repainted [/CODE] because latency from Native OS are always more than 63ms, yes is possible to paint every 50ms but you have to implements DirtyRegion to avoids GUI's freeze or RepaintManagerError, start with 100ms, better would be … | |
Re: JLabel [url]http://download.oracle.com/javase/tutorial/uiswing/components/label.html[/url] and LayoutManager [url]http://download.oracle.com/javase/tutorial/uiswing/layout/border.html[/url] then application.add (panel, BorderLayout.CENTER); application.add (label, BorderLayout.SOUTH); don't forget to set PreferredSize for JLabel | |
Re: remove AbstactTableModel, start with DefaultTableModel and set Class for TableColumn corectly with class I meaning somthing like as .... [CODE] @Override public Class<?> getColumnClass(int colNum) { switch (colNum) { case 0: return Integer.class; case 1: return Date.class; case 2: return Date.class; case 3: return Integer.class; case 4: return Double.class; case … | |
Re: AutoComplete(d) JComboBox/JTextField/JFormattedTextField | |
Re: first, start with [url]http://download.oracle.com/javase/tutorial/essential/exceptions/index.html[/url] | |
| |
Re: which printer you meant 1/ Printing device with paper outPut 2a/ Print to File 2b/ print to Pdf File 3/ something unknow printer | |
Re: and you must be sure that topLayoutContainer [url]http://download.oracle.com/javase/tutorial/uiswing/components/toplevel.html[/url] is just and only JApplet not Applet, | |
Re: check ProcessBuilder too [url]http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html[/url] Edit change preHistorical Applet to JApplet and check [url]http://download.oracle.com/javase/tutorial/deployment/applet/security.html[/url] | |
Re: there are 3.links about those [url]http://download.oracle.com/javase/tutorial/index.html[/url] or (more confortable is goinin throught tons of examples) at [url]http://www.java2s.com/Code/Java/Database-SQL-JDBC/CatalogDatabase-SQL-JDBC.htm[/url] Edit: GroupableTableHeader check on java2s (tons of examples for JTable, TableHeader, DefaultTableModel)if isn't there better example for that, and your topic nothings to do with header | |
Re: java is strictly: 1/ CaseSensitive 2/ Method Sensitive, (replace binary to myBinary) maybe someone can help you with error | |
Re: for MsAccess issue I'd preffered MySql (crossPlatfors, owned and supported by Oracle too), with ODBC for Win and importEngine (various DbEngines) for data directly from MsAccess on Win OS, where is already instaled MsAccess too | |
Re: if you have WinOS, then you have a lots of problems with localizations and CharEncode, you needed only add (maybe always) corrext EncodePage (Charset) for File and Streams [CODE] String fileEncoding = System.getProperty("file.encoding"); System.out.println("File Encoding: " + fileEncoding); System.out.println("Char Encoding: " + charEncoding); System.out.println("Char Encoding: " + Charset.availableCharsets()); InputStream in … | |
Re: put that (java.security......) to google (I'd preferred links to official Oracle Pages) | |
Re: for full ... [CODE] if (x=>5) y=1; else if (x<5) { [/CODE] or [CODE] if (x>5) y=1; else if (x<=5) { [/CODE] | |
Re: create new Node [url]http://download.oracle.com/javase/tutorial/uiswing/components/tree.html[/url] [url]http://www.java2s.com/Code/Java/Swing-JFC/CatalogSwing-JFC.htm[/url] | |
Re: start with calculator view, replace all int to double, in all classes I don't want to help you with that longer ..., nothing special but view to GUI is correct, not nice or .... [CODE]import java.awt.event.*; import java.awt.*; import java.math.RoundingMode; import java.rmi.*; import java.text.NumberFormat; import javax.swing.JApplet; import javax.swing.JButton; import javax.swing.JFormattedTextField; … | |
Re: [CODE]System.out.println("Player's details: NameIs > " + p.getName()+ " AgeIs > " + p.getAge()+ " HeightIs > " + p.getHeight()+" WeightIs > " + p.getWeight());[/CODE] | |
Re: official Java Tutorial contains good example for that [url]http://download.oracle.com/javase/tutorial/index.html[/url] , its basic start point for you | |
Re: just remove [CODE]}[/CODE] from line34th. | |
Re: there is everything (i never used that, but it look like as ...) [url]http://wiki.openstreetmap.org/wiki/Main_Page[/url] and [url]http://wiki.openstreetmap.org/wiki/Beginners%27_guide[/url] | |
Re: yes, 1/ build Timer and on periodical bases check DbTable(s) 2/ there are exist one or two API's for MySql, which will notify Java program about MySql Table Events = INSERT/UPDATE/DELETE, sorry I forgot its name(s) you have to search for that | |
Re: what's [CODE] fill all the cells in the table [/CODE], [url]http://download.oracle.com/javase/tutorial/uiswing/components/table.html[/url] tons of examples [url]http://www.java2s.com/Code/Java/Swing-JFC/CatalogSwing-JFC.htm[/url] | |
Re: on this page is detailed tutorial [url]http://www.jgrapht.org/[/url] | |
Re: sure, why not [url]http://www.java2s.com/Code/Java/File-Input-Output/Appendstringtoatextfile.htm[/url] | |
Re: crossposted [url]http://stackoverflow.com/questions/5632113/httpsession-session-getattribute-problem[/url] | |
Re: :-) where you dug this dinosaur, Applet is too long died, JApplet is expired too and with lasts JRE updatd with *** AccessPrivilege issues :-) your thread have two results as follows 1/ you want to publish to net, strange workArond for applet security [url]http://forums.oracle.com/forums/thread.jspa?threadID=2205420&tstart=0[/url] [url]http://forums.oracle.com/forums/thread.jspa?threadID=2189526&tstart=0[/url] (follows attached links) 2/ … | |
Re: if(myCheckBox.isSelected()){ myCheckBox.setSelected(false); } | |
Re: uuups :-) [CODE] void foo(char... k) [/CODE] | |
Re: [CODE]I need to implement gregorian calendar in java[/CODE] [CODE]yes i dont want to use GregrianCalendar class. Need implement without that[/CODE] please don't forget to tell us who finally won | |
Re: i never ..., but i think that you need search for InputStream [url]http://download.oracle.com/javase/tutorial/essential/io/index.html[/url] [url]http://www.java2s.com/Code/Java/File-Input-Output/CatalogFile-Input-Output.htm[/url] [url]http://www.java2s.com/Code/Java/Tiny-Application/FileDownloadManager.htm[/url] [url]http://www.java2s.com/Code/Java/Tiny-Application/Browser.htm[/url] | |
Re: please read/check/write code, then ask specific question(s), your descriptions fully covered these links: [url]http://download.oracle.com/javase/tutorial/essential/concurrency/index.html[/url] [url]http://www.java2s.com/Code/Java/Threads/CatalogThreads.htm[/url] or write plain vanilla Thread and ask for that (by your above mentioned describtions) but step by step | |
| |
Re: [url]http://download.oracle.com/javase/tutorial/uiswing/components/editorpane.html[/url] your any outPut always will be out of EDT [url]http://download.oracle.com/javase/tutorial/uiswing/concurrency/index.html[/url] | |
Re: opacities is sometimes needed (overlap) method but is for parent JComponet (JPanel or JLabel) which hold Image or ImageIcon, but (theory) read this one [url]http://en.wikipedia.org/wiki/Transparency_and_translucency[/url] | |
Re: for whick one, you can use google for that | |
Re: maybe not, [CODE]and I just browse to the folder on my desktop, selected the image, and hit ok. It then shows up on the GUI for Netbeans[/CODE] please look for JFrame instead of JAplet (sure if you don't want to distibute this applications on WEB), otherwise please search for restictions … | |
Re: JLabel isn't for userInput look for JTextField, but for Number is better to look for [url]http://download.oracle.com/javase/tutorial/uiswing/components/formattedtextfield.html[/url] with Number formatter allows to input only numbers and lots of another newbee mistakes | |
Re: yes there are lots of way, but starts with JTextField, yes option exists, there are TableCellEditor ples TableCellRenderer 1/ search for AutoComplete(d) JTextField (JComboBox coantains JTextfield too) 2/ put that to TableCell basic stuff for JTable [url]http://download.oracle.com/javase/tutorial/uiswing/components/table.html[/url] search examples for that in folder for TableCellRenderer plus Editor [url]http://www.java2s.com/Code/Java/Swing-JFC/CatalogSwing-JFC.htm[/url] | |
Re: basic stuff for JTable [url]http://download.oracle.com/javase/tutorial/uiswing/components/table.html[/url] tons of examples [url]http://www.java2s.com/Code/Java/Swing-JFC/CatalogSwing-JFC.htm[/url] but back to your question model#removeRow(intSelectedRow/rows), but selected row or rows depends by [url]http://www.java2s.com/Tutorial/Java/0240__Swing/1111__Table-Selection.htm[/url] and for TableSelection(s) that you have to implement [url]http://download.oracle.com/javase/tutorial/uiswing/events/listselectionlistener.html[/url] exanples [url]http://www.java2s.com/Tutorial/Java/0260__Swing-Event/0460__ListSelectionListener.htm[/url] altogether is about 8-12 code lines | |
Re: there are lots of mistakes then [CODE]import java.awt.*; import javax.swing.*; public class Main { private String text = ""; public static void main(String[] args) { JTextArea textarea = new JTextArea(); JFrame frame = new JFrame(); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setLayout(new BorderLayout()); frame.add(textarea, BorderLayout.CENTER); frame.setResizable(false); frame.setLocation(400, 200); frame.setPreferredSize(new Dimension(300, 300)); frame.pack(); frame.setVisible(true); } public … | |
Re: I didn't tried that.... 1/ remove all static declarations for JComponents 2/ probably you need to put JButtons to JPanel instead of JToolbar, or put Menu to JFrame 3/ change popup JFrame to JDialog, isn't need to create everytimes new one, built that on start with setVisible(false) and if you … | |
Re: mainPanel.setLayout(new BorderLayout(10, 10)); mainPanel.add(display, BorderLayout.NORTH); mainPanel.add(background, BorderLayout.CENTER); etc | |
Re: and [CODE]String[][] data = {{"", "", ""}, {"", "", ""}, {"", "", ""}, {"", "", ""}, {"", "", ""}, {"", "", ""}}[/CODE] or [CODE]String [] data= {"", "","", "", "", "", "", ""};[/CODE] are you kidding, if not then you have to **** which one, and then we can play … | |
Re: please authors site contains that |
The End.