953 Posted Topics

Member Avatar for sirlink99

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 :-)

Member Avatar for mKorbel
0
146
Member Avatar for bangor_boy
Member Avatar for SolidSora

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]

Member Avatar for mKorbel
0
148
Member Avatar for thes0mething

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]

Member Avatar for JamesCherrill
0
2K
Member Avatar for yancouto

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 …

Member Avatar for hanvyj
0
1K
Member Avatar for shyla

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

Member Avatar for shyla
0
254
Member Avatar for ksj

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 …

Member Avatar for mKorbel
0
1K
Member Avatar for sj5536
Member Avatar for mKorbel
0
91
Member Avatar for virus.exe

first, start with [url]http://download.oracle.com/javase/tutorial/essential/exceptions/index.html[/url]

Member Avatar for mKorbel
0
73
Member Avatar for dedeltek
Member Avatar for itsmeisuru

which printer you meant 1/ Printing device with paper outPut 2a/ Print to File 2b/ print to Pdf File 3/ something unknow printer

Member Avatar for jon.kiparsky
0
93
Member Avatar for Dean_Grobler

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,

Member Avatar for masijade
0
370
Member Avatar for JPramod

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]

Member Avatar for mKorbel
0
743
Member Avatar for sumprit

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

Member Avatar for mKorbel
0
145
Member Avatar for MrHardRock

java is strictly: 1/ CaseSensitive 2/ Method Sensitive, (replace binary to myBinary) maybe someone can help you with error

Member Avatar for cretaros
0
155
Member Avatar for cretaros
Member Avatar for ggyyree

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

Member Avatar for Ezzaral
0
169
Member Avatar for yosi501r

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 …

Member Avatar for mKorbel
0
184
Member Avatar for stupid guy

put that (java.security......) to google (I'd preferred links to official Oracle Pages)

Member Avatar for mKorbel
0
397
Member Avatar for tracydo

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]

Member Avatar for JamesCherrill
0
122
Member Avatar for kako13

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]

Member Avatar for mKorbel
0
98
Member Avatar for Jessurider

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; …

Member Avatar for jwenting
0
129
Member Avatar for scarletfire

[CODE]System.out.println("Player's details: NameIs > " + p.getName()+ " AgeIs > " + p.getAge()+ " HeightIs > " + p.getHeight()+" WeightIs > " + p.getWeight());[/CODE]

Member Avatar for scarletfire
0
162
Member Avatar for sumprit

official Java Tutorial contains good example for that [url]http://download.oracle.com/javase/tutorial/index.html[/url] , its basic start point for you

Member Avatar for javaAddict
0
158
Member Avatar for Chitru
Member Avatar for sumprit

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]

Member Avatar for sumprit
0
112
Member Avatar for ubi_ct83

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

Member Avatar for ubi_ct83
0
105
Member Avatar for rosey_fci

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]

Member Avatar for mKorbel
0
63
Member Avatar for sciprog1
Member Avatar for sciprog1
0
2K
Member Avatar for Effrego

sure, why not [url]http://www.java2s.com/Code/Java/File-Input-Output/Appendstringtoatextfile.htm[/url]

Member Avatar for masijade
0
67
Member Avatar for ARaza110

crossposted [url]http://stackoverflow.com/questions/5632113/httpsession-session-getattribute-problem[/url]

Member Avatar for mKorbel
0
404
Member Avatar for cwarn23

:-) 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/ …

Member Avatar for cwarn23
0
211
Member Avatar for jdm
Member Avatar for jdm
0
2K
Member Avatar for kodera
Member Avatar for pooran.c

[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

Member Avatar for mKorbel
0
111
Member Avatar for yosi501r

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]

Member Avatar for yosi501r
0
454
Member Avatar for Nooshin Z

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

Member Avatar for Nooshin Z
0
90
Member Avatar for cretaros
Member Avatar for Armanious

[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]

Member Avatar for Armanious
0
395
Member Avatar for cwarn23

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]

Member Avatar for mKorbel
0
2K
Member Avatar for joseph.roy9
Member Avatar for aanders5

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 …

Member Avatar for aanders5
0
152
Member Avatar for MrHardRock

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

Member Avatar for mKorbel
0
172
Member Avatar for shiv0013

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]

Member Avatar for mKorbel
0
558
Member Avatar for smokin745

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

Member Avatar for mKorbel
0
160
Member Avatar for rjdelight

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 …

Member Avatar for mKorbel
0
1K
Member Avatar for smokin745

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 …

Member Avatar for smokin745
0
180
Member Avatar for chester1908

mainPanel.setLayout(new BorderLayout(10, 10)); mainPanel.add(display, BorderLayout.NORTH); mainPanel.add(background, BorderLayout.CENTER); etc

Member Avatar for mKorbel
0
198
Member Avatar for gingerfish

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 …

Member Avatar for gingerfish
0
229
Member Avatar for dangari

The End.