953 Posted Topics
Re: maaaaaan :-) [CODE]f.setBounds(100, 100, 300, 300); == f.setLocation(100,100);[/CODE] | |
Re: well, 1/ that's very bad idea create more than one JFrame, replace that with JDialog 2/ that's very bad idea helt lots of JFrames/JDialog at Runtime, replace its contents (switch with JPanel inside) 3/ one JFrame + two max. three JDialog | |
![]() | Re: that's very layz process open/close DB connections repeatedly, for intensive ... just open Db connection on Applications StartUp, and close that with Apps Exit sure there are exists option put conn to the Timer and close that on some time is app is unused ![]() |
Re: and before that check for null and isEmpty [CODE]if (a != null && a.length() > 0) { // some subString }[/CODE] | |
Re: if TopLayoutContainer [url]http://download.oracle.com/javase/tutorial/uiswing/components/toplevel.html[/url] was already visible 1/ if you want/need to add JComponent(s) to the Container (JPanel, JFrame), then you have call [CODE]someContainersName.add(someJComponetsName); //EDIT corect method is add someContainersName.revalidate(); someContainersName.repaint(); // just in some cases [/CODE] 1/ if you want/need to remove JComponent(s) from the Container (JPanel, JFrame), then you … | |
Re: no idea, I never used this JComponents, anyway have look 1/ [url]http://bugs.sun.com/[/url] 2/ check differencies between JDK5 and JDK 6, check JDK6 changeLog , there are lots of changes for parts of APIs 3/ post runnable code here but just contains a.m. decribed JComponents | |
Re: 1/ your problem is increasing ball by each collision, then lots of collisions produce new and new and new balls, really you overkill JVM, 2/ output is because you have to loop inside Array, not pure system.o...(myArray) | |
Re: agreed with \007, because there is rich support, daily bugs updating, lots of free plugind, endless 3.rd side non-Free plugins with reall support by Author(s), once per year new (really) version Eclipse - required by majorities Codings Companies, supported excelent Teams Codding, only this IDE correctly supported lots of FrameWorks … | |
Re: hmmm [CODE]textPane.setText(textPane.getText() + "\LineSepartor" + sList.get(i).toString());[/CODE] | |
Re: @ dante5458, we not sent code, google can help you , there are tons of free code, just want to ... | |
![]() | Re: [CODE]Font[/CODE] nothing to do with displayed [CODE]Color[/CODE], [CODE]setForeground()[/CODE] is method what you looking for ![]() |
Re: problem is in the form, please edit your post, select whole Java Code, and select by mouse Code Tags button "[CODE]" | |
Re: I doesn't see any differencies between if - esle if - else and switch- default, nor with performancies, :-) and doesn't call that applications semaphore if contains only 25 methods :-) | |
Re: i put that to the google, but nothing really I do't know, nothin with ipv4/ipv6, maybe someone knows but today is still Fri 13th. | |
Re: 1/ that not good idea to wrap another try - catch - finally block into another one | |
Re: 1/ for any animations in Swing (JComponent) is required use of java.swing.Timer, not plain thread (is possible, but with more stuff than ...) 2/ never, really never use in Swing code Thread.sleep(int), EDT issues 3/ look for JLabel plus ImageIcon (similair for JPanel) 4/ painting directly to the JComponent is … | |
Re: hmmm there is one problem, Java directly supported Html upTo version 3.2 | |
![]() | Re: @Ezzaral [CODE]making each of the inner classes static.[/CODE] not sure with that, where you ensure about that, why public static or protected, (maybe final but that refuse my IDE with little bit crypted warning, remove final modifier from class definition) ![]() |
Re: easiest a safier way is [url]http://download.oracle.com/javase/tutorial/uiswing/components/formattedtextfield.html[/url] just follows with Example about Number Instance | |
Re: @ hfx642 not, never do that and use paint() in Swing, correct is paintComponent() | |
Re: to @stultuske 1st. reply plus more chances raising usage of Java Code Obstrufator correct way is sell service (with support) as sell Sw Licence | |
Re: if you create simple example that will be conatains only three JComboBox(es), and Db conn will be replaces with data saved into JList or Strins[], then I'll look at ... please edit your post and by mouse select code that you posted and pack that into [CODE] button | |
Re: 1/ read tutorial linked by quuba 2/ especially about DefaultTableModel 3/ don't create table inside Sql statement, don't do that 4/ follows with examples from JTable tutorial 5/ read turorial about JDBC [url]http://download.oracle.com/javase/tutorial/index.html[/url] 6/ tons (runnable) example at [url]http://www.java2s.com/[/url] just put those together 7/ search for ResultSetTableModel or TableFromDatabase | |
Re: sometimes, in cases that you import project generated on another PC, whith diferent JDK 1/ righMouseClick on project (root) 2/ on bottom Properties 3/ 2nd. from top Libraries - select instaled Java Platform " JDK (default) or program Files - Java - search in current Java SDK/JDK instalation | |
Re: how you formated input/output Sql query from/to Db, because you can do that with Sql syntax quite confortly, you have to ensure that (not basic stuff, or yes???): - SQL syntax is same for java.util.Date (output and input) - java.util.Date get same value from SimpleDateFormat as received - JFormattedTextField get … | |
Re: and you didn't talk about what's did you set on DbSide [url]http://dev.mysql.com/doc/refman/5.5/en/encryption-functions.html[/url] | |
Re: probably you forget to add these JPanels, there isn't needed call invalidate for already visible Container, but revalidate()+ repaint() could to first parent JPanel | |
Re: never hands up, never surrender, look here this page one man revided nore than 2 Months by hepls lots of Swing Gurus form another JavaForum, [url]http://r0k.us/graphics/SIHwheel.html[/url] | |
Re: for example [url]http://www.java2s.com/Tutorial/Java/0140__Collections/0500__Collections-Sort.htm[/url] | |
Re: looks like everything d*i*e*d NOTICE: THIS PROJECT IS INACTIVE (PRACTICALLY DEAD) since late 2006. [url]http://java.sun.com/javase/technologies/desktop/[/url] [url]http://cs.wikipedia.org/wiki/Java_Desktop_System[/url] [url]http://www.java.net/projects/community/138[/url] [url]http://download.oracle.com/javase/6/docs/api/java/awt/Desktop.html[/url] | |
Re: hmmm, that's nothing about ignorance, but multimedia and Java going opposite directions, JMF look like as dead stinky fish, maybe searching in history can give you some answer(s) [url]http://forums.oracle.com/forums/category.jspa?categoryID=289[/url] | |
Re: maybe [url]http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html?page=2[/url] | |
Re: hmmm I'm not sure if JDK 1.6.015 correcty supported Win7 OS, for further blablablb about that please check requirents [url]http://netbeans.org/community/releases/70/relnotes.html#system_requirements[/url] and [url]http://netbeans.org/community/releases/70/install.html[/url] | |
| |
Re: about object destruction but there are some rules about GC, GC'ed are Object that is able to finalize(), for example that not possible with TopLayoutContainers, just dispose(); | |
Re: orget about IR Camera, because there are lots of many legal restrictions to built-in something similair to reall full size camera (special tax in EU +US), where are you see that, Maybe some C*h*i*n*a shop can sell you chip with optical but you hava to IR light for see more … | |
Re: or you can try BufferStrategy bs = getBufferStrategy(); Graphics g = bs.getDrawGraphics(); //draw anything bs.show(); | |
Re: can you please post a link to your question | |
Re: there are lots of (newbee)mistakes, to avoid long debate..., better will be compare that with runnable code (with processes mistakes, maybe my helicopter view) [CODE]import java.awt.*; import java.awt.event.*; import java.util.*; import javax.swing.*; public class Face { private final FaceModel model;//The model holds application data and defines the needed behaviour: public … | |
Re: I think that (still)isn't outDated [url]http://download.oracle.com/javase/tutorial/jaxp/index.html[/url] examples on [url]http://www.java2s.com/Code/Java/XML/CatalogXML.htm[/url] or [url]http://www.java2s.com/Tutorial/Java/0440__XML/Catalog0440__XML.htm[/url] | |
Re: question are included weekend and local hollydays??? basically you have (probably) two API java.util.Calendar (allowed increase/decrease Date with integer value) add one day - [CODE]cal.add(Calendar.DATE, +1);[/CODE] and java.util.Date for difference between day (or whate .. with Date & Time) [CODE]private SimpleDateFormat sdf = new SimpleDateFormat("dd.MM.yyyy"); String removeTimeForDateString = sdf.format(######.getDate()); Date … | |
| |
Re: [url]http://download.oracle.com/javase/tutorial/uiswing/components/dialog.html[/url] and JDialog@WindowOwner + Modality [url]http://download.oracle.com/javase/tutorial/uiswing/components/dialog.html#jdialogapi[/url] | |
Re: are you heard about Sql Stored Procedures, users permisions, db error logs lots of jokes [url]http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html[/url] | |
Re: are you sure that that must be done by GridBag, because there are my questions 1/ JComponent placed at botton should be risiziable or not 2/ JComponent placed at top should be risiziable or not add 1) JPanelNo0.setPrefferedSize(new Dimension(x,y)) add JPanelNo0 to JFrame with BorderLaoyut.North add JComponent1 to JPanelNo1 with … | |
Re: why again add DefaultListModel to JList Edit there must be another problem becuse remove Elment from JList is correct, including test for selectedItem | |
Re: yes there exist ClassLoader that returns declaredMethods and declaredField, but its little bit complicated | |
Re: for JComboBox is better (allways) use [url]http://download.oracle.com/javase/tutorial/uiswing/events/itemlistener.html[/url] and to avoid build two or more Tabs with same JComponents (JTabbedPane bugs) | |
Re: not it isn't possible, because Wifi doesn't something with Bluetooth, both has a radio, but different protocol, same is only that they are powered electrically |
The End.