Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
5
Posts with Upvotes
4
Upvoting Members
5
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
~16.7K People Reached
Favorite Tags
Member Avatar for kombi-tamiri
Member Avatar for trishtren

Hello, Iv been working on a project for a while now in java and i read somewhere that the GCJ can compile java classes into native binaries, after a quick google search it was revealed that this was true. However after reading a number of posts across the web and …

Member Avatar for jwenting
0
217
Member Avatar for trishtren

Hi, I was wondering if anyone could help me or point me in the right direction. Iv been developing a source to source compiler for some time, so one language being translated to C++/C. Now the source has been translated i wish to package a windows and linux c++ compiler …

0
161
Member Avatar for trishtren

Hi, I have been trying to create a game loop that is paused when a certain key is pressed. This seemed to work ok in Swing but in javafx the loop locks up the UI, even if i create a seperate thread. @FXML public void setPaused(KeyEvent e) { if (e.getCode().compareTo(KeyCode.P) …

Member Avatar for trishtren
0
995
Member Avatar for COKEDUDE

I have seen these two methods of using ItemListener. I am curios which is better and why. What are the differences? ItemListener a; Choice ce = new Choice(); ce.addItemListener(a); ItemListener itemlistener = new ItemListener(); itemlistener.handle = checkboxmenuitem; checkboxmenuitem.addItemListener(itemlistener);

Member Avatar for JamesCherrill
0
597
Member Avatar for trishtren

Hello, im currently working on a program to split a string based on symbols only, i need to seperate the string around the symbols whilst keeping the symbols as well eg. test_String_123_^; would result in an array containing : [test] [_] [String] [_] [123] [_] [^] However although i have …

Member Avatar for masijade
0
273
Member Avatar for trishtren

Hello, Iv been trying to compile a simple opengl / wxwidgets program in c++ on linux mint. However when i try to compile with : g++ MyGLCanvas.cpp MyGLCanvas.h openGLProjectApp.cpp openGLProjectApp.h openGLProjectFrm.cpp openGLProjectFrm.h `wx-config --cxxflags --libs --gl-libs -lGL` -o simpleprogram I get an error message : cannot find -lwx_gtk2u_-lGL-2.8 collect2: error: …

Member Avatar for trishtren
0
134
Member Avatar for trishtren

Hello, I was hoping someone can help me, im looking for a way to extend a basic shape class in particular the roundedrectangle2d class and be able to draw it in the same way we could handle an object with a simple call to g.draw(object instance); However im having problems …

Member Avatar for JamesCherrill
0
355
Member Avatar for trishtren

Hello, Iv recently been having trouble with a java project im working on as i need a button to add a sentence to a Swing list box. The problem im having is it uses an observable class and an observer. Fundamentally the list adds the elements to an array in …

Member Avatar for trishtren
0
200
Member Avatar for trishtren

Iv been developing a parser using java, however due to testing on multiple machines i have errors now on one machine i corrected as the machine was using jdk/jre v1.6, and on my newer machine jdk/jre 1.7 The question i have is, what are the implications of using the String …

Member Avatar for delta_frost
0
297
Member Avatar for trishtren

hello, Iv recently been working on a compiler, so far i have a fairly decent working lexical analyzer and token scanner. So i can break down the code into a series of tokens and analyze them for correct strucutre. I also understand how to generate x86 instructions. However im lost …

Member Avatar for trishtren
0
192
Member Avatar for trishtren

Hello, Iv recently just started using javafx and i am struggling finding a way to access data from a controller class, at the moment i can do it using method.invoke, however it seems like more of a hack than a legitimate clean option of accessing data from a controller class. …

0
74
Member Avatar for trishtren

hey, Im having a problem adding a javafx Canvas node to the scrollpane node. Im using the **.setcontent(canvas)** method of the scrollpane and there are no syntax errors. The Scrollpane does expand in width (hbar appears longer) but it still looks empty. I know the canvas is working correctly as …

Member Avatar for trishtren
0
1K
Member Avatar for trishtren

hello, Iv been trying to write a java program to read an image from a list of images in a file I.E: * File * Filename * Image1 * Filename * Image2 * Filename * Image3 The problem i am having is that the filename's are string objects followed by …

Member Avatar for vishalonne
0
144
Member Avatar for trishtren

Hello, Im looking for a way to construct a scale-able 2d list or something of the sort. What i have so far is an array int [][] mydata = new int[6][4]; The problem is in my editor i wont know how long to make the array as people are going …

Member Avatar for jwenting
0
124
Member Avatar for trishtren

Hey, Im looking for the cleanest way to scan through a text file and remove symbols only if they meet certain conditions. So far i have been using the Scanner, but it removes them regardless and i was looking for the best way of providing conditions like those for comments …

Member Avatar for JamesCherrill
0
168
Member Avatar for trishtren

Hello i am having problems creating an update query, I have two tables both have an Title column and one table has an ID column. I want to take the ID from the table that has it when the titles of both columns match one of the titles against any …

Member Avatar for trishtren
0
196
Member Avatar for trishtren

Hello, im a beginner at sql and i am struggling at comparing data from one table to another and then copying other data. *I have 2 tables both of which have 2 columns with the same name lets call them tableA and tableB. * tableA has a column id and …

Member Avatar for trishtren
0
156
Member Avatar for trishtren

Hello, iv looked around google and have found it is possible to put an applet into a jframe. The problem i am having is that my applet is to be hosted online, what i want is to take the applet that is online and display it from a swing or …

Member Avatar for NormR1
0
224
Member Avatar for trishtren

Hey, Iv been looking around for a simple way (meaning less than 10 lines) to reverse the order of my bytes in a byte array. At the moment my code is: public byte[] outputarray() { byte b[] = new byte[10]; ByteBuffer buf = ByteBuffer.wrap(b); buf.putLong(output); } The problem is that …

Member Avatar for trishtren
0
3K
Member Avatar for trishtren

Hey, im looking for a way to get a double value to follow the IEEE 754 standard, iv seen a number of librarys for it on java but i had my doubts to whether it was a problem that wasnt solved already with a java standard library. The value i …

Member Avatar for trishtren
0
232
Member Avatar for ankit.sinha.31521

sir i would like to know how to encrypt an image in java (the classes and how to proceed)

Member Avatar for trishtren
0
574
Member Avatar for trishtren

Hey, iv been looking around for help with a problem with a program i am working on, but i cant find an appropriate category on any forum really. The program is a flash swf compiler. But at the moment i am having problems understand a certain data structure (the abc …

0
274
Member Avatar for trishtren

Hey, I was hoping someone can help me convert a piece of php code, im not really sure where to start pack( 'v', $test ); The pack php function above takes in an integer and converts it to an unsigned long. V - unsigned long (always 32 bit, little endian …

Member Avatar for keith.pastorek
0
1K
Member Avatar for LinkedList

Hey guys. I want to create an application for my PC in JAVA which can communicate with my CELL phone via Bluetooth. I just want it to receive text chats send by cell over bluetooth connection and be able to display them in appropriate format. I have good knowledge of …

Member Avatar for hatebin
0
251
Member Avatar for trishtren

Hello, I am hoping someone can help me understand a piece of code i found. Since php is not my primary language, and what i googled returned vague results, i am unsure exactly how a number or integer value can be used directly as a boolean in a while operation. …

Member Avatar for pritaeas
0
217
Member Avatar for trishtren

Hello, I am trying to recreate a data type in java used by adobe, it is an unsigned integer 30 bits long or U30 by the specification. Anyway i am having problems understanding the binary output, the definition states: "The variable-length encoding for u30 uses one to five bytes, depending …

Member Avatar for trishtren
0
178
Member Avatar for trishtren

hey, Iv been looking around for an easy way to check if a string matches exactly and not just in a few characters I.E B != "ABC" B == B Frederick != F So only if the entire string matches will my condition be met. currently im using : String[] …

Member Avatar for stultuske
0
202
Member Avatar for trishtren

Hey, Im trying to extract numbers from a scanner, but im having problems extracting them all. Primarily i need it to * read a text file which contains some text and numbers. * go through the file and locate all numbers * differentiate between numbers contained in bracket (3), and …

Member Avatar for trishtren
0
257
Member Avatar for trishtren

Hey, iv been working on a fairly simple part of my program but it throws a null pointer exception. The error i recieve is : Exception in thread "main" java.lang.NullPointerException at FillStyle.<init>(FillStyle.java:12) at compiler.main(Builder.java:43 The code causing the error is : public FillStyle(int type) { if (type >= 0) { …

Member Avatar for trishtren
0
276