[Solved] How to create reusable UI control using JavaScript [closed]

Look into javascript templating. See mustache.js for one example. e.g. <script type=”text/template” id=”template”> {{#elements}} <div id=”{{id}}”> {{content}} </div> {{/elements}} </script> And your JavaScript: var view = { “elements”: [ { id: “one”, content: “Lorem ipsum dolor” }, { id: “two”, content: “Sit amet consectetur” } ] } var template = document.getElementById(“template”).innerHTML; var output = Mustache.render(template, … Read more

[Solved] I have 4 days, should I learn QT or Java swing? [closed]

Qt is my vote, too. The examples and info in the links below should get you well on your way to your solution. http://www.youtube.com/watch?v=92biLZST6Vg http://qt-project.org/doc/qt-4.8/phonon-qmusicplayer.html http://qt-project.org/doc/qt-4.8/qfilesystemmodel.html PS, After installing Qt and Qt Creator, it has fantastic documentation and great examples and tutorials easily accessed from the IDE, on the Welcome tab. solved I have 4 … Read more

[Solved] Can I design a button like the one given in pic using Kivy? [closed]

Are the above things possible with Kivy? The answer is simply ‘yes’. Do you have a specific context that you’re having trouble with? You simply need to create your own widget rule that displays things the way you want. It might start as something like <YourRule@BoxLayout>: text: ‘something’ # define a property to hold the … Read more

[Solved] How to create geometric shapes in html

I’m sure there are more elegant ways to accomplish what you’re looking for, but it can be accomplished using SVG, z-Index, Opacity and Clipping. Run the code and I think you’ll see it matches. The colors might not be exact but they’re close enough to show you what goes where. You can also separate the … Read more

[Solved] How to create geometric shapes in html

Introduction Creating geometric shapes in HTML can be a great way to add visual interest to your webpages. With the help of HTML and CSS, you can create a variety of shapes, including squares, rectangles, circles, and triangles. In this article, we will discuss how to create geometric shapes in HTML and provide some examples … Read more

[Solved] Mysql java taking registration [closed]

Follow the steps: 1. Download Mysql and Install+ dwnload mysql-connector jar file. 2. in the mysql(u can connect using mysql command line client) provide ur pwd and get ready. Put below code: 3. create database TEST 4. use TEST. 5. CREATE TABLE USER_DTLS (USERNAME VARCHAR2(100), PASS VARCHAR2(100)); creating tables 6. INSERT INTO USER_DTLS(‘user1’, ‘user1234’);INSERT INTO … Read more

[Solved] Drop down menu UI

use popup window for this type of options: llBack.setOnClickListener(new OnClickListener() { @Override public void onClick(View arg0) { showPopupMenu(); } }); and the showPopupMenu() method is: public void showPopupMenu() { LayoutInflater inflater = (LayoutInflater) getSystemService(LAYOUT_INFLATER_SERVICE); View popupView = inflater.inflate(R.layout.add_file_lay, this.container, false); popupWindow = new PopupWindow(popupView, popupwidth, WindowManager.LayoutParams.WRAP_CONTENT, true); popupWindow.setOutsideTouchable(true); popupWindow.setBackgroundDrawable(new BitmapDrawable()); popUpwindowinIt(popupView); popupWindow.showAsDropDown(findViewById(R.id.places), 0, 0); } … Read more