jList -> get first element -
How can I get the first element in my jList?
jList -> get first element -
How can I get the first element in my jList?
Alignment of JList and JComboBox -
I would like to know how to set the horizontal alignment of JList's and JComboBox's. I've searched google but can't find anything.
If you know how to do this please let me know.
NOTE: I tried this on the JList but it had no effect:
Code:
JList.setAlignmentX(JList.CENTE
jList -
For the love of sweet jesus I have spent the last hour trying to figure out how to add strings to a jList from a button. How can I do this?
Lets say I want to add "A" "B" "C" "D" to jList1 which has already been drawn on the form. Thanks
Buffer Problem -
What type of buffer would be best for the following situation.
Example would be appreciated.
---------------
1) Timer #1 is constantly updating element 0 in an array
from 0 to n
2) Timer #2, at set intervals moves the array elements up
such that element 0 become ele
Removing element from dyn.array -
What is the simplest way to remove an element from an array?
So far, the best solution I have found is to use a dynamic array; then, swap the used element, with the last element of the array, and redim the array to one less upper bound (effectively destroying that last, already used
Performing mathematical operations on byte arrays -
Friends,
Could I have your valuable advice on how to do this in VB6. I am not familiar if VB6 can perform this kind of vector algebra by some preset commands.
I have 2 long byte arrays :
ByteArr_X = [0000000011111000000001111]
ByteArr_Y= [0010010011111000000001111]
I wan
delete an element of an array -
i need to delete one element of an dynamic array, just like this
dim arr() as string
dim cnt as long
cnt=5
redim preserve arr(cnt) as string
let's say i need to remove element No. 3, so the element 4 will be 3, element 5 will be 4..etc.
is there any command to do this, just
XML element & select element databinding -
Hi
can you bind a select element to the data source object
exposed by an xml element (<xml id="dso"...></xml) . Iv been trying but I cant get it to work.
thanks
Need applet help.. -
Here is the thing i want to do.
open an applet - load a text file into a Jlist. The text file will contain html web site links. The applet has to go open all the links inside the list and wait 30 seconds or so between each web page surf.
I know how to load a txt file and get a l
Scan until character found -
Hi folks.
I need some code done for this problem.
Instead of;
element would be; DM016A_RF_LIMS
element=formName.LIMIT_lb.options[i].text
compare=element.substr(0,5);
I need;
element=formName.LIMIT_lb.options[i].text
compare=element (string up until the first undersc
XML, putting syntax -
I want to put syntax on an xml document. Something like should start with <class> element and under class element, only <attribute> element is allowed. On class element, name and type and modifier attributes only are allowed.
Can I do this? If so, please provide some lin
IE hangs with an external DTD -
I've got an xml document and dtd. If I include the DTD as an internal the xml displays fine in IE and I've put it through a couple of validators on the web which report no errors. But when I put the dtd into an external file (quite important for this project) IE just hangs. It doesn
Need help with GUI's and JLists.... -
I am working on an assignment for my advanced Java class. We are doing JLists for GUI's. I am not that good with GUIs, and I am having problems with valueChanged() method. I havent worked much with JLists before, so i am very new with them.
I am getting the error, inconvertible typ
mshtml missing element -
Today i was going through mshtml library and found it nearly very complete for html but one element found missing. And its anchor element.
<a href="link element">anchor element</a>
do you know how to know it?
Thank You.
"Invalid index" on JFileChooser -
I have no idea why this problem is happening, but whenever I try the following code:
Code:
jFileOpenProject.setCurrentDirectory(myFile);
where jFileOpenProject is a JFileChooser and myFile is a File object pointing to a directory.
I get the following:
Quote:
serializing empty xml element -
Hi,
i am using System.Xml.Serialization;
how can i serialize an empty element output <something /> ?
current, after serialize an empty element, it wont show, only not null element wil be output.
Please advise.
Display N th element in the combo box -
Hai,
How do i set the ComboBox (Dropdown List) to
display the Nth element or the first element of
its elements at Runtime.
regards
Viswanathan.
[2005] Which format -
Hello,
I finished a small program that allowed a user to enter the name or symbol of an element and the program showed them the element weight, gas or metal, its location, etc. Well I used If..else and I typed the attributes of each element in one by one. I am wondering if there was a
Displaying a hyperlink in a form element -
I'm trying to display a hyperlink inside either an standard input element or a textarea element. Can anyone tell me how to do this?
Cheers.
Cascade Style Sheet Element ID -
How do you use cascade style sheet element ID? I know how to use Element and Class but in Visual Studio.Net has a section for Element ID.
Select Element Question -
I'm using a select element on my html page.
Lets say its called cboPriority.
How do I move the value of this element into a temporary field ? I want to store the text that is displayed on screen for the user, not the index number or anything like that.
I tried using the 'VALU
Delete element from array -
If I have 10 elements in an array, how can I delete element from slot number 5 and move the element that was in slot number 6 to slot number 5 and then leave slot number 10 empty.
Example:Before
---------------
Slots--Element
--[1]---[Name1]
--[2]---[Name2]
--[3]---[Name3]
--[4]---[N
Accessing anther class components -
I have two classes
how can I use the JList from another class
each class has its file
??
Deleting an element from middle a control array at design time -
I'm using VB 6.
I have a control array of 20 Text Boxes, created at design time.
The array should actually only have 19 elements, the 20 th element was added accidentally.
I 've deleted the accidental element, which was near the middle of the array (element 9 or so). I expected
How to read XML files -
Hi all,
Can someone tell me how can I have direct access to XML element/attribute?
sample:
<project name="myproject" attribute "myattribute">
<myelement name="elementname" />
<nestedelement x="1" y="2&quo
how to insert value at the end of array -
if i hv create an array contain 1000 element.........now in the array contain first 30 element(index 29) hv data, how to know the last value in the array is at element 30 and how to insert the value in the element 31?
XSD question: Optional Elements... -
I have the following XSD code:
Code:
<xs:element name="Job" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="Element1" type="xs:string"/>
<xs:element name="Element2&
how to count no.of element using xmltextreader -
Hi
I am reading frm a xml file in the pocket pc...
I can read the elements and attributes but i just want to know how to count the no.of that specific element in the xml file.
Because i need to do a for..loop so, i need to count the no.of that specific element in the xml file usi
array element deletion -
Is there a way to delete an element from and array and take away the empty space left over.
For example lets say I have an array of 5 elements as follows:
1 , 2 , 3, 4, 5
If I delete from element 2 where 0 is the first element I want my new array to be of 4 elements as such
pass Element name or ID to function -
A simple question perhaps, but can't seem to get it right:
How can I pass the name or id from the element calling a function to that function?
Say I have a function test(id). I want to call it in the onchange() event of some element and pass the name (id) of that element to teh fun
Algorithm problem -
I have been fighting to make a clean algorithm see if you can put me on a better path....
A point moves horizontally across the screen starting at an x value of 0 and ending at a x value of 800. As it moves across the screen it crosses say 8 different regions.
So region
1 goes f
Getting to grips with XML -
Just beginning to find my way around the MS XML SDK kit.
A rather daft question I have.
I simply want to retrieve an element's value;
For e.g
<ROOT>
<ENTRY>
<NAME>John Smith</NAME>
</ENTRY>
Gettings to grips with XML -
Just beginning to find my way around the MS XML SDK kit.
A rather daft question I have.
I simply want to retrieve an element's value;
For e.g
<ROOT>
<ENTRY>
<NAME>John Smith</NAME>
</ENTRY>
Please help me fix the problem. -
Hi.
I use the constructor to get the information from the database, but it doesn't complie. Here is my code for the constructor.
=============================================
public getData() {
Connection c = DriverManager.getConnection_("jdbcdbc:GradeData");
Resul
Accessing specific type elements by parameter -
Hello all!
I've tried to accesss an element of my-defined types passing a string by parameter of function, which value is the name of the element I wanna return.
I was creating a enum wich each element was linked with the order of the equivalent type element, but when there are lot
Flat file Problem -
Hi,anybody who helps me was quitely appreciated.I am also newbie to vb.
The thing is suppose we are having a flat file having all the information regarding the nodes and elements.So here a Node can be made with x,y co-ordinates and an element is made of 4 nodes.So
the problem we have
XML/XSD: xs:date and nillable -
If I allow a nillable date element like this
Code:
<xs:element name="DOB" type="xs:date" nillable="true"/>
how can I write my element so it validates when there is no date - e.g. You don't know the DOB (date of birth)
Using XmlSpy to test, w
remove a specific element from an array -
what im trying to do is sort an array from largest to smallest or v/v doesnt matter what i need to do is remove 1 element and leave th rest of the array intact,the filter function does this but i think it has a problem with duplicate values i think it removes them both, so how do you r
Element type checking! -
Hi there!
Is there any command to check the type of the object(element) in Vbscript/Javascript in a HTML file?
For eg, If the form element is a textbox, I wanna change some features, and if it is a button I want to change some other features.
I have tried 'TypeName'. But it ju
A DTD question -
Is the HTML 4.01 DTD at www.w3.org supposed to be a valid DTD?
The element declarations in there are a bit unfamiliar. Here are two of them, for example:
<!ELEMENT HR - O EMPTY -- horizontal rule -->
<!ELEMENT Q - - (%inline;)* >
The problem areas are underlined.