Liliian's Posts
Nairaland Forum › Liliian's Profile › Liliian's Posts
please can anyone here help? https://www.nairaland.com/2685865/need-assignment-java-programming |
mishooo:can you help me? https://www.nairaland.com/2685865/need-assignment-java-programming |
proxy20:I did asked but i can't seem to put my code right. here is the link: http://stackoverflow.com/questions/ask?title=how+to+design+a+java+windows+interface+that+demonstrates+the+principles+of+concurrency%3f |
package supercat1; import java.awt.*; import java.awt.event.*; import javax.swing.*; // Using Swing components and containers // A Swing application extends javax.swing.JFrame public class supercat1 extends JFrame { private JTextField tfCount; // Use Swing's JTextField instead of AWT's TextField private int count = 0; public supercat1 () { // Get the content pane of top-level container Jframe // Components are added onto content pane Container cp = getContentPane(); cp.setLayout(new FlowLayout()); cp.add(new JLabel("Counter" ) ) ; tfCount = new JTextField(count + "", 10); tfCount.setEditable(false); tfCount.setHorizontalAlignment(JTextField.RIGHT); cp.add(tfCount); JButton btnCount = new JButton("Count Up" ) ; cp.add(btnCount); JButton btnCountd = new JButton("Count Down" ) ; cp.add(btnCountd); JButton btnCounts = new JButton("Stop" ) ; cp.add(btnCounts); btnCount.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { ++count; tfCount.setText(count + "" ); } }); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); // Exit program if Jframe's close-window button clicked setSize(300, 100); setTitle("Supercat Counter" ); setVisible(true); // show it } public static void main(String[] args) { // Recommended to run the GUI construction in // Event Dispatching thread for thread-safet operations SwingUtilities.invokeLater(new Runnable() { @Override public void run() { new supercat1(); // Let the constructor does the job } }); } } This is what i have so far.I need the concurrency and another textfield.What i want top achieve is when i press count up,its start counting up and when i press count down,it starts counting down.then stop to stop the counting. Can I get help?cc:pcguru1,timex4u,standing5 |
pcguru1:Thank you,i am a lady .I created a GUI with JLabel,JButton and JTextfield.i will put it up here. |
Standing5:By the first week of november. But the assignment is focusing more on concurrency in java swing,designing a java windows interface. |
Standing5:yes around that.Just like the example the other dude gave on this thread. |
Standing5:just a well planned layout,colour schemes and borders.Maybe color in the button or so. bolded yes. |
spikesC:Can you help me? https://www.nairaland.com/2685865/need-assignment-java-programming#39282992 |
HCpaul:Please help:https://www.nairaland.com/2685865/need-assignment-java-programming#39282992 |
timex4u:Okay,i sent you a mail.Talk to me there. |
codemarshal08:Please i need help:https://www.nairaland.com/2685865/need-assignment-java-programming#39282992 |
WhiZTiM:Please can i get help with this:https://www.nairaland.com/2685865/need-assignment-java-programming#39282992 |
zubys19:Please check this :https://www.nairaland.com/2685865/need-assignment-java-programming#39282992 |
EngrBouss:Please help me:https://www.nairaland.com/2685865/need-assignment-java-programming#39282992 |
xtremrules:Please i need help: https://www.nairaland.com/2685865/need-assignment-java-programming#39282992 |
timex4u:<xsl:template match="/"> <html> <body> <h1>Itinerary</h1><br /> <xsl:apply-templates/><br/> </body> </html> </xsl:template> <xsl:template match="env:Envelope/env:Body/p:itinerary/p:departure"> <p> <xsl:apply-templates select="p:departing"/> <xsl:apply-templates select="p:arriving"/> <xsl:apply-templates select="p:departureDate"/> </p> </xsl:template> <xsl:template match="p:departing"> Departure location: <xsl:value-of select="."/> </xsl:template> <xsl:template match="p:arriving"> Arriving location: <xsl:value-of select="."/> </xsl:template> <xsl:template match="p:departureDate"> Departure date: <xsl:value-of select="."/> </xsl:template> </xsl:stylesheet> |
Thanks. |
proxy20:I need help with my assignment.I am willing to pay if you can work it out for me.I did some coding but i need a more professional input to help me so that i can get great mark.Get back to me.thanks |
.